1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include <dt-bindings/leds/common.h>
5 #include "bcm6368.dtsi"
8 model = "Comtrend WAP-5813n";
9 compatible = "comtrend,wap-5813n", "brcm,bcm6369", "brcm,bcm6368";
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
24 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WLAN>;
26 debounce-interval = <60>;
31 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
38 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WPS_BUTTON>;
40 debounce-interval = <60>;
45 compatible = "gpio-leds";
48 label = "green:internet";
49 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
53 function = LED_FUNCTION_USB;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
58 led_power_green: led@22 {
59 function = LED_FUNCTION_POWER;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
65 function = LED_FUNCTION_WPS;
66 color = <LED_COLOR_ID_GREEN>;
67 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
70 led_power_red: led@24 {
71 function = LED_FUNCTION_POWER;
72 color = <LED_COLOR_ID_RED>;
73 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
78 label = "red:internet";
79 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
84 compatible = "brcm,ssb-sprom";
89 nvmem-cells = <&macaddr_cfe_6a0 1>;
90 nvmem-cell-names = "mac-address";
92 brcm,sprom = "brcm/bcm4322-sprom.bin";
93 brcm,sprom-fixups = <97 0xfeed>,
109 nvmem-cells = <&macaddr_cfe_6a0 0>;
110 nvmem-cell-names = "mac-address";
117 compatible = "brcm,bcm53115";
119 spi-max-frequency = <781000>;
123 #address-cells = <1>;
155 ethernet = <&switch0port4>;
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
176 reg = <0x000000 0x010000>;
180 compatible = "fixed-layout";
181 #address-cells = <1>;
184 macaddr_cfe_6a0: macaddr@6a0 {
185 compatible = "mac-base";
187 #nvmem-cell-cells = <1>;
194 reg = <0x010000 0x7e0000>;
195 compatible = "brcm,bcm963xx-imagetag";
200 reg = <0x7f0000 0x010000>;
217 switch0port4: port@4 {