lantiq: move partitions into partion table node
[openwrt/svn-archive/archive.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 partition@400000 {
63 label = "boardconfig";
64 reg = <0x3f0000 0x10000>;
65 read-only;
66 };
67 };
68 };
69
70 mac_addr {
71 compatible = "lantiq,eth-mac";
72 reg = <0 0x3f0016 0x6>;
73 mac-increment = <2>;
74 };
75
76 ath5k_eep {
77 compatible = "ath5k,eeprom";
78 reg = <0 0x3f0400 0x1000>;
79 ath,mac-offset = <0>;
80 ath,eep-swap;
81 };
82 };
83
84 gpio: pinmux@E100B10 {
85 pinctrl-names = "default";
86 pinctrl-0 = <&state_default>;
87
88 state_default: pinmux {
89 pci_in {
90 lantiq,groups = "req1";
91 lantiq,function = "pci";
92 lantiq,open-drain = <1>;
93 lantiq,pull = <2>;
94 lantiq,output = <0>;
95 };
96 pci_out {
97 lantiq,groups = "gnt1";
98 lantiq,function = "pci";
99 lantiq,output = <1>;
100 };
101 pci_rst {
102 lantiq,pins = "io21";
103 lantiq,pull = <2>;
104 lantiq,output = <1>;
105 };
106 relay {
107 lantiq,pins = "io31";
108 lantiq,output = <1>;
109 };
110 };
111 };
112
113 etop@E180000 {
114 phy-mode = "mii";
115 };
116
117 pci@E105400 {
118 status = "okay";
119 gpio-reset = <&gpio 21 0>;
120 };
121
122 };
123
124 /*
125 #define ARV4525PW_PHYRESET 13
126 #define ARV4525PW_RELAY 31
127 */
128
129 gpio-keys-polled {
130 compatible = "gpio-keys-polled";
131 #address-cells = <1>;
132 #size-cells = <0>;
133 poll-interval = <100>;
134
135 wps {
136 label = "wps";
137 gpios = <&gpio 29 1>;
138 linux,code = <0x211>;
139 };
140 reset {
141 label = "reset";
142 gpios = <&gpio 30 1>;
143 linux,code = <0x198>;
144 };
145 };
146
147 gpio-leds {
148 compatible = "gpio-leds";
149 fxo {
150 label = "arv4525pw:green:festnetz";
151 gpios = <&gpio 4 1>;
152 };
153 fxs {
154 label = "arv4525pw:green:internet";
155 gpios = <&gpio 5 1>;
156 };
157 dsl: dsl {
158 label = "arv4525pw:green:t-dsl";
159 gpios = <&gpio 6 1>;
160 };
161 wifi: wifi {
162 label = "arv4525pw:green:wlan";
163 gpios = <&gpio 8 1>;
164 };
165 online: online {
166 label = "arv4525pw:green:online";
167 gpios = <&gpio 9 1>;
168 };
169 };
170 };