lantiq: fix console print for additional boards
[openwrt/staging/chunkeey.git] / target / linux / lantiq / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ARV8539PW22 - Speedport W 504V Typ A";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18
19 led-dsl = &dsl_green;
20 led-internet = &online_green;
21 led-wifi = &wireless_green;
22 };
23
24 memory@0 {
25 reg = <0x0 0x4000000>;
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 0x800000>;
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 0x30000>; /* 192 KiB */
52 read-only;
53 };
54
55 partition@30000 {
56 label = "uboot";
57 reg = <0x30000 0x10000>; /* 64 KiB */
58 read-only;
59 };
60
61 partition@40000 {
62 label = "firmware";
63 reg = <0x40000 0x7B0000>; /* 7872 KiB */
64 };
65
66 art: partition@7F0000 {
67 label = "art";
68 reg = <0x7F0000 0x10000>; /* 64 KiB*/
69 read-only;
70 };
71 };
72 };
73 };
74
75 gpio: pinmux@E100B10 {
76 pinctrl-names = "default";
77 pinctrl-0 = <&state_default>;
78
79 state_default: pinmux {
80 pci_in {
81 lantiq,groups = "req1";
82 lantiq,function = "pci";
83 lantiq,open-drain = <1>;
84 lantiq,pull = <2>;
85 lantiq,output = <0>;
86 };
87 pci_out {
88 lantiq,groups = "gnt1";
89 lantiq,function = "pci";
90 lantiq,output = <1>;
91 };
92 pci_rst {
93 lantiq,pins = "io21";
94 lantiq,pull = <2>;
95 lantiq,output = <1>;
96 };
97 relay {
98 lantiq,pins = "io31";
99 lantiq,output = <1>;
100 };
101 };
102 };
103
104 etop@E180000 {
105 phy-mode = "mii";
106 mtd-mac-address = <&art 0x16>;
107 };
108
109 ifxhcd@E101000 {
110 status = "okay";
111 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
112 lantiq,portmask = <0x3>;
113 };
114 };
115
116 gpio-keys-polled {
117 compatible = "gpio-keys-polled";
118 #address-cells = <1>;
119 #size-cells = <0>;
120 poll-interval = <100>;
121
122 wlan {
123 label = "wlan";
124 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_WPS_BUTTON>;
126 };
127 reset {
128 label = "reset";
129 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_RESTART>;
131 };
132 /* key DECT is missing */
133 };
134
135 gpio-leds {
136 compatible = "gpio-leds";
137
138 power_green: power-green {
139 label = "arv8539pw22:green:power";
140 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
141 default-state = "keep";
142 };
143 power_red: power-red {
144 label = "arv8539pw22:red:power";
145 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
146 };
147
148 dsl_green: dsl-green {
149 label = "arv8539pw22:green:dsl";
150 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
151 };
152
153 online_green: online-green {
154 label = "arv8539pw22:green:online";
155 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
156 };
157
158 wireless_green: wireless-green {
159 label = "arv8539pw22:green:wlan";
160 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
161 };
162 /*
163 telefonie green is missing
164 */
165 };
166 };
167
168 &pci0 {
169 status = "okay";
170 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
171
172 wifi@168c,0029 {
173 compatible = "pci168c,0029";
174 reg = <0x7000 0 0 0 0>;
175 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
176 mtd-mac-address = <&art 0x16>;
177 mtd-mac-address-increment = <1>;
178 };
179 };