f288511c7ceed4f5e87738abf2dce9e95360e192
[librecmc/librecmc.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                 pci@E105400 {
126                         status = "okay";
127                         lantiq,external-clock;
128                         interrupt-map = <
129                                 0x7000 0 0 1 &icu0 30
130                                 0x7800 0 0 1 &icu0 135
131                                 0x7800 0 0 2 &icu0 135
132                                 0x7800 0 0 3 &icu0 135
133                         >;
134                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
135                         req-mask = <0x3>;
136                 };
137         };
138
139         ralink_eep {
140                 compatible = "ralink,eeprom";
141                 ralink,eeprom = "RT2860.eeprom";
142         };
143
144         gpio-keys-polled {
145                 compatible = "gpio-keys-polled";
146                 #address-cells = <1>;
147                 #size-cells = <0>;
148                 poll-interval = <100>;
149
150                 rfkill {
151                         label = "rfkill";
152                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
153                         linux,code = <KEY_RFKILL>;
154                 };
155                 restart {
156                         label = "restart";
157                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
158                         linux,code = <BTN_0>;
159                 };
160                 reset {
161                         label = "reset";
162                         gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
163                         linux,code = <KEY_RESTART>;
164                 };
165         };
166
167         gpio-leds {
168                 compatible = "gpio-leds";
169                 power: power {
170                         label = "power";
171                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
172                         default-state = "keep";
173                 };
174                 internet: internet {
175                         label = "internet";
176                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
177                 };
178                 wlan: wlan {
179                         label = "wlan";
180                         gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
181                 };
182                 umts: 3g {
183                         label = "3g";
184                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
185                 };
186                 message {
187                         label = "message";
188                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
189                 };
190         };
191 };