lantiq: fix thermal sensors driver
[openwrt/openwrt.git] / target / linux / lantiq / dts / VGV7510KW22.dtsi
1 #include "vr9.dtsi"
2
3 / {
4 model = "VGV7510KW22 - o2 Box 6431";
5
6 chosen {
7 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
8 };
9
10 aliases {
11 led-boot = &power_green;
12 led-failsafe = &power_red;
13 led-running = &power_green;
14
15 led-dsl = &dsl;
16 led-internet = &internet_green;
17 led-wifi = &wifi;
18 };
19
20 memory@0 {
21 reg = <0x0 0x4000000>;
22 };
23
24 cputemp@0 {
25 compatible = "lantiq,cputemp";
26 };
27
28 fpi@10000000 {
29 localbus@0 {
30 nor-boot@0 {
31 compatible = "lantiq,nor";
32 bank-width = <2>;
33 reg = <0 0x0 0x1000000>;
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 boardconfig: partition@fe0000 {
43 label = "board_config";
44 reg = <0xfe0000 0x20000>;
45 read-only;
46 };
47 };
48 };
49 };
50
51 gpio: pinmux@E100B10 {
52 pinctrl-names = "default";
53 pinctrl-0 = <&state_default>;
54
55 state_default: pinmux {
56 gphy-leds {
57 lantiq,groups = "gphy0 led0", "gphy0 led1",
58 "gphy1 led0", "gphy1 led1";
59 lantiq,function = "gphy";
60 lantiq,open-drain = <0>;
61 lantiq,pull = <2>;
62 lantiq,output = <1>;
63 };
64 mdio {
65 lantiq,groups = "mdio";
66 lantiq,function = "mdio";
67 };
68 pci-rst {
69 lantiq,pins = "io21";
70 lantiq,open-drain = <0>;
71 lantiq,pull = <0>;
72 lantiq,output = <1>;
73 };
74 };
75 };
76
77 ifxhcd@E101000 {
78 status = "okay";
79 gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
80 };
81
82 pci@E105400 {
83 status = "okay";
84 lantiq,bus-clock = <33333333>;
85 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
86 interrupt-map = <
87 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
88 >;
89 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
90 req-mask = <0x1>; /* GNT1 */
91 };
92
93 pcie@d900000 {
94 status = "disabled";
95 };
96 };
97
98 gphy-xrx200 {
99 compatible = "lantiq,phy-xrx200";
100 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
101 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
102 phys = [ 00 01 ];
103 };
104
105 ralink_eep {
106 compatible = "ralink,eeprom";
107 ralink,eeprom = "RT3062.eeprom";
108 };
109
110 gpio-keys-polled {
111 compatible = "gpio-keys-polled";
112 #address-cells = <1>;
113 #size-cells = <0>;
114 poll-interval = <100>;
115
116 reset {
117 label = "reset";
118 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_RESTART>;
120 };
121
122 wps {
123 label = "wps";
124 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_WPS_BUTTON>;
126 };
127 };
128
129 gpio-leds {
130 compatible = "gpio-leds";
131
132 dsl: dsl {
133 label = "vgv7510kw22:green:dsl";
134 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
135 };
136
137 internet_red {
138 label = "vgv7510kw22:red:internet";
139 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
140 };
141
142 info_red {
143 label = "vgv7510kw22:red:info";
144 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
145 };
146
147 power_green: power {
148 label = "vgv7510kw22:green:power";
149 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
150 default-state = "keep";
151 };
152
153 info_green {
154 label = "vgv7510kw22:green:info";
155 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
156 };
157
158 internet_green: internet_green {
159 label = "vgv7510kw22:green:internet";
160 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
161 };
162
163 wifi: wifi {
164 label = "vgv7510kw22:green:wlan";
165 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
166 };
167
168 power_red: power2 {
169 label = "vgv7510kw22:red:power";
170 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
171 };
172
173 phone {
174 label = "vgv7510kw22:green:telefon";
175 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
176 };
177 };
178 };
179
180 &eth0 {
181 lan: interface@0 {
182 compatible = "lantiq,xrx200-pdi";
183 #address-cells = <1>;
184 #size-cells = <0>;
185 reg = <0>;
186 mtd-mac-address = <&boardconfig 0x16>;
187 lantiq,switch;
188
189 ethernet@2 {
190 compatible = "lantiq,xrx200-pdi-port";
191 reg = <2>;
192 phy-mode = "mii";
193 phy-handle = <&phy11>;
194 };
195 ethernet@3 {
196 compatible = "lantiq,xrx200-pdi-port";
197 reg = <3>;
198 phy-mode = "mii";
199 phy-handle = <&phy12>;
200 };
201 ethernet@4 {
202 compatible = "lantiq,xrx200-pdi-port";
203 reg = <4>;
204 phy-mode = "mii";
205 phy-handle = <&phy13>;
206 };
207 ethernet@5 {
208 compatible = "lantiq,xrx200-pdi-port";
209 reg = <5>;
210 phy-mode = "mii";
211 phy-handle = <&phy14>;
212 };
213 };
214
215 wan: interface@1 {
216 compatible = "lantiq,xrx200-pdi";
217 #address-cells = <1>;
218 #size-cells = <0>;
219 reg = <1>;
220 mtd-mac-address = <&boardconfig 0x16>;
221 mtd-mac-address-increment = <2>;
222 lantiq,wan;
223
224 ethernet@0 {
225 compatible = "lantiq,xrx200-pdi-port";
226 reg = <0>;
227 phy-mode = "mii";
228 phy-handle = <&phy1>;
229 };
230 };
231
232 mdio@0 {
233 #address-cells = <1>;
234 #size-cells = <0>;
235 compatible = "lantiq,xrx200-mdio";
236
237 phy1: ethernet-phy@1 {
238 reg = <0x1>;
239 compatible = "ethernet-phy-id0243.0c54", "ethernet-phy-ieee802.3-c22";
240 };
241
242 phy11: ethernet-phy@11 {
243 reg = <0x11>;
244 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
245 };
246 phy12: ethernet-phy@12 {
247 reg = <0x12>;
248 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
249 };
250 phy13: ethernet-phy@13 {
251 reg = <0x13>;
252 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
253 };
254 phy14: ethernet-phy@14 {
255 reg = <0x14>;
256 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
257 };
258 };
259 };