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