ipq806x: fix pci broken on bootm command
[openwrt/openwrt.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / danube_bt_homehub-v2b.dts
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "bt,homehub-v2b", "lantiq,xway", "lantiq,danube";
7 model = "BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power_orange;
15 led-failsafe = &power_red;
16 led-running = &power_blue;
17 led-upgrade = &power_blue;
18
19 led-dsl = &broadband_blue;
20 led-wifi = &wireless_blue;
21 };
22
23 memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */
24 device_type = "memory";
25 reg = <0x0 0x4000000>;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37 findhandset {
38 label = "findhandset";
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_PHONE>;
41 };
42 wps {
43 label = "wps";
44 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 upgrading-orange {
53 label = "orange:upgrading";
54 gpios = <&gpios 5 GPIO_ACTIVE_HIGH>;
55 };
56
57 phone-orange {
58 label = "orange:phone";
59 gpios = <&gpios 6 GPIO_ACTIVE_HIGH>;
60 };
61 phone-blue {
62 label = "blue:phone";
63 gpios = <&gpios 7 GPIO_ACTIVE_HIGH>;
64 };
65
66 wireless-orange {
67 label = "orange:wireless";
68 gpios = <&gpios 8 GPIO_ACTIVE_HIGH>;
69 };
70 wireless_blue: wireless-blue {
71 label = "blue:wireless";
72 gpios = <&gpios 9 GPIO_ACTIVE_HIGH>;
73 };
74
75 broadband-red {
76 label = "red:broadband";
77 gpios = <&gpios 10 GPIO_ACTIVE_HIGH>;
78 };
79 broadband-orange {
80 label = "orange:broadband";
81 gpios = <&gpios 11 GPIO_ACTIVE_HIGH>;
82 };
83 broadband_blue: broadband-blue {
84 label = "blue:broadband";
85 gpios = <&gpios 12 GPIO_ACTIVE_HIGH>;
86 };
87
88 power_red: power-red {
89 label = "red:power";
90 gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
91 };
92 power_orange: power-orange {
93 label = "orange:power";
94 gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
95 default-state = "keep";
96 };
97 power_blue: power-blue {
98 label = "blue:power";
99 gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
100 };
101 };
102 };
103
104 &gpio {
105 pinctrl-names = "default";
106 pinctrl-0 = <&state_default>;
107
108 state_default: pinmux {
109 exin {
110 lantiq,groups = "exin1";
111 lantiq,function = "exin";
112 };
113
114 pci_rst {
115 lantiq,pins = "io21";
116 lantiq,output = <1>;
117 lantiq,open-drain = <0>;
118 };
119
120 btn_in {
121 lantiq,pins = "io2", "io15", "io22";
122 lantiq,output = <0>;
123 lantiq,open-drain = <1>;
124 lantiq,pull = <2>;
125 };
126 };
127 };
128
129 &gpios {
130 status = "okay";
131 };
132
133 &gsw {
134 phy-mode = "rmii";
135 };
136
137 &localbus {
138 flash@0 { /* NOR Flash: Spansion S29AL004D 512KB */
139 compatible = "lantiq,nor"; /* "AMD AM29LV400BB" compatible on 3.3.8 */
140 lantiq,cs = <0>;
141 bank-width = <2>;
142 reg = <0 0x0 0x80000>;
143
144 partitions {
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 partition@0 {
150 label = "uboot";
151 reg = <0x00000 0x40000>; /* 256KB */
152 };
153
154 partition@40000 {
155 label = "u-boot-env";
156 reg = <0x40000 0x10000>; /* 64KB */
157 };
158
159 partition@50000 {
160 label = "rg_conf_1";
161 reg = <0x50000 0x10000>;
162 };
163
164 partition@60000 {
165 label = "rg_conf_2";
166 reg = <0x60000 0x10000>;
167 };
168
169 partition@70000 {
170 label = "rg_conf_factory";
171 reg = <0x70000 0x10000>;
172 };
173 };
174 };
175
176 flash@1 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
177 compatible = "lantiq,nand-xway";
178 lantiq,cs = <1>;
179 bank-width = <2>;
180 reg = <1 0x0 0x2000000 >;
181 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
182
183 pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>;
184 pinctrl-names = "default";
185
186 partitions {
187 compatible = "fixed-partitions";
188 #address-cells = <1>;
189 #size-cells = <1>;
190
191 ath9k_cal: partition@0 {
192 label = "art"; /* Atheros 9160 wifi b/g/n radio EEPROM */
193 reg = <0x00000 0x4000>;
194 read-only;
195 };
196
197 partition@4000 {
198 label = "kernel";
199 reg = <0x4000 0x200000>;
200 };
201
202 partition@164000 {
203 label = "ubi";
204 reg = <0x204000 0x1dfc000>;
205 };
206 };
207 };
208 };
209
210 &pci0 {
211 status = "okay";
212
213 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
214 pinctrl-names = "default";
215
216 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
217
218 wifi@168c,0027 {
219 compatible = "pci168c,0027";
220 reg = <0x7000 0 0 0 0>;
221 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
222 };
223 };
224
225 &usb_phy {
226 status = "okay";
227 };
228
229 &usb {
230 status = "okay";
231 };
232
233 &vmmc {
234 status = "okay";
235 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
236 };