bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6328-comtrend-ar-5387un.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Comtrend AR-5387un";
7 compatible = "comtrend,ar-5387un", "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
28 bcm43225-sprom {
29 compatible = "brcm,bcma-sprom";
30
31 pci-bus = <1>;
32 pci-dev = <0>;
33
34 nvmem-cells = <&macaddr_cfe_6a0 1>;
35 nvmem-cell-names = "mac-address";
36
37 brcm,sprom = "brcm/bcm43225-sprom.bin";
38 brcm,sprom-fixups = <2 0x05bb>,
39 <65 0x1204>,
40 <78 0x0303>,
41 <79 0x0202>,
42 <80 0xff02>,
43 <87 0x0315>,
44 <88 0x0315>,
45 <96 0x2048>,
46 <97 0xff11>,
47 <98 0x1567>,
48 <99 0xfb24>,
49 <100 0x3e3c>,
50 <101 0x4038>,
51 <102 0xfe7f>,
52 <103 0x1279>,
53 <112 0x2048>,
54 <113 0xff03>,
55 <114 0x154c>,
56 <115 0xfb27>,
57 <116 0x3e3c>,
58 <117 0x4038>,
59 <118 0xfe87>,
60 <119 0x1233>,
61 <203 0x2226>;
62 };
63 };
64
65 &ehci {
66 status = "okay";
67 };
68
69 &ethernet {
70 status = "okay";
71
72 nvmem-cells = <&macaddr_cfe_6a0 0>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &hsspi {
77 status = "okay";
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 spi-max-frequency = <16666667>;
82 spi-tx-bus-width = <2>;
83 spi-rx-bus-width = <2>;
84 reg = <0>;
85
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partitions {
90 compatible = "fixed-partitions";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 partition@0 {
95 reg = <0x000000 0x010000>;
96 label = "cfe";
97 read-only;
98
99 nvmem-layout {
100 compatible = "fixed-layout";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_cfe_6a0: macaddr@6a0 {
105 compatible = "mac-base";
106 reg = <0x6a0 0x6>;
107 #nvmem-cell-cells = <1>;
108 };
109 };
110 };
111
112 partition@10000 {
113 compatible = "brcm,bcm963xx-imagetag";
114 reg = <0x010000 0xfe0000>;
115 label = "firmware";
116 };
117
118 partition@ff0000 {
119 reg = <0xff0000 0x010000>;
120 label = "nvram";
121 };
122 };
123 };
124 };
125
126 &leds {
127 status = "okay";
128
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinctrl_leds>;
131
132 led@1 {
133 reg = <1>;
134 label = "red:internet";
135 };
136
137 led_power_red: led@4 {
138 reg = <4>;
139 function = LED_FUNCTION_POWER;
140 color = <LED_COLOR_ID_RED>;
141 panic-indicator;
142 };
143
144 led@7 {
145 reg = <7>;
146 label = "green:internet";
147 };
148
149 led_power_green: led@8 {
150 reg = <8>;
151 function = LED_FUNCTION_POWER;
152 color = <LED_COLOR_ID_GREEN>;
153 };
154
155 led@11 {
156 reg = <11>;
157 active-low;
158 label = "green:dsl";
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", "gpio4", "gpio7",
174 "gpio8", "gpio11";
175 };
176 };
177
178 &switch0 {
179 ports {
180 port@0 {
181 reg = <0>;
182 label = "lan1";
183
184 phy-handle = <&phy1>;
185 phy-mode = "mii";
186 };
187
188 port@1 {
189 reg = <1>;
190 label = "lan2";
191
192 phy-handle = <&phy2>;
193 phy-mode = "mii";
194 };
195
196 port@2 {
197 reg = <2>;
198 label = "lan3";
199
200 phy-handle = <&phy3>;
201 phy-mode = "mii";
202 };
203
204 port@3 {
205 reg = <3>;
206 label = "lan4";
207
208 phy-handle = <&phy4>;
209 phy-mode = "mii";
210 };
211 };
212 };
213
214 &uart0 {
215 status = "okay";
216 };
217
218 &usbh {
219 status = "okay";
220 };