bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/robimarko.git] / target / linux / bmips / dts / bcm6368-actiontec-r1000h.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6368.dtsi"
4
5 / {
6 model = "Actiontec R1000H";
7 compatible = "actiontec,r1000h", "brcm,bcm6368";
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 34 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 debounce-interval = <60>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 debounce-interval = <60>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 led@5 {
39 function = LED_FUNCTION_WAN;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
42 };
43
44 led@21 {
45 function = LED_FUNCTION_USB;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
48 };
49
50 led_power_green: led@22 {
51 function = LED_FUNCTION_POWER;
52 color = <LED_COLOR_ID_GREEN>;
53 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
54 };
55
56 led@23 {
57 function = LED_FUNCTION_WPS;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
60 };
61
62 led_power_red: led@24 {
63 function = LED_FUNCTION_POWER;
64 color = <LED_COLOR_ID_RED>;
65 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
66 panic-indicator;
67 };
68
69 led@30 {
70 function = LED_FUNCTION_WPS;
71 color = <LED_COLOR_ID_RED>;
72 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
73 };
74
75 led@31 {
76 function = LED_FUNCTION_WAN;
77 color = <LED_COLOR_ID_RED>;
78 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
79 };
80 };
81 };
82
83 &ehci {
84 status = "okay";
85 };
86
87 &ethernet {
88 status = "okay";
89
90 nvmem-cells = <&macaddr_cfe_6a0>;
91 nvmem-cell-names = "mac-address";
92 };
93
94 &mdio_ext {
95 switch@1e {
96 compatible = "brcm,bcm53115";
97 reg = <30>;
98
99 dsa,member = <1 0>;
100
101 ports {
102 #address-cells = <1>;
103 #size-cells = <0>;
104
105 port@0 {
106 reg = <0>;
107 label = "lan1";
108 };
109
110 port@1 {
111 reg = <1>;
112 label = "lan2";
113 };
114
115 port@2 {
116 reg = <2>;
117 label = "lan3";
118 };
119
120 port@3 {
121 reg = <3>;
122 label = "lan4";
123 };
124
125 port@4 {
126 reg = <4>;
127 label = "wan";
128 };
129
130 port@5 {
131 /* HPNA coaxial port */
132 reg = <5>;
133 label = "coax";
134
135 phy-mode = "mii";
136
137 fixed-link {
138 speed = <100>;
139 full-duplex;
140 };
141 };
142
143 port@8 {
144 reg = <8>;
145
146 phy-mode = "rgmii";
147 ethernet = <&switch0port5>;
148
149 fixed-link {
150 speed = <1000>;
151 full-duplex;
152 };
153 };
154 };
155 };
156 };
157
158 &switch0 {
159 dsa,member = <0 0>;
160
161 ports {
162 switch0port5: port@5 {
163 reg = <5>;
164 label = "extsw";
165
166 phy-mode = "rgmii";
167
168 fixed-link {
169 speed = <1000>;
170 full-duplex;
171 };
172 };
173 };
174 };
175
176 &pflash {
177 status = "okay";
178
179 partitions {
180 compatible = "fixed-partitions";
181 #address-cells = <1>;
182 #size-cells = <1>;
183
184 partition@0 {
185 label = "CFE";
186 reg = <0x000000 0x020000>;
187 read-only;
188
189 nvmem-layout {
190 compatible = "fixed-layout";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 macaddr_cfe_6a0: macaddr@6a0 {
195 reg = <0x6a0 0x6>;
196 };
197 };
198 };
199
200 partition@20000 {
201 label = "firmware";
202 reg = <0x020000 0x1fc0000>;
203 compatible = "brcm,bcm963xx-imagetag";
204 };
205
206 partition@fe0000 {
207 label = "nvram";
208 reg = <0x1fe0000 0x020000>;
209 };
210 };
211 };
212
213 &ohci {
214 status = "okay";
215 };
216
217 &pci {
218 status = "okay";
219 };
220
221 &uart0 {
222 status = "okay";
223 };
224
225 &usbh {
226 status = "okay";
227 };