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