lantiq: use the device tree bindings from rt2x00 driver
[librecmc/librecmc.git] / target / linux / lantiq / dts / ARV7525PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 / {
6         model = "ARV7525PW - Speedport W303V Typ A";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         aliases {
13                 led-boot = &power_green;
14                 led-failsafe = &power_red;
15                 led-running = &power_green;
16
17                 led-dsl = &power_green;
18                 led-internet = &online;
19                 led-wifi = &wifi;
20         };
21
22         memory@0 {
23                 reg = <0x0 0x2000000>;
24         };
25
26         sram@1F000000 {
27                 vmmc@107000 {
28                         status = "okay";
29                         gpios = <&gpio 31 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 0x2000000>;
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 0x10000>;
50                                                 read-only;
51                                         };
52
53                                         partition@10000 {
54                                                 label = "uboot_env";
55                                                 reg = <0x10000 0x10000>;
56                                                 read-only;
57                                         };
58
59                                         partition@20000 {
60                                                 label = "firmware";
61                                                 reg = <0x20000 0x3d0000>;
62                                         };
63
64                                         boardconfig: partition@400000 {
65                                                 label = "board_config";
66                                                 reg = <0x3f0000 0x10000>;
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                                 };
82                                 pci {
83                                         lantiq,groups = "gnt1", "req1";
84                                         lantiq,function = "pci";
85                                 };
86                         };
87                 };
88
89                 etop@E180000 {
90                         phy-mode = "mii";
91                         mtd-mac-address = <&boardconfig 0x16>;
92                 };
93         };
94
95         gpio-keys-polled {
96                 compatible = "gpio-keys-polled";
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99                 poll-interval = <100>;
100
101                 wps {
102                         label = "wps";
103                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
104                         linux,code = <KEY_WPS_BUTTON>;
105                 };
106                 reset {
107                         label = "reset";
108                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
109                         linux,code = <KEY_RESTART>;
110                 };
111         };
112
113         gpio-leds {
114                 compatible = "gpio-leds";
115                 power_green: power {
116                         label = "arv7525pw:green:power";
117                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
118                         default-state = "keep";
119                 };
120                 power_red: power1 {
121                         label = "arv7525pw:red:power";
122                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
123                 };
124                 online: online {
125                         label = "arv7525pw:green:online";
126                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
127                 };
128                 voice {
129                         label = "arv7525pw:green:telefonie";
130                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
131                 };
132                 voice2 {
133                         label = "arv7525pw:red:telefonie";
134                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
135                 };
136                 wifi: wifi {
137                         label = "arv7525pw:green:wlan";
138                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
139                 };
140         };
141 };
142
143 &pci0 {
144         status = "okay";
145         interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
146
147         wifi@0,0 {
148                 compatible = "pci0,0";
149                 reg = <0x7000 0 0 0 0>;
150                 ralink,mtd-eeprom = <&boardconfig 0x410>;
151         };
152 };