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