bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/robimarko.git] / target / linux / bmips / dts / bcm6328-nucom-r5010unv2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "NuCom R5010UNv2";
7 compatible = "nucom,r5010unv2", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 debounce-interval = <60>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 debounce-interval = <60>;
32 };
33 };
34
35 bcm43217-sprom {
36 compatible = "brcm,bcma-sprom";
37
38 pci-bus = <1>;
39 pci-dev = <0>;
40
41 nvmem-cells = <&macaddr_cfe_6a0 1>;
42 nvmem-cell-names = "mac-address";
43
44 brcm,sprom = "brcm/bcm43217-sprom.bin";
45 };
46 };
47
48 &ehci {
49 status = "okay";
50 };
51
52 &ethernet {
53 status = "okay";
54
55 nvmem-cells = <&macaddr_cfe_6a0 0>;
56 nvmem-cell-names = "mac-address";
57 };
58
59 &hsspi {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 spi-max-frequency = <16666667>;
65 spi-tx-bus-width = <2>;
66 spi-rx-bus-width = <2>;
67 reg = <0>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "cfe";
76 reg = <0x000000 0x010000>;
77 read-only;
78
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_cfe_6a0: macaddr@6a0 {
85 compatible = "mac-base";
86 reg = <0x6a0 0x6>;
87 #nvmem-cell-cells = <1>;
88 };
89 };
90 };
91
92 partition@10000 {
93 compatible = "brcm,bcm963xx-imagetag";
94 label = "firmware";
95 reg = <0x010000 0xfe0000>;
96 };
97
98 partition@ff0000 {
99 label = "nvram";
100 reg = <0xff0000 0x010000>;
101 };
102 };
103 };
104 };
105
106 &leds {
107 status = "okay";
108
109 pinctrl-names = "default";
110 pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
111 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led
112 &pinctrl_leds>;
113
114 led@1 {
115 reg = <1>;
116 active-low;
117 label = "green:internet";
118 };
119
120 led@2 {
121 reg = <2>;
122 active-low;
123 label = "red:internet";
124 };
125
126 led@3 {
127 reg = <3>;
128 active-low;
129 label = "green:dsl";
130 };
131
132 led_power_green: led@4 {
133 reg = <4>;
134 active-low;
135 function = LED_FUNCTION_POWER;
136 color = <LED_COLOR_ID_GREEN>;
137 };
138
139 led_power_red: led@5 {
140 reg = <5>;
141 active-low;
142 function = LED_FUNCTION_POWER;
143 color = <LED_COLOR_ID_RED>;
144 panic-indicator;
145 };
146
147 led@10 {
148 reg = <10>;
149 active-low;
150 function = LED_FUNCTION_WPS;
151 color = <LED_COLOR_ID_GREEN>;
152 };
153
154 led@11 {
155 reg = <11>;
156 active-low;
157 function = LED_FUNCTION_USB;
158 color = <LED_COLOR_ID_GREEN>;
159 };
160 };
161
162 &ohci {
163 status = "okay";
164 };
165
166 &pcie {
167 status = "okay";
168 };
169
170 &pinctrl {
171 pinctrl_leds: leds {
172 function = "led";
173 pins = "gpio1", "gpio2", "gpio3",
174 "gpio4", "gpio5", "gpio10",
175 "gpio11";
176 };
177 };
178
179 &switch0 {
180 ports {
181 port@0 {
182 reg = <0>;
183 label = "lan1";
184
185 phy-handle = <&phy1>;
186 phy-mode = "mii";
187 };
188
189 port@1 {
190 reg = <1>;
191 label = "lan2";
192
193 phy-handle = <&phy2>;
194 phy-mode = "mii";
195 };
196
197 port@2 {
198 reg = <2>;
199 label = "lan3";
200
201 phy-handle = <&phy3>;
202 phy-mode = "mii";
203 };
204
205 port@3 {
206 reg = <3>;
207 label = "lan4";
208
209 phy-handle = <&phy4>;
210 phy-mode = "mii";
211 };
212 };
213 };
214
215 &uart0 {
216 status = "okay";
217 };
218
219 &usbh {
220 status = "okay";
221 };