lantiq: Fix ARV7510PW22 etop
[openwrt/openwrt.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 memory@0 {
13 reg = <0x0 0x4000000>;
14 };
15
16 sram@1F000000 {
17 vmmc@107000 {
18 status = "okay";
19 gpios = <&gpio 9 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 0x1000000>;
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "uboot";
34 reg = <0x00000 0x40000>;
35 read-only;
36 };
37
38 partition@40000 {
39 label = "uboot_env";
40 reg = <0x40000 0x20000>;
41 read-only;
42 };
43
44 partition@60000 {
45 label = "firmware";
46 reg = <0x60000 0xf80000>;
47 };
48
49 partition@fe0000 {
50 label = "board_config";
51 reg = <0xfe0000 0x20000>;
52 read-only;
53 };
54 };
55
56 mac_addr {
57 compatible = "lantiq,eth-mac";
58 reg = <0 0xfe0016 0x6>;
59 mac-increment = <2>;
60 };
61 };
62
63 gpio: pinmux@E100B10 {
64 pinctrl-names = "default";
65 pinctrl-0 = <&state_default>;
66
67 state_default: pinmux {
68 exin {
69 lantiq,groups = "exin1";
70 lantiq,function = "exin";
71 lantiq,pull = <2>;
72 lantiq,output = <0>;
73 };
74 pci_in {
75 lantiq,groups = "req1", "req2";
76 lantiq,function = "pci";
77 lantiq,open-drain = <1>;
78 lantiq,pull = <2>;
79 lantiq,output = <0>;
80 };
81 pci_out {
82 lantiq,groups = "gnt1";
83 lantiq,function = "pci";
84 lantiq,output = <1>;
85 };
86 pci_rst {
87 lantiq,pins = "io21";
88 lantiq,pull = <2>;
89 lantiq,output = <1>;
90 };
91 pins_out {
92 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
93 lantiq,output = <1>;
94 };
95 pins_in {
96 lantiq,pins = "io11", "io12", "io28";
97 lantiq,open-drain = <1>;
98 lantiq,pull = <2>;
99 lantiq,output = <0>;
100 };
101 };
102 };
103
104 ifxhcd@E101000 {
105 status = "okay";
106 gpios = <&gpio 8 0>;
107 };
108
109 etop@E180000 {
110 phy-mode = "mii";
111 /* Switch reset 19 */
112 };
113
114 pci@E105400 {
115 status = "okay";
116 lantiq,external-clock;
117 interrupt-map = <
118 0x7000 0 0 1 &icu0 30
119 0x7800 0 0 1 &icu0 135
120 0x7800 0 0 2 &icu0 135
121 0x7800 0 0 3 &icu0 135
122 >;
123 gpio-reset = <&gpio 21 0>;
124 req-mask = <0x3>;
125 };
126 };
127
128 ralink_eep {
129 compatible = "ralink,eeprom";
130 ralink,eeprom = "RT2860.eeprom";
131 };
132
133 gpio-keys-polled {
134 compatible = "gpio-keys-polled";
135 #address-cells = <1>;
136 #size-cells = <0>;
137 poll-interval = <100>;
138
139 rfkill {
140 label = "rfkill";
141 gpios = <&gpio 11 1>;
142 linux,code = <0xf7>;
143 };
144 restart {
145 label = "restart";
146 gpios = <&gpio 12 1>;
147 linux,code = <0x100>;
148 };
149 reset {
150 label = "reset";
151 gpios = <&gpio 28 1>;
152 linux,code = <0x198>;
153 };
154 };
155
156 gpio-leds {
157 compatible = "gpio-leds";
158 power {
159 label = "power";
160 gpios = <&gpio 2 1>;
161 };
162 internet {
163 label = "internet";
164 gpios = <&gpio 4 1>;
165 };
166 wlan {
167 label = "wlan";
168 gpios = <&gpio 10 1>;
169 };
170 3g {
171 label = "3g";
172 gpios = <&gpio 15 1>;
173 };
174 message {
175 label = "message";
176 gpios = <&gpio 20 1>;
177 };
178 };
179 };