lantiq: use the etop driver DT bindings only
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV4525PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV4525PW - Speedport W501V Typ A";
7
8         chosen {
9                 leds {
10                         /* we dont have a power led, lets use the online led */
11                         boot = &online;
12                         failsafe = &online;
13
14                         dsl = &dsl;
15                         internet = &online;
16                         wifi = &wifi;
17                 };
18         };
19
20         memory@0 {
21                 reg = <0x0 0x2000000>;
22         };
23
24         sram@1F000000 {
25                 vmmc@107000 {
26                         status = "okay";
27                         gpios = <&gpio 31 0>;
28                 };
29         };
30
31         fpi@10000000 {
32                 localbus@0 {
33                         nor-boot@0 {
34                                 compatible = "lantiq,nor";
35                                 bank-width = <2>;
36                                 reg = <0 0x0 0x2000000>;
37                                 #address-cells = <1>;
38                                 #size-cells = <1>;
39
40                                 partitions {
41                                         compatible = "fixed-partitions";
42                                         #address-cells = <1>;
43                                         #size-cells = <1>;
44
45                                         partition@0 {
46                                                 label = "uboot";
47                                                 reg = <0x00000 0x10000>;
48                                                 read-only;
49                                         };
50
51                                         partition@10000 {
52                                                 label = "uboot_env";
53                                                 reg = <0x10000 0x10000>;
54                                                 read-only;
55                                         };
56
57                                         partition@20000 {
58                                                 label = "firmware";
59                                                 reg = <0x20000 0x3d0000>;
60                                         };
61
62                                         boardconfig: partition@400000 {
63                                                 label = "boardconfig";
64                                                 reg = <0x3f0000 0x10000>;
65                                                 read-only;
66                                         };
67                                 };
68                         };
69
70                         ath5k_eep {
71                                 compatible = "ath5k,eeprom";
72                                 ath,eep-flash = <&boardconfig 0x400>;
73                                 ath,mac-offset = <0x0>;
74                                 ath,eep-swap;
75                         };
76                 };
77
78                 gpio: pinmux@E100B10 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&state_default>;
81
82                         state_default: pinmux {
83                                 pci_in {
84                                         lantiq,groups = "req1";
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                                 relay {
101                                         lantiq,pins = "io31";
102                                         lantiq,output = <1>;
103                                 };
104                         };
105                 };
106
107                 etop@E180000 {
108                         phy-mode = "mii";
109                         mtd-mac-address = <&boardconfig 0x16>;
110                 };
111
112                 pci@E105400 {
113                         status = "okay";
114                         gpio-reset = <&gpio 21 0>;
115                 };
116
117         };
118
119 /*
120 #define ARV4525PW_PHYRESET      13
121 #define ARV4525PW_RELAY         31
122 */
123
124         gpio-keys-polled {
125                 compatible = "gpio-keys-polled";
126                 #address-cells = <1>;
127                 #size-cells = <0>;
128                 poll-interval = <100>;
129
130                 wps {
131                         label = "wps";
132                         gpios = <&gpio 29 1>;
133                         linux,code = <0x211>;
134                 };
135                 reset {
136                         label = "reset";
137                         gpios = <&gpio 30 1>;
138                         linux,code = <0x198>;
139                 };
140         };
141
142         gpio-leds {
143                 compatible = "gpio-leds";
144                 fxo {
145                         label = "arv4525pw:green:festnetz";
146                         gpios = <&gpio 4 1>;
147                 };
148                 fxs {
149                         label = "arv4525pw:green:internet";
150                         gpios = <&gpio 5 1>;
151                 };
152                 dsl: dsl {
153                         label = "arv4525pw:green:t-dsl";
154                         gpios = <&gpio 6 1>;
155                 };
156                 wifi: wifi {
157                         label = "arv4525pw:green:wlan";
158                         gpios = <&gpio 8 1>;
159                 };
160                 online: online {
161                         label = "arv4525pw:green:online";
162                         gpios = <&gpio 9 1>;
163                 };
164         };
165 };