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