1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
7 #include "bcm4908.dtsi"
10 compatible = "asus,gt-ac5300", "brcm,bcm4908", "brcm,bcmbca";
11 model = "Asus GT-AC5300";
14 device_type = "memory";
15 reg = <0x00 0x00 0x00 0x40000000>;
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
24 linux,code = <KEY_RFKILL>;
25 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_BRIGHTNESS_ZERO>;
43 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
49 nvmem-cells = <&base_mac_addr>;
50 nvmem-cell-names = "mac-address";
87 /* External BCM53134S switch */
125 function = LED_FUNCTION_POWER;
126 color = <LED_COLOR_ID_WHITE>;
127 default-state = "on";
129 pinctrl-names = "default";
130 pinctrl-0 = <&pins_led_17_a>;
135 function = LED_FUNCTION_WAN;
136 color = <LED_COLOR_ID_RED>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&pins_led_18_a>;
144 function = LED_FUNCTION_WPS;
145 color = <LED_COLOR_ID_WHITE>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pins_led_20_a>;
153 function = LED_FUNCTION_WAN;
154 color = <LED_COLOR_ID_WHITE>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pins_led_21_a>;
162 function = LED_FUNCTION_LAN;
163 color = <LED_COLOR_ID_WHITE>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&pins_led_25_a>;
170 nand-ecc-strength = <4>;
171 nand-ecc-step-size = <512>;
175 #address-cells = <1>;
179 compatible = "brcm,bcm4908-partitions";
180 #address-cells = <1>;
184 compatible = "nvmem-cells";
186 reg = <0x0 0x100000>;
188 #address-cells = <1>;
190 ranges = <0 0x0 0x100000>;
192 base_mac_addr: mac@106a0 {
198 compatible = "brcm,bcm4908-firmware";
199 reg = <0x100000 0x5700000>;
203 compatible = "brcm,bcm4908-firmware";
204 reg = <0x5800000 0x5700000>;