lantiq: add device tree support for arv4519pw
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4519PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV4519PW - Vodafone, Pirelli";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 memory@0 {
13 reg = <0x0 0x2000000>;
14 };
15
16 sram@1F000000 {
17 vmmc@107000 {
18 status = "okay";
19 gpios = <&gpio 31 0>;
20 };
21 };
22
23 fpi@10000000 {
24 localbus@0 {
25 nor-boot@0 {
26 compatible = "lantiq,nor";
27 bank-width = <2>;
28 reg = <0 0x0 0x2000000>;
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "uboot";
34 reg = <0x00000 0x10000>;
35 read-only;
36 };
37
38 partition@10000 {
39 label = "uboot_env";
40 reg = <0x10000 0x10000>;
41 };
42
43 partition@20000 {
44 label = "linux";
45 reg = <0x20000 0x3d0000>;
46 };
47
48 partition@3f0000 {
49 label = "boardconfig";
50 reg = <0x3f0000 0x10000>;
51 read-only;
52 };
53 };
54
55 gpiomm: gpiomm@4000000 {
56 compatible = "lantiq,gpio-mm";
57 reg = <1 0x0 0x10 >;
58 #address-cells = <1>;
59 #size-cells = <1>;
60 #gpio-cells = <2>;
61 gpio-controller;
62 lantiq,shadow = <0x400>;
63 };
64
65 mac_addr {
66 compatible = "lantiq,eth-mac";
67 reg = <0 0x3f0016 0x6>;
68 };
69 };
70
71 gpio: pinmux@E100B10 {
72 pinctrl-names = "default";
73 pinctrl-0 = <&state_default>;
74
75 state_default: pinmux {
76 ebu {
77 lantiq,groups = "ebu cs1";
78 lantiq,function = "ebu";
79 };
80 };
81 };
82
83 etop@E180000 {
84 phy-mode = "rmii";
85 };
86
87 ifxhcd@E101000 {
88 status = "okay";
89 gpios = <&gpio 14 0>;
90 };
91
92 pci@E105400 {
93 status = "okay";
94 lantiq,external-clock;
95 gpio-reset = <&gpio 21 0>;
96 req-mask = <0xf>;
97 };
98 };
99
100 gpio-keys-polled {
101 compatible = "gpio-keys-polled";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 poll-interval = <100>;
105
106 rfkill {
107 label = "rfkill";
108 gpios = <&gpio 28 1>;
109 linux,code = <0xf7>;
110 };
111 reset {
112 label = "reset";
113 gpios = <&gpio 30 1>;
114 linux,code = <0x198>;
115 };
116 };
117
118 gpio-leds {
119 compatible = "gpio-leds";
120
121 power {
122 label = "power";
123 gpios = <&gpio 2 1>;
124 };
125 power2 {
126 label = "power2";
127 gpios = <&gpio 7 1>;
128 };
129 wifi {
130 label = "wifi";
131 gpios = <&gpio 6 1>;
132 };
133 dsl {
134 label = "dsl";
135 gpios = <&gpio 4 1>;
136 };
137 online {
138 label = "online";
139 gpios = <&gpio 5 1>;
140 };
141 online2 {
142 label = "online2";
143 gpios = <&gpio 8 1>;
144 };
145 usb {
146 label = "usb";
147 gpios = <&gpio 19 1>;
148 };
149 voip {
150 label = "voip";
151 gpios = <&gpiomm 0 1>;
152 };
153 fxs1 {
154 label = "fxs1";
155 gpios = <&gpiomm 1 1>;
156 };
157 fxs2 {
158 label = "fxs2";
159 gpios = <&gpiomm 2 1>;
160 };
161 fxo {
162 label = "fxo";
163 gpios = <&gpiomm 3 1>;
164 };
165 wps {
166 label = "wps";
167 gpios = <&gpiomm 5 1>;
168 };
169 wps2 {
170 label = "wps2";
171 gpios = <&gpiomm 4 1>;
172 };
173 wps3 {
174 label = "wps3";
175 gpios = <&gpiomm 6 1>;
176 };
177 };
178 };