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