lantiq: kernel 4.14: update dts files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / BTHOMEHUBV3A.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "bt,homehub-v3a", "lantiq,xway", "lantiq,ar9";
9 model = "BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
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
20 led-dsl = &broadband_blue;
21 led-wifi = &wireless_blue;
22 };
23
24 memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */
25 reg = <0x0 0x4000000>;
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <100>;
33 reset {
34 label = "reset";
35 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 restart {
39 label = "restart";
40 gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_POWER>;
42 };
43 wps {
44 label = "wps";
45 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 };
49
50 gpio-leds {
51 compatible = "gpio-leds";
52
53 wireless-red {
54 label = "bthomehubv3a:red:wireless";
55 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
56 };
57 wireless-orange {
58 label = "bthomehubv3a:orange:wireless";
59 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
60 };
61 wireless_blue: wireless-blue {
62 label = "bthomehubv3a:blue:wireless";
63 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
64 };
65
66 broadband-red {
67 label = "bthomehubv3a:red:broadband";
68 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
69 };
70 broadband-orange {
71 label = "bthomehubv3a:orange:broadband";
72 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
73 };
74 broadband_blue: broadband-blue {
75 label = "bthomehubv3a:blue:broadband";
76 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
77 };
78
79 power_red: power-red {
80 label = "bthomehubv3a:red:power";
81 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
82 };
83 power_orange: power-orange {
84 label = "bthomehubv3a:orange:power";
85 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
86 default-state = "keep";
87 };
88 power_blue: power-blue {
89 label = "bthomehubv3a:blue:power";
90 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
91 };
92 };
93
94 usb_vbus: regulator-usb-vbus {
95 compatible = "regulator-fixed";
96
97 regulator-name = "USB_VBUS";
98
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
101
102 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
103 enable-active-high;
104 };
105 };
106
107 &gpio {
108 pinctrl-names = "default";
109 pinctrl-0 = <&state_default>;
110
111 state_default: pinmux {
112 nand_out {
113 lantiq,groups = "nand cle", "nand ale";
114 lantiq,function = "ebu";
115 lantiq,output = <1>;
116 lantiq,open-drain = <0>;
117 lantiq,pull = <0>;
118 };
119 nand_cs1 {
120 lantiq,groups = "nand cs1";
121 lantiq,function = "ebu";
122 lantiq,open-drain = <0>;
123 lantiq,pull = <0>;
124 };
125
126 pci_in {
127 lantiq,groups = "req1";
128 lantiq,function = "pci";
129 lantiq,output = <0>;
130 lantiq,open-drain = <1>;
131 lantiq,pull = <2>;
132 };
133 pci_out {
134 lantiq,groups = "gnt1";
135 lantiq,function = "pci";
136 lantiq,output = <1>;
137 lantiq,open-drain = <0>;
138 lantiq,pull = <0>;
139 };
140
141 pci_rst {
142 lantiq,pins = "io21";
143 lantiq,output = <1>;
144 lantiq,open-drain = <0>;
145 };
146 };
147 };
148
149 &gsw {
150 phy-mode = "rgmii";
151 };
152
153 &localbus {
154 nand@1 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
155 compatible = "lantiq,nand-xway";
156 lantiq,cs = <1>;
157 bank-width = <2>;
158 reg = <1 0x0 0x2000000 >;
159 #address-cells = <1>;
160 #size-cells = <1>;
161 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
162
163 partitions {
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
166 #size-cells = <1>;
167
168 partition@0 {
169 label = "preboot";
170 reg = <0x00000 0x8000>;
171 read-only;
172 };
173 partition@8000 {
174 label = "u-boot";
175 reg = <0x8000 0x05c000>;
176 read-only;
177 };
178 partition@64000 {
179 label = "uboot_env";
180 reg = <0x64000 0x004000>;
181 };
182 ath9k_cal: partition@68000 {
183 label = "art-copy";
184 reg = <0x68000 0x004000>;
185 };
186 partition@6c000 {
187 label = "kernel";
188 reg = <0x6c000 0x200000>;
189 };
190 partition@26c000 {
191 label = "ubi";
192 reg = <0x26c000 0x1d94000>;
193 };
194 };
195 };
196 };
197
198 &pci0 {
199 status = "okay";
200 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
201
202 ath9k@7000 {
203 reg = <0x7000 0 0 0 0>;
204 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
205 };
206 };
207
208 &usb_phy0 {
209 status = "okay";
210 phy-supply = <&usb_vbus>;
211 };
212
213 &usb0 {
214 status = "okay";
215 };