1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include <dt-bindings/leds/common.h>
5 #include "bcm6368.dtsi"
9 led-boot = &led_power_green;
10 led-failsafe = &led_power_red;
11 led-running = &led_power_green;
12 led-upgrade = &led_power_green;
16 compatible = "gpio-keys-polled";
17 poll-interval = <100>;
21 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RFKILL>;
23 debounce-interval = <60>;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 debounce-interval = <60>;
35 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 debounce-interval = <60>;
42 compatible = "gpio-leds";
46 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_WAN;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 function = LED_FUNCTION_WPS;
63 color = <LED_COLOR_ID_GREEN>;
64 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
70 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
79 led_power_red: led@22 {
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_RED>;
82 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
87 function = LED_FUNCTION_LAN;
88 color = <LED_COLOR_ID_GREEN>;
89 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
92 led_power_green: led@24 {
93 function = LED_FUNCTION_POWER;
94 color = <LED_COLOR_ID_GREEN>;
95 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
99 label = "green:wifi2g";
100 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
104 label = "blue:wifi5g";
105 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
117 nvmem-cells = <&macaddr_cfe_6a0>;
118 nvmem-cell-names = "mac-address";
125 compatible = "brcm,bcm53115";
127 spi-max-frequency = <781000>;
131 #address-cells = <1>;
163 ethernet = <&switch0port5>;
178 compatible = "brcm,nandcs";
180 nand-ecc-step-size = <512>;
181 nand-ecc-strength = <15>;
183 brcm,nand-oob-sector-size = <64>;
186 compatible = "fixed-partitions";
187 #address-cells = <1>;
192 reg = <0 0>; /* autodetected size */
210 compatible = "fixed-partitions";
211 #address-cells = <1>;
216 reg = <0x0000000 0x0020000>;
220 compatible = "fixed-layout";
221 #address-cells = <1>;
224 macaddr_cfe_6a0: macaddr@6a0 {
231 compatible = "brcm,bcm963xx-imagetag";
233 reg = <0x0020000 0x1e20000>;
237 label = "board_data";
238 reg = <0x1e40000 0x1a0000>;
244 reg = <0x1fe0000 0x020000>;
253 switch0port5: port@5 {