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