Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: ISC
0002 /*
0003  * Device Tree file for the Freecom FSG-3 router.
0004  * This machine is based on IXP425.
0005  * This device tree is inspired by the board file by Rod Whitby.
0006  */
0007 
0008 /dts-v1/;
0009 
0010 #include "intel-ixp42x.dtsi"
0011 #include <dt-bindings/input/input.h>
0012 
0013 / {
0014         model = "Freecom FSG-3";
0015         compatible = "freecom,fsg-3", "intel,ixp42x";
0016         #address-cells = <1>;
0017         #size-cells = <1>;
0018 
0019         memory@0 {
0020                 /* 64 MB memory */
0021                 device_type = "memory";
0022                 reg = <0x00000000 0x4000000>;
0023         };
0024 
0025         chosen {
0026                 /* Boot from the first partition on the hard drive */
0027                 bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootfstype=ext4 rootwait";
0028                 stdout-path = "uart0:115200n8";
0029         };
0030 
0031         aliases {
0032                 serial0 = &uart0;
0033         };
0034 
0035         gpio_keys {
0036                 compatible = "gpio-keys";
0037 
0038                 button-sync {
0039                         wakeup-source;
0040                         /* Closest approximation of what the key should do */
0041                         linux,code = <KEY_CONNECT>;
0042                         label = "sync";
0043                         gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
0044                 };
0045                 button-reset {
0046                         wakeup-source;
0047                         linux,code = <KEY_ESC>;
0048                         label = "reset";
0049                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
0050                 };
0051                 button-usb {
0052                         wakeup-source;
0053                         /* Unplug USB, closest approximation of what the key should do */
0054                         linux,code = <KEY_EJECTCD>;
0055                         label = "usb";
0056                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
0057                 };
0058         };
0059 
0060         i2c {
0061                 compatible = "i2c-gpio";
0062                 sda-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0063                 scl-gpios = <&gpio0 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0064                 #address-cells = <1>;
0065                 #size-cells = <0>;
0066 
0067                 hwmon@28 {
0068                         /*
0069                          * Temperature sensor and fan control chip.
0070                          *
0071                          * TODO: create a proper device tree binding for
0072                          * the sensor and temperature zone and create a
0073                          * zone with fan control.
0074                          */
0075                         compatible = "winbond,w83781d";
0076                         reg = <0x28>;
0077                 };
0078                 rtc@6f {
0079                         compatible = "isil,isl1208";
0080                         reg = <0x6f>;
0081                 };
0082         };
0083 
0084         soc {
0085                 bus@c4000000 {
0086                         flash@0,0 {
0087                                 compatible = "intel,ixp4xx-flash", "cfi-flash";
0088                                 bank-width = <2>;
0089                                 /* Enable writes on the expansion bus */
0090                                 intel,ixp4xx-eb-write-enable = <1>;
0091                                 /* 4 MB of Flash mapped in at CS0 */
0092                                 reg = <0 0x00000000 0x400000>;
0093 
0094                                 partitions {
0095                                         compatible = "redboot-fis";
0096                                         /* Eraseblock at 0x3e0000 */
0097                                         fis-index-block = <0x1f>;
0098                                 };
0099                         };
0100 
0101                         /* Small syscon with some LEDs at CS2 */
0102                         syscon@2,0 {
0103                                 compatible = "freecom,fsg-cs2-system-controller", "syscon";
0104                                 reg = <2 0x0 0x200>;
0105                                 reg-io-width = <2>;
0106                                 #address-cells = <1>;
0107                                 #size-cells = <1>;
0108                                 ranges = <2 0x0 0x0 0x200>;
0109 
0110                                 led@0,0 {
0111                                         compatible = "register-bit-led";
0112                                         reg = <0x00 0x02>;
0113                                         mask = <0x01>;
0114                                         label = "fsg:blue:wlan";
0115                                         linux,default-trigger = "wlan";
0116                                         default-state = "on";
0117                                 };
0118                                 led@0,1 {
0119                                         compatible = "register-bit-led";
0120                                         reg = <0x00 0x02>;
0121                                         mask = <0x02>;
0122                                         label = "fsg:blue:wan";
0123                                         linux,default-trigger = "";
0124                                         default-state = "on";
0125                                 };
0126                                 led@0,2 {
0127                                         compatible = "register-bit-led";
0128                                         reg = <0x00 0x02>;
0129                                         mask = <0x04>;
0130                                         label = "fsg:blue:sata";
0131                                         linux,default-trigger = "";
0132                                         default-state = "on";
0133                                 };
0134                                 led@0,3 {
0135                                         compatible = "register-bit-led";
0136                                         reg = <0x00 0x02>;
0137                                         mask = <0x04>;
0138                                         label = "fsg:blue:usb";
0139                                         linux,default-trigger = "";
0140                                         default-state = "on";
0141                                 };
0142                                 led@0,4 {
0143                                         compatible = "register-bit-led";
0144                                         reg = <0x00 0x02>;
0145                                         mask = <0x08>;
0146                                         label = "fsg:blue:sync";
0147                                         linux,default-trigger = "";
0148                                         default-state = "on";
0149                                 };
0150                                 led@0,5 {
0151                                         compatible = "register-bit-led";
0152                                         reg = <0x00 0x02>;
0153                                         mask = <0x10>;
0154                                         label = "fsg:blue:ring";
0155                                         linux,default-trigger = "";
0156                                         default-state = "on";
0157                                 };
0158                         };
0159                 };
0160 
0161                 pci@c0000000 {
0162                         status = "ok";
0163 
0164                         /*
0165                          * Written based on the FSG-3 PCI boardfile.
0166                          * We have slots 12, 13 & 14 (IDSEL) with one IRQ each.
0167                          */
0168                         #interrupt-cells = <1>;
0169                         interrupt-map-mask = <0xf800 0 0 7>;
0170                         interrupt-map =
0171                         /* IDSEL 12 */
0172                         <0x6000 0 0 1 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 5 */
0173                         <0x6000 0 0 2 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 5 */
0174                         <0x6000 0 0 3 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 5 */
0175                         <0x6000 0 0 4 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 5 */
0176                         /* IDSEL 13 */
0177                         <0x6800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 7 */
0178                         <0x6800 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 7 */
0179                         <0x6800 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 7 */
0180                         <0x6800 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 7 */
0181                         /* IDSEL 14 */
0182                         <0x7000 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 6 */
0183                         <0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 6 */
0184                         <0x7000 0 0 3 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 14 is irq 6 */
0185                         <0x7000 0 0 4 &gpio0 6 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 14 is irq 6 */
0186                 };
0187 
0188                 /* EthB */
0189                 ethernet@c8009000 {
0190                         status = "ok";
0191                         queue-rx = <&qmgr 3>;
0192                         queue-txready = <&qmgr 20>;
0193                         phy-mode = "rgmii";
0194                         phy-handle = <&phy5>;
0195 
0196                         mdio {
0197                                 #address-cells = <1>;
0198                                 #size-cells = <0>;
0199 
0200                                 phy4: ethernet-phy@4 {
0201                                         reg = <4>;
0202                                 };
0203 
0204                                 phy5: ethernet-phy@5 {
0205                                         reg = <5>;
0206                                 };
0207                         };
0208                 };
0209 
0210                 /* EthC */
0211                 ethernet@c800a000 {
0212                         status = "ok";
0213                         queue-rx = <&qmgr 4>;
0214                         queue-txready = <&qmgr 21>;
0215                         phy-mode = "rgmii";
0216                         phy-handle = <&phy4>;
0217                 };
0218         };
0219 };