bcm63xx: convert to new LED color/function format where possible
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6328-innacomm-w3400v6.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7
8 / {
9 model = "Innacomm W3400V6";
10 compatible = "innacomm,w3400v6", "brcm,bcm6328";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 };
18
19 chosen {
20 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
21 stdout-path = "serial0:115200n8";
22 };
23
24 keys {
25 compatible = "gpio-keys-polled";
26 #address-cells = <1>;
27 #size-cells = <0>;
28 poll-interval = <20>;
29
30 wps {
31 label = "wps";
32 gpios = <&pinctrl 15 1>;
33 linux,code = <KEY_WPS_BUTTON>;
34 debounce-interval = <60>;
35 };
36
37 reset {
38 label = "reset";
39 gpios = <&pinctrl 23 1>;
40 linux,code = <KEY_RESTART>;
41 debounce-interval = <60>;
42 };
43 };
44 };
45
46 &hsspi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 spi-max-frequency = <16666667>;
52 spi-tx-bus-width = <2>;
53 spi-rx-bus-width = <2>;
54 reg = <0>;
55
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partitions {
60 compatible = "brcm,bcm963xx-cfe-nor-partitions";
61 };
62 };
63 };
64
65 &leds {
66 status = "okay";
67
68 pinctrl-names = "default";
69 pinctrl-0 = <&pinctrl_leds>;
70
71 led@1 {
72 reg = <1>;
73 active-low;
74 label = "green:inet";
75 };
76
77 led@2 {
78 reg = <2>;
79 active-low;
80 label = "red:inet";
81 };
82
83 led@3 {
84 reg = <3>;
85 active-low;
86 label = "green:dsl";
87 };
88
89 led_power_green: led@4 {
90 reg = <4>;
91 active-low;
92 function = LED_FUNCTION_POWER;
93 color = <LED_COLOR_ID_GREEN>;
94 default-state = "on";
95 };
96
97 led_power_red: led@5 {
98 reg = <5>;
99 active-low;
100 function = LED_FUNCTION_POWER;
101 color = <LED_COLOR_ID_RED>;
102 };
103
104 led@11 {
105 reg = <11>;
106 active-low;
107 function = LED_FUNCTION_WPS;
108 color = <LED_COLOR_ID_GREEN>;
109 };
110 };
111
112 &pinctrl {
113 pinctrl_leds: leds {
114 function = "led";
115 pins = "gpio1", "gpio2", "gpio3",
116 "gpio4", "gpio5", "gpio11";
117 };
118 };
119
120 &uart0 {
121 status = "okay";
122 };