Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright (C) 2021-2022 Arınç ÜNAL <arinc.unal@arinc9.com>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "bcm47094.dtsi"
0009 #include "bcm5301x-nand-cs0-bch8.dtsi"
0010 
0011 / {
0012         compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708";
0013         model = "Asus RT-AC88U";
0014 
0015         chosen {
0016                 bootargs = "earlycon";
0017         };
0018 
0019         memory@0 {
0020                 device_type = "memory";
0021                 reg = <0x00000000 0x08000000>,
0022                       <0x88000000 0x18000000>;
0023         };
0024 
0025         nvram@1c080000 {
0026                 compatible = "brcm,nvram";
0027                 reg = <0x1c080000 0x00180000>;
0028 
0029                 et1macaddr: et1macaddr {
0030                 };
0031         };
0032 
0033         leds {
0034                 compatible = "gpio-leds";
0035 
0036                 power {
0037                         label = "white:power";
0038                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0039                         linux,default-trigger = "default-on";
0040                 };
0041 
0042                 wan-red {
0043                         label = "red:wan";
0044                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
0045                 };
0046 
0047                 lan {
0048                         label = "white:lan";
0049                         gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
0050                 };
0051 
0052                 usb2 {
0053                         label = "white:usb2";
0054                         gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
0055                         trigger-sources = <&ehci_port2>;
0056                         linux,default-trigger = "usbport";
0057                 };
0058 
0059                 usb3 {
0060                         label = "white:usb3";
0061                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0062                         trigger-sources = <&ehci_port1>, <&xhci_port1>;
0063                         linux,default-trigger = "usbport";
0064                 };
0065 
0066                 wps {
0067                         label = "white:wps";
0068                         gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
0069                 };
0070         };
0071 
0072         gpio-keys {
0073                 compatible = "gpio-keys";
0074 
0075                 button-wps {
0076                         label = "WPS";
0077                         linux,code = <KEY_WPS_BUTTON>;
0078                         gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
0079                 };
0080 
0081                 button-reset {
0082                         label = "Reset";
0083                         linux,code = <KEY_RESTART>;
0084                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0085                 };
0086 
0087                 button-wifi {
0088                         label = "Wi-Fi";
0089                         linux,code = <KEY_RFKILL>;
0090                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
0091                 };
0092 
0093                 button-led {
0094                         label = "Backlight";
0095                         linux,code = <KEY_BRIGHTNESS_ZERO>;
0096                         gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
0097                 };
0098         };
0099 
0100         switch {
0101                 compatible = "realtek,rtl8365mb";
0102                 /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */
0103                 mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
0104                 mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
0105                 reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
0106                 realtek,disable-leds;
0107                 dsa,member = <1 0>;
0108 
0109                 ports {
0110                         #address-cells = <1>;
0111                         #size-cells = <0>;
0112 
0113                         port@0 {
0114                                 reg = <0>;
0115                                 label = "lan5";
0116                                 phy-handle = <&ethphy0>;
0117                         };
0118 
0119                         port@1 {
0120                                 reg = <1>;
0121                                 label = "lan6";
0122                                 phy-handle = <&ethphy1>;
0123                         };
0124 
0125                         port@2 {
0126                                 reg = <2>;
0127                                 label = "lan7";
0128                                 phy-handle = <&ethphy2>;
0129                         };
0130 
0131                         port@3 {
0132                                 reg = <3>;
0133                                 label = "lan8";
0134                                 phy-handle = <&ethphy3>;
0135                         };
0136 
0137                         port@6 {
0138                                 reg = <6>;
0139                                 label = "cpu";
0140                                 ethernet = <&sw0_p5>;
0141                                 phy-mode = "rgmii";
0142                                 tx-internal-delay-ps = <2000>;
0143                                 rx-internal-delay-ps = <2100>;
0144 
0145                                 fixed-link {
0146                                         speed = <1000>;
0147                                         full-duplex;
0148                                         pause;
0149                                 };
0150                         };
0151                 };
0152 
0153                 mdio {
0154                         compatible = "realtek,smi-mdio";
0155                         #address-cells = <1>;
0156                         #size-cells = <0>;
0157 
0158                         ethphy0: ethernet-phy@0 {
0159                                 reg = <0>;
0160                         };
0161 
0162                         ethphy1: ethernet-phy@1 {
0163                                 reg = <1>;
0164                         };
0165 
0166                         ethphy2: ethernet-phy@2 {
0167                                 reg = <2>;
0168                         };
0169 
0170                         ethphy3: ethernet-phy@3 {
0171                                 reg = <3>;
0172                         };
0173                 };
0174         };
0175 };
0176 
0177 &srab {
0178         compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
0179         status = "okay";
0180         dsa,member = <0 0>;
0181 
0182         ports {
0183                 port@0 {
0184                         reg = <0>;
0185                         label = "lan4";
0186                 };
0187 
0188                 port@1 {
0189                         reg = <1>;
0190                         label = "lan3";
0191                 };
0192 
0193                 port@2 {
0194                         reg = <2>;
0195                         label = "lan2";
0196                 };
0197 
0198                 port@3 {
0199                         reg = <3>;
0200                         label = "lan1";
0201                 };
0202 
0203                 port@4 {
0204                         reg = <4>;
0205                         label = "wan";
0206                 };
0207 
0208                 sw0_p5: port@5 {
0209                         reg = <5>;
0210                         label = "extsw";
0211                         phy-mode = "rgmii";
0212 
0213                         fixed-link {
0214                                 speed = <1000>;
0215                                 full-duplex;
0216                                 pause;
0217                         };
0218                 };
0219 
0220                 port@7 {
0221                         reg = <7>;
0222                         ethernet = <&gmac1>;
0223                         label = "cpu";
0224 
0225                         fixed-link {
0226                                 speed = <1000>;
0227                                 full-duplex;
0228                         };
0229                 };
0230 
0231                 port@8 {
0232                         reg = <8>;
0233                         ethernet = <&gmac2>;
0234                         label = "cpu";
0235 
0236                         fixed-link {
0237                                 speed = <1000>;
0238                                 full-duplex;
0239                         };
0240                 };
0241         };
0242 };
0243 
0244 &gmac0 {
0245         status = "disabled";
0246 };
0247 
0248 &gmac1 {
0249         nvmem-cells = <&et1macaddr>;
0250         nvmem-cell-names = "mac-address";
0251 };
0252 
0253 &usb2 {
0254         vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
0255 };
0256 
0257 &usb3_phy {
0258         status = "okay";
0259 };
0260 
0261 &nandcs {
0262         partitions {
0263                 compatible = "fixed-partitions";
0264                 #address-cells = <1>;
0265                 #size-cells = <1>;
0266 
0267                 partition@0 {
0268                         label = "boot";
0269                         reg = <0x00000000 0x00080000>;
0270                         read-only;
0271                 };
0272 
0273                 partition@80000 {
0274                         label = "nvram";
0275                         reg = <0x00080000 0x00180000>;
0276                 };
0277 
0278                 partition@200000 {
0279                         label = "firmware";
0280                         reg = <0x00200000 0x07e00000>;
0281                         compatible = "brcm,trx";
0282                 };
0283         };
0284 };