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