Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "bcm47094.dtsi"
0009 #include "bcm5301x-nand-cs0-bch8.dtsi"
0010 
0011 / {
0012         compatible = "linksys,panamera", "brcm,bcm47094", "brcm,bcm4708";
0013         model = "Linksys EA9500";
0014 
0015         chosen {
0016                 bootargs = "console=ttyS0,115200";
0017         };
0018 
0019         memory@0 {
0020                 device_type = "memory";
0021                 reg = <0x00000000 0x08000000>,
0022                       <0x88000000 0x08000000>;
0023         };
0024 
0025         nvram@1c080000 {
0026                 compatible = "brcm,nvram";
0027                 reg = <0x1c080000 0x100000>;
0028         };
0029 
0030         gpio-keys {
0031                 compatible = "gpio-keys";
0032 
0033                 button-wps {
0034                         label = "WPS";
0035                         linux,code = <KEY_WPS_BUTTON>;
0036                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0037                 };
0038 
0039                 button-rfkill {
0040                                 label = "WiFi";
0041                                 linux,code = <KEY_RFKILL>;
0042                                 gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
0043                 };
0044 
0045                 button-reset {
0046                                 label = "Reset";
0047                                 linux,code = <KEY_RESTART>;
0048                                 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0049                 };
0050         };
0051 
0052         leds {
0053                 compatible = "gpio-leds";
0054 
0055                 wps {
0056                         label = "bcm53xx:white:wps";
0057                         gpios = <&chipcommon 22 GPIO_ACTIVE_LOW>;
0058                 };
0059 
0060                 usb2 {
0061                         label = "bcm53xx:green:usb2";
0062                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
0063                         trigger-sources = <&ohci_port2>, <&ehci_port2>;
0064                         linux,default-trigger = "usbport";
0065                 };
0066 
0067                 usb3 {
0068                         label = "bcm53xx:green:usb3";
0069                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
0070                         trigger-sources = <&ohci_port1>, <&ehci_port1>,
0071                                           <&xhci_port1>;
0072                         linux,default-trigger = "usbport";
0073                 };
0074 
0075                 power {
0076                         label = "bcm53xx:white:power";
0077                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
0078                         linux,default-trigger = "default-on";
0079                 };
0080 
0081                 wifi-disabled {
0082                         label = "bcm53xx:amber:wifi-disabled";
0083                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
0084                 };
0085 
0086                 wifi-enabled {
0087                         label = "bcm53xx:white:wifi-enabled";
0088                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
0089                 };
0090 
0091                 bluebar1 {
0092                         label = "bcm53xx:white:bluebar1";
0093                         gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
0094                 };
0095 
0096                 bluebar2 {
0097                         label = "bcm53xx:white:bluebar2";
0098                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
0099                 };
0100 
0101                 bluebar3 {
0102                         label = "bcm53xx:white:bluebar3";
0103                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
0104                 };
0105 
0106                 bluebar4 {
0107                         label = "bcm53xx:white:bluebar4";
0108                         gpios = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
0109                 };
0110 
0111                 bluebar5 {
0112                         label = "bcm53xx:white:bluebar5";
0113                         gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>;
0114                 };
0115 
0116                 bluebar6 {
0117                         label = "bcm53xx:white:bluebar6";
0118                         gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
0119                 };
0120 
0121                 bluebar7 {
0122                         label = "bcm53xx:white:bluebar7";
0123                         gpios = <&chipcommon 21 GPIO_ACTIVE_HIGH>;
0124                 };
0125 
0126                 bluebar8 {
0127                         label = "bcm53xx:white:bluebar8";
0128                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
0129                 };
0130         };
0131 
0132         mdio-mux@18003000 {
0133 
0134                 /* BIT(9) = 1 => external mdio */
0135                 mdio@200 {
0136                         reg = <0x200>;
0137                         #address-cells = <1>;
0138                         #size-cells = <0>;
0139 
0140                         switch@0  {
0141                                 compatible = "brcm,bcm53125";
0142                                 #address-cells = <1>;
0143                                 #size-cells = <0>;
0144                                 reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
0145                                 reset-names = "robo_reset";
0146                                 reg = <0>;
0147                                 dsa,member = <1 0>;
0148                                 pinctrl-names = "default";
0149                                 pinctrl-0 = <&pinmux_mdio>;
0150 
0151                                 ports {
0152                                         #address-cells = <1>;
0153                                         #size-cells = <0>;
0154 
0155                                         port@0 {
0156                                                 reg = <0>;
0157                                                 label = "lan1";
0158                                         };
0159 
0160                                         port@1 {
0161                                                 reg = <1>;
0162                                                 label = "lan5";
0163                                         };
0164 
0165                                         port@2 {
0166                                                 reg = <2>;
0167                                                 label = "lan2";
0168                                         };
0169 
0170                                         port@3 {
0171                                                 reg = <3>;
0172                                                 label = "lan6";
0173                                         };
0174 
0175                                         port@4 {
0176                                                 reg = <4>;
0177                                                 label = "lan3";
0178                                         };
0179 
0180                                         sw1_p8: port@8 {
0181                                                 reg = <8>;
0182                                                 ethernet = <&sw0_p0>;
0183                                                 label = "cpu";
0184 
0185                                                 fixed-link {
0186                                                         speed = <1000>;
0187                                                         full-duplex;
0188                                                 };
0189                                         };
0190                                 };
0191                         };
0192                 };
0193         };
0194 };
0195 
0196 &usb2 {
0197         vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
0198 };
0199 
0200 &usb3 {
0201         vcc-gpio = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
0202 };
0203 
0204 &srab {
0205         compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
0206         status = "okay";
0207         dsa,member = <0 0>;
0208 
0209         ports {
0210                 port@1 {
0211                         reg = <1>;
0212                         label = "lan7";
0213                 };
0214 
0215                 port@2 {
0216                         reg = <2>;
0217                         label = "lan4";
0218                 };
0219 
0220                 port@3 {
0221                         reg = <3>;
0222                         label = "lan8";
0223                 };
0224 
0225                 port@4 {
0226                         reg = <4>;
0227                         label = "wan";
0228                 };
0229 
0230                 port@5 {
0231                         reg = <5>;
0232                         ethernet = <&gmac0>;
0233                         label = "cpu";
0234                         status = "disabled";
0235 
0236                         fixed-link {
0237                                 speed = <1000>;
0238                                 full-duplex;
0239                         };
0240                 };
0241 
0242                 port@7 {
0243                         reg = <7>;
0244                         ethernet = <&gmac1>;
0245                         label = "cpu";
0246                         status = "disabled";
0247 
0248                         fixed-link {
0249                                 speed = <1000>;
0250                                 full-duplex;
0251                         };
0252                 };
0253 
0254                 port@8 {
0255                         reg = <8>;
0256                         ethernet = <&gmac2>;
0257                         label = "cpu";
0258 
0259                         fixed-link {
0260                                 speed = <1000>;
0261                                 full-duplex;
0262                         };
0263                 };
0264 
0265                 sw0_p0: port@0 {
0266                         reg = <0>;
0267                         label = "extsw";
0268 
0269                         fixed-link {
0270                                 speed = <1000>;
0271                                 full-duplex;
0272                         };
0273                 };
0274         };
0275 };
0276 
0277 &usb3_phy {
0278         status = "okay";
0279 };
0280 
0281 &nandcs {
0282         partitions {
0283                 compatible = "linksys,ns-partitions";
0284                 #address-cells = <1>;
0285                 #size-cells = <1>;
0286 
0287                 partition@0 {
0288                         label = "boot";
0289                         reg = <0x0000000 0x0080000>;
0290                         read-only;
0291                 };
0292 
0293                 partition@80000 {
0294                         label = "nvram";
0295                         reg = <0x080000 0x0100000>;
0296                 };
0297 
0298                 partition@180000{
0299                         label = "devinfo";
0300                         reg = <0x0180000 0x080000>;
0301                 };
0302 
0303                 partition@200000 {
0304                         reg = <0x0200000 0x01d00000>;
0305                         compatible = "linksys,ns-firmware", "brcm,trx";
0306                 };
0307 
0308                 partition@1f00000 {
0309                         reg = <0x01f00000 0x01d00000>;
0310                         compatible = "linksys,ns-firmware", "brcm,trx";
0311                 };
0312 
0313                 partition@5200000 {
0314                         label = "system";
0315                         reg = <0x05200000 0x02e00000>;
0316                 };
0317         };
0318 };