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