1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "asus,rt-n56u-b1", "mediatek,mt7621-soc";
11 model = "ASUS RT-N56U B1";
14 label-mac-device = &gmac1;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_BLUE>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 label = "blue:wlan2g";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
41 label = "blue:wlan5g";
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
47 function = LED_FUNCTION_WAN;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_LAN;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_USB;
60 color = <LED_COLOR_ID_BLUE>;
61 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
63 linux,default-trigger = "usbport";
68 compatible = "gpio-keys";
72 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
73 linux,code = <KEY_WPS_BUTTON>;
74 debounce-interval = <60>;
79 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
81 debounce-interval = <60>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <50000000>;
96 compatible = "fixed-partitions";
108 reg = <0x30000 0x10000>;
112 factory: partition@40000 {
114 reg = <0x40000 0x10000>;
118 compatible = "fixed-layout";
119 #address-cells = <1>;
122 eeprom_factory_0: eeprom@0 {
126 eeprom_factory_8000: eeprom@8000 {
127 reg = <0x8000 0x200>;
130 macaddr_factory_4: macaddr@4 {
134 macaddr_factory_8004: macaddr@8004 {
141 compatible = "denx,uimage";
143 reg = <0x50000 0xfb0000>;
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_8000>;
158 nvmem-cell-names = "eeprom";
164 compatible = "mediatek,mt76";
165 reg = <0x0000 0 0 0 0>;
166 nvmem-cells = <&eeprom_factory_0>;
167 nvmem-cell-names = "eeprom";
172 nvmem-cells = <&macaddr_factory_8004>;
173 nvmem-cell-names = "mac-address";
179 phy-handle = <ðphy4>;
181 nvmem-cells = <&macaddr_factory_4>;
182 nvmem-cell-names = "mac-address";
186 ethphy4: ethernet-phy@4 {
217 groups = "uart3", "uart2", "jtag", "wdt";