1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Author: Tom Brautaset <tbrautaset@gmail.com> 3 * Author: Tom Brautaset <tbrautaset@gmail.com> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "bcm4709.dtsi" 8 #include "bcm4709.dtsi" 9 #include "bcm5301x-nand-cs0-bch8.dtsi" 9 #include "bcm5301x-nand-cs0-bch8.dtsi" 10 10 11 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/leds/common.h> 12 12 13 / { 13 / { 14 compatible = "asus,rt-ac3200", "brcm,b 14 compatible = "asus,rt-ac3200", "brcm,bcm4709", "brcm,bcm4708"; 15 model = "ASUS RT-AC3200"; 15 model = "ASUS RT-AC3200"; 16 16 17 memory@0 { 17 memory@0 { 18 reg = <0x00000000 0x08000000>, 18 reg = <0x00000000 0x08000000>, 19 <0x88000000 0x08000000>; 19 <0x88000000 0x08000000>; 20 device_type = "memory"; 20 device_type = "memory"; 21 }; 21 }; 22 22 23 nvram@1c080000 { 23 nvram@1c080000 { 24 compatible = "brcm,nvram"; 24 compatible = "brcm,nvram"; 25 reg = <0x1c080000 0x00180000>; 25 reg = <0x1c080000 0x00180000>; 26 26 27 et0macaddr: et0macaddr { 27 et0macaddr: et0macaddr { 28 #nvmem-cell-cells = <1 28 #nvmem-cell-cells = <1>; 29 }; 29 }; 30 }; 30 }; 31 31 32 gpio-keys { 32 gpio-keys { 33 compatible = "gpio-keys"; 33 compatible = "gpio-keys"; 34 34 35 button-reset { 35 button-reset { 36 label = "Reset"; 36 label = "Reset"; 37 linux,code = <KEY_REST 37 linux,code = <KEY_RESTART>; 38 gpios = <&chipcommon 1 38 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 39 }; 39 }; 40 40 41 button-wifi { 41 button-wifi { 42 label = "Wi-Fi"; 42 label = "Wi-Fi"; 43 linux,code = <KEY_RFKI 43 linux,code = <KEY_RFKILL>; 44 gpios = <&chipcommon 4 44 gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; 45 }; 45 }; 46 46 47 button-wps { 47 button-wps { 48 label = "WPS"; 48 label = "WPS"; 49 linux,code = <KEY_WPS_ 49 linux,code = <KEY_WPS_BUTTON>; 50 gpios = <&chipcommon 7 50 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; 51 }; 51 }; 52 }; 52 }; 53 53 54 leds { 54 leds { 55 compatible = "gpio-leds"; 55 compatible = "gpio-leds"; 56 56 57 led-power { 57 led-power { 58 color = <LED_COLOR_ID_ 58 color = <LED_COLOR_ID_WHITE>; 59 function = LED_FUNCTIO 59 function = LED_FUNCTION_POWER; 60 gpios = <&chipcommon 3 60 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 61 linux,default-trigger 61 linux,default-trigger = "default-on"; 62 }; 62 }; 63 63 64 led-wan-red { 64 led-wan-red { 65 color = <LED_COLOR_ID_ 65 color = <LED_COLOR_ID_RED>; 66 function = LED_FUNCTIO 66 function = LED_FUNCTION_WAN; 67 gpios = <&chipcommon 5 67 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; 68 }; 68 }; 69 69 70 led-wps { 70 led-wps { 71 color = <LED_COLOR_ID_ 71 color = <LED_COLOR_ID_WHITE>; 72 function = LED_FUNCTIO 72 function = LED_FUNCTION_WPS; 73 gpios = <&chipcommon 1 73 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 74 }; 74 }; 75 }; 75 }; 76 }; 76 }; 77 77 78 &gmac0 { 78 &gmac0 { 79 nvmem-cells = <&et0macaddr 0>; 79 nvmem-cells = <&et0macaddr 0>; 80 nvmem-cell-names = "mac-address"; 80 nvmem-cell-names = "mac-address"; 81 }; 81 }; 82 82 83 &gmac1 { 83 &gmac1 { 84 nvmem-cells = <&et0macaddr 1>; 84 nvmem-cells = <&et0macaddr 1>; 85 nvmem-cell-names = "mac-address"; 85 nvmem-cell-names = "mac-address"; 86 }; 86 }; 87 87 88 &gmac2 { 88 &gmac2 { 89 nvmem-cells = <&et0macaddr 2>; 89 nvmem-cells = <&et0macaddr 2>; 90 nvmem-cell-names = "mac-address"; 90 nvmem-cell-names = "mac-address"; 91 }; 91 }; 92 92 93 &nandcs { 93 &nandcs { 94 partitions { 94 partitions { 95 compatible = "fixed-partitions 95 compatible = "fixed-partitions"; 96 #address-cells = <1>; 96 #address-cells = <1>; 97 #size-cells = <1>; 97 #size-cells = <1>; 98 98 99 partition@0 { 99 partition@0 { 100 reg = <0x00000000 0x00 100 reg = <0x00000000 0x00080000>; 101 label = "boot"; 101 label = "boot"; 102 read-only; 102 read-only; 103 }; 103 }; 104 104 105 partition@80000 { 105 partition@80000 { 106 reg = <0x00080000 0x00 106 reg = <0x00080000 0x00180000>; 107 label = "nvram"; 107 label = "nvram"; 108 }; 108 }; 109 109 110 partition@200000 { 110 partition@200000 { 111 compatible = "brcm,trx 111 compatible = "brcm,trx"; 112 reg = <0x00200000 0x07 112 reg = <0x00200000 0x07e00000>; 113 label = "firmware"; 113 label = "firmware"; 114 }; 114 }; 115 }; 115 }; 116 }; 116 }; 117 117 118 &srab { 118 &srab { 119 status = "okay"; 119 status = "okay"; 120 120 121 ports { 121 ports { 122 port@0 { 122 port@0 { 123 label = "wan"; 123 label = "wan"; 124 }; 124 }; 125 125 126 port@1 { 126 port@1 { 127 label = "lan1"; 127 label = "lan1"; 128 }; 128 }; 129 129 130 port@2 { 130 port@2 { 131 label = "lan2"; 131 label = "lan2"; 132 }; 132 }; 133 133 134 port@3 { 134 port@3 { 135 label = "lan3"; 135 label = "lan3"; 136 }; 136 }; 137 137 138 port@4 { 138 port@4 { 139 label = "lan4"; 139 label = "lan4"; 140 }; 140 }; 141 }; 141 }; 142 }; 142 }; 143 143 144 &usb2 { 144 &usb2 { 145 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_ 145 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; 146 }; 146 }; 147 147 148 &usb3_phy { 148 &usb3_phy { 149 status = "okay"; 149 status = "okay"; 150 }; 150 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.