4a4cca0982c4d16b716dbd8e7a3908fc6be50ed4
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6368-observa-vh4032n.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6368.dtsi"
4
5 / {
6 model = "Observa VH4032N";
7 compatible = "observa,vh4032n", "brcm,bcm6368";
8
9 aliases {
10 led-boot = &led_power_blue;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_blue;
13 led-upgrade = &led_power_blue;
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 rfkill {
28 label = "rfkill";
29 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RFKILL>;
31 debounce-interval = <60>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 led@2 {
39 label = "blue:dsl";
40 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
41 };
42
43 led@5 {
44 label = "red:dsl";
45 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
46 };
47
48 led@11 {
49 label = "blue:hspa";
50 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
51 };
52
53 led@12 {
54 label = "red:hspa";
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 };
57
58 led_power_blue: led@22 {
59 label = "blue:power";
60 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
61 default-state = "on";
62 };
63
64 led_power_red: led@24 {
65 label = "red:power";
66 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
67 };
68
69 led@25 {
70 label = "blue:voice";
71 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
72 };
73
74 led@26 {
75 label = "red:voice";
76 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
77 };
78 };
79
80 bcm43222-sprom {
81 compatible = "brcm,ssb-sprom";
82
83 pci-bus = <0>;
84 pci-dev = <1>;
85
86 nvmem-cells = <&macaddr_cfe_6a0>;
87 nvmem-cell-names = "mac-address";
88 mac-address-increment = <1>;
89
90 brcm,sprom = "brcm/bcm43222-sprom.bin";
91 brcm,sprom-fixups = <2 0x04d2>, <4 0x4350>,
92 <65 0x1300>, <68 0x0402>,
93 <70 0x0090>, <71 0x4c19>,
94 <72 0x2345>, <87 0x0315>,
95 <88 0x0315>, <96 0x2048>,
96 <97 0xfed7>, <98 0x15a6>,
97 <99 0xfaee>, <100 0x3e3a>,
98 <101 0x3a36>, <102 0xff7f>,
99 <103 0x11b9>, <104 0xfc53>,
100 <105 0xffe6>, <106 0xfdd2>,
101 <107 0xfe49>, <108 0xff6a>,
102 <109 0x136e>, <110 0xfbed>,
103 <111 0x0000>, <112 0x2048>,
104 <113 0xfee2>, <114 0x15e5>,
105 <115 0xfaed>, <116 0x3e3a>,
106 <117 0x3a36>, <118 0xffc8>,
107 <119 0x12b8>, <120 0xfca1>,
108 <121 0xff9b>, <122 0x122a>,
109 <123 0xfcc8>, <124 0xff95>,
110 <125 0x146b>, <126 0xfbba>,
111 <127 0x0000>, <161 0x0000>,
112 <162 0x0000>, <169 0x0000>,
113 <170 0x0000>, <171 0x0000>,
114 <172 0x0000>, <173 0x0000>,
115 <174 0x0000>, <175 0x0000>,
116 <176 0x0000>, <219 0x1108>;
117 };
118 };
119
120 &ehci {
121 status = "okay";
122 };
123
124 &ethernet {
125 status = "okay";
126
127 nvmem-cells = <&macaddr_cfe_6a0>;
128 nvmem-cell-names = "mac-address";
129 };
130
131 &gpio {
132 usb_hub_reset {
133 gpio-hog;
134 gpios = <27 GPIO_ACTIVE_HIGH>;
135 output-high;
136 line-name = "usb-hub-reset-gpio";
137 };
138 };
139
140 &ohci {
141 status = "okay";
142 };
143
144 &pci {
145 status = "okay";
146 };
147
148 &pflash {
149 status = "okay";
150
151 partitions {
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 cfe: partition@0 {
157 label = "CFE";
158 reg = <0x0000000 0x0020000>;
159 read-only;
160 };
161
162 partition@20000 {
163 compatible = "brcm,bcm963xx-imagetag";
164 label = "firmware";
165 reg = <0x0020000 0x1fc0000>;
166 };
167
168 partition@1fe0000 {
169 label = "nvram";
170 reg = <0x1fe0000 0x020000>;
171 };
172 };
173 };
174
175 &pinctrl {
176 pinctrl-names = "default";
177 pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
178 &pinctrl_ephy2_led &pinctrl_ephy3_led>;
179 };
180
181 &switch0 {
182 ports {
183 port@0 {
184 reg = <0>;
185 label = "lan4";
186
187 phy-handle = <&phy1>;
188 phy-mode = "mii";
189 };
190
191 port@1 {
192 reg = <1>;
193 label = "lan3";
194
195 phy-handle = <&phy2>;
196 phy-mode = "mii";
197 };
198
199 port@2 {
200 reg = <2>;
201 label = "lan2";
202
203 phy-handle = <&phy3>;
204 phy-mode = "mii";
205 };
206
207 port@3 {
208 reg = <3>;
209 label = "lan1";
210
211 phy-handle = <&phy4>;
212 phy-mode = "mii";
213 };
214 };
215 };
216
217 &uart0 {
218 status = "okay";
219 };
220
221 &usbh {
222 status = "okay";
223 };
224
225 &cfe {
226 compatible = "nvmem-cells";
227 #address-cells = <1>;
228 #size-cells = <1>;
229
230 macaddr_cfe_6a0: macaddr@6a0 {
231 reg = <0x6a0 0x6>;
232 };
233 };