lantiq: cleanup dts files
[openwrt/staging/chunkeey.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 GPIO_ACTIVE_HIGH>;
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 GPIO_ACTIVE_HIGH>;
113 };
114 };
115
116 /*
117 #define ARV4525PW_PHYRESET 13
118 #define ARV4525PW_RELAY 31
119 */
120
121 gpio-keys-polled {
122 compatible = "gpio-keys-polled";
123 #address-cells = <1>;
124 #size-cells = <0>;
125 poll-interval = <100>;
126
127 wps {
128 label = "wps";
129 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_WPS_BUTTON>;
131 };
132 reset {
133 label = "reset";
134 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_RESTART>;
136 };
137 };
138
139 gpio-leds {
140 compatible = "gpio-leds";
141 fxo {
142 label = "arv4525pw:green:festnetz";
143 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
144 };
145 fxs {
146 label = "arv4525pw:green:internet";
147 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
148 };
149 dsl: dsl {
150 label = "arv4525pw:green:t-dsl";
151 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
152 };
153 wifi: wifi {
154 label = "arv4525pw:green:wlan";
155 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
156 };
157 online: online {
158 label = "arv4525pw:green:online";
159 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
160 };
161 };
162 };