bmips: dts: move leds dt-bindings include to SoCs
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6328-comtrend-ar-5381u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Comtrend AR-5381u";
7 compatible = "comtrend,ar-5381u", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_alarm_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 = <97 0xfee5>,
39 <98 0x157c>,
40 <99 0xfae7>,
41 <113 0xfefa>,
42 <114 0x15d6>,
43 <115 0xfaf8>;
44 };
45 };
46
47 &ehci {
48 status = "okay";
49 };
50
51 &ethernet {
52 status = "okay";
53
54 nvmem-cells = <&macaddr_cfe_6a0 0>;
55 nvmem-cell-names = "mac-address";
56 };
57
58 &hsspi {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 spi-max-frequency = <16666667>;
64 spi-tx-bus-width = <2>;
65 spi-rx-bus-width = <2>;
66 reg = <0>;
67
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 reg = <0x000000 0x010000>;
78 label = "cfe";
79 read-only;
80
81 nvmem-layout {
82 compatible = "fixed-layout";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 macaddr_cfe_6a0: macaddr@6a0 {
87 compatible = "mac-base";
88 reg = <0x6a0 0x6>;
89 #nvmem-cell-cells = <1>;
90 };
91 };
92 };
93
94 partition@10000 {
95 compatible = "brcm,bcm963xx-imagetag";
96 reg = <0x010000 0xfe0000>;
97 label = "firmware";
98 };
99
100 partition@ff0000 {
101 reg = <0xff0000 0x010000>;
102 label = "nvram";
103 };
104 };
105 };
106 };
107
108 &leds {
109 status = "okay";
110
111 pinctrl-names = "default";
112 pinctrl-0 = <&pinctrl_leds>;
113
114 led_alarm_red: led@2 {
115 reg = <2>;
116 active-low;
117 function = LED_FUNCTION_ALARM;
118 color = <LED_COLOR_ID_RED>;
119 panic-indicator;
120 };
121
122 led@3 {
123 reg = <3>;
124 active-low;
125 label = "green:internet";
126 };
127
128 led_power_green: led@4 {
129 reg = <4>;
130 active-low;
131 function = LED_FUNCTION_POWER;
132 color = <LED_COLOR_ID_GREEN>;
133 };
134 };
135
136 &ohci {
137 status = "okay";
138 };
139
140 &pcie {
141 status = "okay";
142 };
143
144 &pinctrl {
145 pinctrl_leds: leds {
146 function = "led";
147 pins = "gpio2", "gpio3", "gpio4";
148 };
149 };
150
151 &switch0 {
152 ports {
153 port@0 {
154 reg = <0>;
155 label = "lan1";
156
157 phy-handle = <&phy1>;
158 phy-mode = "mii";
159 };
160
161 port@1 {
162 reg = <1>;
163 label = "lan2";
164
165 phy-handle = <&phy2>;
166 phy-mode = "mii";
167 };
168
169 port@2 {
170 reg = <2>;
171 label = "lan3";
172
173 phy-handle = <&phy3>;
174 phy-mode = "mii";
175 };
176
177 port@3 {
178 reg = <3>;
179 label = "lan4";
180
181 phy-handle = <&phy4>;
182 phy-mode = "mii";
183 };
184 };
185 };
186
187 &uart0 {
188 status = "okay";
189 };
190
191 &usbh {
192 status = "okay";
193 };