bmips: dts: move leds dt-bindings include to SoCs
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6368-comtrend-vr-3025un.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6368.dtsi"
4
5 / {
6 model = "Comtrend VR-3025un";
7 compatible = "comtrend,vr-3025un", "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
28 leds {
29 compatible = "gpio-leds";
30
31 led@2 {
32 label = "green:dsl";
33 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34 };
35
36 led@5 {
37 label = "green:internet";
38 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
39 };
40
41 led_power_green: led@22 {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
45 };
46
47 led_power_red: led@24 {
48 function = LED_FUNCTION_POWER;
49 color = <LED_COLOR_ID_RED>;
50 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
51 panic-indicator;
52 };
53
54 led@31 {
55 label = "red:internet";
56 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
57 };
58 };
59
60 bcm43222-sprom {
61 compatible = "brcm,ssb-sprom";
62
63 pci-bus = <0>;
64 pci-dev = <1>;
65
66 nvmem-cells = <&macaddr_cfe_6a0 1>;
67 nvmem-cell-names = "mac-address";
68
69 brcm,sprom = "brcm/bcm43222-sprom.bin";
70 brcm,sprom-fixups = <97 0xfeb3>,
71 <98 0x1618>,
72 <99 0xfab0>,
73 <113 0xfed1>,
74 <114 0x1609>,
75 <115 0xfad9>;
76 };
77 };
78
79 &ehci {
80 status = "okay";
81 };
82
83 &ethernet {
84 status = "okay";
85
86 nvmem-cells = <&macaddr_cfe_6a0 0>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &ohci {
91 status = "okay";
92 };
93
94 &pci {
95 status = "okay";
96 };
97
98 &pflash {
99 status = "okay";
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "CFE";
108 reg = <0x000000 0x010000>;
109 read-only;
110
111 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 macaddr_cfe_6a0: macaddr@6a0 {
117 compatible = "mac-base";
118 reg = <0x6a0 0x6>;
119 #nvmem-cell-cells = <1>;
120 };
121 };
122 };
123
124 partition@20000 {
125 compatible = "brcm,bcm963xx-imagetag";
126 label = "firmware";
127 reg = <0x010000 0x7e0000>;
128 };
129
130 partition@1fe0000 {
131 label = "nvram";
132 reg = <0x7f0000 0x010000>;
133 };
134 };
135 };
136
137 &pinctrl {
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
140 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
141 };
142
143 &switch0 {
144 ports {
145 port@0 {
146 reg = <0>;
147 label = "lan1";
148
149 phy-handle = <&phy1>;
150 phy-mode = "mii";
151 };
152
153 port@1 {
154 reg = <1>;
155 label = "lan2";
156
157 phy-handle = <&phy2>;
158 phy-mode = "mii";
159 };
160
161 port@2 {
162 reg = <2>;
163 label = "lan3";
164
165 phy-handle = <&phy3>;
166 phy-mode = "mii";
167 };
168
169 port@3 {
170 reg = <3>;
171 label = "iptv";
172
173 phy-handle = <&phy4>;
174 phy-mode = "mii";
175 };
176 };
177 };
178
179 &uart0 {
180 status = "okay";
181 };
182
183 &usbh {
184 status = "okay";
185 };