lantiq: make dts files and kernel config kernel version specific
[openwrt/openwrt.git] / target / linux / lantiq / files-4.9 / arch / mips / boot / dts / ARV7519RW22.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7519rw22", "lantiq,xway", "lantiq,vr9";
9 model = "Orange Livebox 2.1";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_green;
18 led-running = &power_green;
19
20 led-dsl = &internet_green;
21 };
22
23 memory@0 {
24 reg = <0x0 0x8000000>;
25 };
26
27 fpi@10000000 {
28 localbus@0 {
29 nor-boot@0 {
30 compatible = "lantiq,nor";
31 bank-width = <2>;
32 reg = <0 0x0 0x2000000>;
33 #address-cells = <1>;
34 #size-cells = <1>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "uboot";
43 reg = <0x0 0x60000>;
44 read-only;
45 };
46
47 partition@60000 {
48 label = "uboot-env";
49 reg = <0x60000 0x20000>;
50 read-only;
51 };
52
53 partition@80000 {
54 label = "firmware";
55 reg = <0x80000 0x1f00000>;
56 };
57
58 boardconfig: partition@1f80000 {
59 label = "boardconfig";
60 reg = <0x1f80000 0x80000>;
61 read-only;
62 };
63 };
64 };
65 };
66
67 gpio: pinmux@E100B10 {
68 pinctrl-names = "default";
69 pinctrl-0 = <&state_default>;
70
71 state_default: pinmux {
72 mdio {
73 lantiq,groups = "mdio";
74 lantiq,function = "mdio";
75 };
76 pcie-rst {
77 lantiq,pins = "io21";
78 lantiq,pull = <0>;
79 lantiq,output = <1>;
80 };
81 };
82 };
83
84 ifxhcd@E101000 {
85 status = "okay";
86 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
87 };
88
89 ifxhcd@E106000 {
90 status = "okay";
91 gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
92 };
93
94 pcie@d900000 {
95 status = "okay";
96 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
97 };
98 };
99
100 gphy-xrx200 {
101 compatible = "lantiq,phy-xrx200";
102 firmware1 = "lantiq/xrx200_phy22f_a14.bin"; /*VR9 1.1*/
103 firmware2 = "lantiq/xrx200_phy22f_a22.bin"; /*VR9 1.2*/
104 phys = [ 00 01 ];
105 };
106
107 gpio-keys-polled {
108 compatible = "gpio-keys-polled";
109 #address-cells = <1>;
110 #size-cells = <0>;
111 poll-interval = <100>;
112
113 reset {
114 label = "reset";
115 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
116 linux,code = <KEY_RESTART>;
117 };
118 rfkill {
119 label = "rfkill";
120 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_RFKILL>;
122 };
123 wps {
124 label = "wps";
125 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_WPS_BUTTON>;
127 };
128 };
129
130 gpio-leds {
131 compatible = "gpio-leds";
132
133 lan_green {
134 label = "arv7519rw22:green:lan";
135 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
136 };
137 internet_red {
138 label = "arv7519rw22:red:internet";
139 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
140 };
141 power_green: power_green {
142 label = "arv7519rw22:green:power";
143 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
144 default-state = "keep";
145 };
146 alarm_blue {
147 label = "arv7519rw22:blue:alarm";
148 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
149 };
150 internet_orange {
151 label = "arv7519rw22:orange:internet";
152 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
153 };
154 internet_green: internet_green {
155 label = "arv7519rw22:green:internet";
156 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
157 };
158 voice_green {
159 label = "arv7519rw22:green:voice";
160 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
161 };
162 };
163 };
164
165 &eth0 {
166 lan: interface@0 {
167 compatible = "lantiq,xrx200-pdi";
168 #address-cells = <1>;
169 #size-cells = <0>;
170 reg = <0>;
171 mtd-mac-address = <&boardconfig 0x16>;
172 lantiq,switch;
173
174 ethernet@0 {
175 compatible = "lantiq,xrx200-pdi-port";
176 reg = <0>;
177 phy-mode = "rgmii";
178 phy-handle = <&phy0>;
179 };
180 ethernet@1 {
181 compatible = "lantiq,xrx200-pdi-port";
182 reg = <4>;
183 phy-mode = "mii";
184 phy-handle = <&phy13>;
185 };
186 ethernet@2 {
187 compatible = "lantiq,xrx200-pdi-port";
188 reg = <5>;
189 phy-mode = "mii";
190 phy-handle = <&phy14>;
191 };
192 ethernet@3 {
193 compatible = "lantiq,xrx200-pdi-port";
194 reg = <2>;
195 phy-mode = "mii";
196 phy-handle = <&phy11>;
197 };
198 ethernet@4 {
199 compatible = "lantiq,xrx200-pdi-port";
200 reg = <3>;
201 phy-mode = "mii";
202 phy-handle = <&phy12>;
203 };
204 };
205
206 mdio@0 {
207 #address-cells = <1>;
208 #size-cells = <0>;
209 compatible = "lantiq,xrx200-mdio";
210 phy0: ethernet-phy@0 {
211 reg = <0x0>;
212 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
213 };
214 phy11: ethernet-phy@11 {
215 reg = <0x11>;
216 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
217 };
218 phy12: ethernet-phy@12 {
219 reg = <0x12>;
220 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
221 };
222 phy13: ethernet-phy@13 {
223 reg = <0x13>;
224 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
225 };
226 phy14: ethernet-phy@14 {
227 reg = <0x14>;
228 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
229 };
230 };
231 };