lantiq: specify console using stdout-path instead of cmdline argument
[lede.git] / target / linux / lantiq / dts / ARV452CQW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "ARV452CQW - Arcor 801";
9
10         chosen {
11                 bootargs = "init=/etc/preinit";
12         };
13
14         aliases {
15                 led-boot = &power_blue;
16                 led-failsafe = &power_red;
17                 led-running = &power_blue;
18
19                 led-internet = &dsl_blue;
20                 led-usb = &usb;
21                 led-wifi = &wifi;
22         };
23
24         memory@0 {
25                 reg = <0x0 0x2000000>;
26         };
27
28         sram@1F000000 {
29                 vmmc@107000 {
30                         status = "okay";
31                         gpios = <&gpio 31 GPIO_ACTIVE_HIGH
32                                 &gpiomm 7 GPIO_ACTIVE_HIGH>;
33                 };
34         };
35
36         fpi@10000000 {
37                 localbus@0 {
38                         nor-boot@0 {
39                                 compatible = "lantiq,nor";
40                                 bank-width = <2>;
41                                 reg = <0 0x0 0x400000>;
42                                 #address-cells = <1>;
43                                 #size-cells = <1>;
44
45                                 partitions {
46                                         compatible = "fixed-partitions";
47                                         #address-cells = <1>;
48                                         #size-cells = <1>;
49
50                                         partition@0 {
51                                                 label = "uboot";
52                                                 reg = <0x00000 0x10000>;
53                                                 read-only;
54                                         };
55
56                                         partition@10000 {
57                                                 label = "uboot_env";
58                                                 reg = <0x10000 0x10000>;
59                                                 read-only;
60                                         };
61
62                                         partition@20000 {
63                                                 label = "firmware";
64                                                 reg = <0x20000 0x3d0000>;
65                                         };
66
67                                         boardconfig: partition@3f0000 {
68                                                 label = "boardconfig";
69                                                 reg = <0x3f0000 0x10000>;
70                                                 read-only;
71                                         };
72                                 };
73                         };
74
75                         ath5k_eep {
76                                 compatible = "ath5k,eeprom";
77                                 ath,eep-flash = <&boardconfig 0x400>;
78                                 ath,mac-offset = <0x0>;
79                                 ath,eep-swap;
80                         };
81                         gpiomm: gpiomm@4000000 {
82                                 compatible = "lantiq,gpio-mm";
83                                 reg = <1 0x0 0x10>;
84                                 #address-cells = <1>;
85                                 #size-cells = <1>;
86                                 #gpio-cells = <2>;
87                                 gpio-controller;
88                                 lantiq,shadow = <0x77f>;
89                         };
90                 };
91
92                 gpio: pinmux@E100B10 {
93                         pinctrl-names = "default";
94                         pinctrl-0 = <&state_default>;
95
96                         state_default: pinmux {
97                                 ebu {
98                                         lantiq,groups = "ebu cs1";
99                                         lantiq,function = "ebu";
100                                 };
101                                 pci_in {
102                                         lantiq,groups = "req1";
103                                         lantiq,function = "pci";
104                                         lantiq,open-drain = <1>;
105                                         lantiq,pull = <2>;
106                                         lantiq,output = <0>;
107                                 };
108                                 pci_out {
109                                         lantiq,groups = "gnt1";
110                                         lantiq,function = "pci";
111                                         lantiq,output = <1>;
112                                 };
113                                 pci_rst {
114                                         lantiq,pins = "io21";
115                                         lantiq,pull = <0>;
116                                         lantiq,output = <1>;
117                                 };
118                                 leds {
119                                         lantiq,pins = "io3", "io5", "io6", "io7", "io9";
120                                         lantiq,output = <1>;
121                                 };
122                         };
123                 };
124
125                 ifxhcd@E101000 {
126                         status = "okay";
127                         gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
128                 };
129
130                 etop@E180000 {
131                         phy-mode = "rmii";
132                         mtd-mac-address = <&boardconfig 0x16>;
133                 };
134
135                 pci@E105400 {
136                         status = "okay";
137                         lantiq,external-clock;
138                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
139                 };
140         };
141
142 /*
143 #define ARV452CPW_SWITCH_RESET          110
144 */
145         gpio-keys-polled {
146                 compatible = "gpio-keys-polled";
147                 #address-cells = <1>;
148                 #size-cells = <0>;
149                 poll-interval = <100>;
150
151                 rfkill {
152                         label = "rfkill";
153                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
154                         linux,code = <KEY_RFKILL>;
155                 };
156                 wps {
157                         label = "wps";
158                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
159                         linux,code = <KEY_WPS_BUTTON>;
160                 };
161                 reset {
162                         label = "reset";
163                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
164                         linux,code = <KEY_RESTART>;
165                 };
166         };
167
168         gpio-leds {
169                 compatible = "gpio-leds";
170                 power_blue: power0 {
171                         label = "arv452cqw:blue:power";
172                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
173                         default-state = "keep";
174                 };
175                 dsl_blue: dsl {
176                         label = "arv452cqw:blue:dsl";
177                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
178                 };
179                 isdn {
180                         label = "arv452cqw:blue:isdn";
181                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
182                 };
183                 power_red: power1 {
184                         label = "arv452cqw:red:power";
185                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
186                 };
187                 wps {
188                         label = "arv452cqw:blue:wps";
189                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
190                 };
191                 wps1 {
192                         label = "arv452cqw:yellow:wps";
193                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
194                 };
195                 fxs1 {
196                         label = "arv452cqw:blue:telefon1";
197                         gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
198                 };
199                 fxs2 {
200                         label = "arv452cqw:blue:telefon2";
201                         gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
202                 };
203                 wps2 {
204                         label = "arv452cqw:red:wps";
205                         gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
206                 };
207                 fxo {
208                         label = "arv452cqw:blue:line";
209                         gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
210                 };
211                 voice {
212                         label = "arv452cqw:blue:sprache";
213                         gpios = <&gpiomm 4 1>;
214                 };
215                 usb: usb {
216                         label = "arv452cqw:blue:usb";
217                         gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
218                 };
219                 wifi: wifi {
220                         label = "arv452cqw:blue:wlan";
221                         gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
222                 };
223                 /*
224                         internet blue and internet red are missing
225                         dsl2 and dsl3 are not referenced in manual
226                 */
227                 dsl2 {
228                         label = "arv452cqw:yellow:dsl";
229                         gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
230                 };
231                 dsl3 {
232                         label = "arv452cqw:red:dsl";
233                         gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
234                 };
235         };
236 };