lantiq: Fixes to athxk EEPROM loading
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV7518PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV7518PW - 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 };
20 };
21
22 fpi@10000000 {
23 localbus@0 {
24 nor-boot@0 {
25 compatible = "lantiq,nor";
26 bank-width = <2>;
27 reg = <0 0x0 0x2000000>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "uboot";
33 reg = <0x00000 0x10000>;
34 read-only;
35 };
36
37 partition@10000 {
38 label = "uboot_env";
39 reg = <0x10000 0x10000>;
40 };
41
42 partition@20000 {
43 label = "linux";
44 reg = <0x20000 0x7d0000>;
45 };
46
47 partition@400000 {
48 label = "boardconfig";
49 reg = <0x7f0000 0x10000>;
50 read-only;
51 };
52 };
53
54 gpiomm: gpiomm@4000000 {
55 compatible = "lantiq,gpio-mm";
56 reg = <1 0x0 0x10 >;
57 #address-cells = <1>;
58 #size-cells = <1>;
59 #gpio-cells = <2>;
60 gpio-controller;
61 lantiq,shadow = <0x0>;
62 };
63
64 mac_addr {
65 compatible = "lantiq,eth-mac";
66 reg = <0 0x7f0016 0x6>;
67 mac-increment = <2>;
68 };
69
70 ath9k_eep {
71 compatible = "ath9k,eeprom";
72 reg = <0 0x7f0400 0x1000
73 0 0x7f0016 0x6>;
74 ath,mac-increment = <1>;
75 ath,pci-slot = <14>;
76 ath,eep-endian;
77 };
78 };
79
80 gpio: pinmux@E100B10 {
81 pinctrl-names = "default";
82 pinctrl-0 = <&state_default>;
83
84 state_default: pinmux {
85 ebu {
86 lantiq,groups = "ebu cs1";
87 lantiq,function = "ebu";
88 };
89 pci_in {
90 lantiq,groups = "req1", "req2";
91 lantiq,function = "pci";
92 lantiq,open-drain = <1>;
93 lantiq,pull = <2>;
94 lantiq,output = <0>;
95 };
96 pci_out {
97 lantiq,groups = "gnt1", "gnt2";
98 lantiq,function = "pci";
99 lantiq,pull = <0>;
100 lantiq,output = <1>;
101 };
102 pci_rst {
103 lantiq,pins = "io21";
104 lantiq,pull = <2>;
105 lantiq,output = <1>;
106 };
107 };
108 };
109
110 etop@E180000 {
111 phy-mode = "rmii";
112 };
113
114 ifxhcd@E101000 {
115 status = "okay";
116 gpios = <&gpio 14 0>;
117 };
118
119 pci@E105400 {
120 status = "okay";
121 lantiq,external-clock;
122 gpio-reset = <&gpio 21 0>;
123 req-mask = <0xf>;
124 };
125
126 };
127
128 /*
129 #define SWITCH_RESET 13
130 */
131 gpio-keys-polled {
132 compatible = "gpio-keys-polled";
133 #address-cells = <1>;
134 #size-cells = <0>;
135 poll-interval = <100>;
136
137 rfkill {
138 label = "rfkill";
139 gpios = <&gpio 25 1>;
140 linux,code = <0xf7>;
141 };
142 /* reset {
143 label = "reset";
144 gpios = <&gpio 30 1>;
145 linux,code = <0x198>;
146 };*/
147 };
148
149 gpio-leds {
150 compatible = "gpio-leds";
151 power {
152 label = "power";
153 gpios = <&gpio 2 0>;
154 };
155 dsl {
156 label = "dsl";
157 gpios = <&gpio 4 1>;
158 };
159 online {
160 label = "online";
161 gpios = <&gpio 5 1>;
162 };
163 wifi {
164 label = "wifi";
165 gpios = <&gpio 6 1>;
166 };
167 power2 {
168 label = "power2";
169 gpios = <&gpio 7 1>;
170 };
171 online2 {
172 label = "online2";
173 gpios = <&gpio 8 1>;
174 };
175 usb {
176 label = "usb";
177 gpios = <&gpio 19 1>;
178 };
179 voice {
180 label = "voice";
181 gpios = <&gpiomm 0 1>;
182 };
183 fxs1 {
184 label = "fxs1";
185 gpios = <&gpiomm 1 1>;
186 };
187 fxs2 {
188 label = "fxs2";
189 gpios = <&gpiomm 2 1>;
190 };
191 fxo {
192 label = "fxo";
193 gpios = <&gpiomm 3 1>;
194 };
195 wps {
196 label = "wps";
197 gpios = <&gpiomm 4 1>;
198 };
199 wps2 {
200 label = "wps2";
201 gpios = <&gpiomm 5 1>;
202 };
203 wps3 {
204 label = "wps3";
205 gpios = <&gpiomm 6 1>;
206 };
207 };
208 };