079c85630821f100eda2672a061d17a142e493bd
[openwrt/staging/wigyori.git] / target / linux / lantiq / dts / ARV7510PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 / {
6 model = "ARV7510PW22 - Astoria Networks";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 aliases {
13 led-boot = &power;
14 led-failsafe = &power;
15 led-running = &power;
16
17 led-internet = &internet;
18 led-usb = &umts;
19 led-wifi = &wlan;
20 };
21
22 memory@0 {
23 reg = <0x0 0x4000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
30 };
31 };
32
33 fpi@10000000 {
34 localbus@0 {
35 nor-boot@0 {
36 compatible = "lantiq,nor";
37 bank-width = <2>;
38 reg = <0 0x0 0x1000000>;
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 partition@0 {
48 label = "uboot";
49 reg = <0x00000 0x40000>;
50 read-only;
51 };
52
53 partition@40000 {
54 label = "uboot_env";
55 reg = <0x40000 0x20000>;
56 read-only;
57 };
58
59 partition@60000 {
60 label = "firmware";
61 reg = <0x60000 0xf80000>;
62 };
63
64 boardconfig: partition@fe0000 {
65 label = "board_config";
66 reg = <0xfe0000 0x20000>;
67 read-only;
68 };
69 };
70 };
71 };
72
73 gpio: pinmux@E100B10 {
74 pinctrl-names = "default";
75 pinctrl-0 = <&state_default>;
76
77 state_default: pinmux {
78 exin {
79 lantiq,groups = "exin1";
80 lantiq,function = "exin";
81 lantiq,pull = <2>;
82 lantiq,output = <0>;
83 };
84 pci_in {
85 lantiq,groups = "req1", "req2";
86 lantiq,function = "pci";
87 lantiq,open-drain = <1>;
88 lantiq,pull = <2>;
89 lantiq,output = <0>;
90 };
91 pci_out {
92 lantiq,groups = "gnt1";
93 lantiq,function = "pci";
94 lantiq,output = <1>;
95 };
96 pci_rst {
97 lantiq,pins = "io21";
98 lantiq,pull = <2>;
99 lantiq,output = <1>;
100 };
101 pins_out {
102 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
103 lantiq,output = <1>;
104 };
105 pins_in {
106 lantiq,pins = "io11", "io12", "io28";
107 lantiq,open-drain = <1>;
108 lantiq,pull = <2>;
109 lantiq,output = <0>;
110 };
111 };
112 };
113
114 ifxhcd@E101000 {
115 status = "okay";
116 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
117 };
118
119 etop@E180000 {
120 /* Switch reset 19 */
121 phy-mode = "mii";
122 mtd-mac-address = <&boardconfig 0x16>;
123 };
124 };
125
126 gpio-keys-polled {
127 compatible = "gpio-keys-polled";
128 #address-cells = <1>;
129 #size-cells = <0>;
130 poll-interval = <100>;
131
132 rfkill {
133 label = "rfkill";
134 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_RFKILL>;
136 };
137 restart {
138 label = "restart";
139 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
140 linux,code = <BTN_0>;
141 };
142 reset {
143 label = "reset";
144 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_RESTART>;
146 };
147 };
148
149 gpio-leds {
150 compatible = "gpio-leds";
151 power: power {
152 label = "power";
153 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
154 default-state = "keep";
155 };
156 internet: internet {
157 label = "internet";
158 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
159 };
160 wlan: wlan {
161 label = "wlan";
162 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
163 };
164 umts: 3g {
165 label = "3g";
166 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
167 };
168 message {
169 label = "message";
170 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
171 };
172 };
173 };
174
175 &pci0 {
176 status = "okay";
177 lantiq,external-clock;
178 interrupt-map = <
179 0x7000 0 0 1 &icu0 30
180 0x7800 0 0 1 &icu0 135
181 0x7800 0 0 2 &icu0 135
182 0x7800 0 0 3 &icu0 135
183 >;
184 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
185 req-mask = <0x3>;
186
187 wifi@1814,3592 {
188 compatible = "pci1814,3592";
189 reg = <0x7000 0 0 0 0>;
190 ralink,mtd-eeprom = <&boardconfig 0x410>;
191 ralink,mtd-eeprom-swap;
192 };
193 };