lantiq: kernel 4.14: cleanup 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
95 &gpio {
96 pinctrl-names = "default";
97 pinctrl-0 = <&state_default>;
98
99 state_default: pinmux {
100 nand_out {
101 lantiq,groups = "nand cle", "nand ale";
102 lantiq,function = "ebu";
103 lantiq,output = <1>;
104 lantiq,open-drain = <0>;
105 lantiq,pull = <0>;
106 };
107 nand_cs1 {
108 lantiq,groups = "nand cs1";
109 lantiq,function = "ebu";
110 lantiq,open-drain = <0>;
111 lantiq,pull = <0>;
112 };
113
114 pci_in {
115 lantiq,groups = "req1";
116 lantiq,function = "pci";
117 lantiq,output = <0>;
118 lantiq,open-drain = <1>;
119 lantiq,pull = <2>;
120 };
121 pci_out {
122 lantiq,groups = "gnt1";
123 lantiq,function = "pci";
124 lantiq,output = <1>;
125 lantiq,open-drain = <0>;
126 lantiq,pull = <0>;
127 };
128
129 pci_rst {
130 lantiq,pins = "io21";
131 lantiq,output = <1>;
132 lantiq,open-drain = <0>;
133 };
134 };
135 };
136
137 &gsw {
138 phy-mode = "rgmii";
139 };
140
141 &localbus {
142 nand@1 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
143 compatible = "lantiq,nand-xway";
144 lantiq,cs = <1>;
145 bank-width = <2>;
146 reg = <1 0x0 0x2000000 >;
147 #address-cells = <1>;
148 #size-cells = <1>;
149 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
150
151 partitions {
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 partition@0 {
157 label = "preboot";
158 reg = <0x00000 0x8000>;
159 read-only;
160 };
161 partition@8000 {
162 label = "u-boot";
163 reg = <0x8000 0x05c000>;
164 read-only;
165 };
166 partition@64000 {
167 label = "uboot_env";
168 reg = <0x64000 0x004000>;
169 };
170 ath9k_cal: partition@68000 {
171 label = "art-copy";
172 reg = <0x68000 0x004000>;
173 };
174 partition@6c000 {
175 label = "kernel";
176 reg = <0x6c000 0x200000>;
177 };
178 partition@26c000 {
179 label = "ubi";
180 reg = <0x26c000 0x1d94000>;
181 };
182 };
183 };
184 };
185
186 &pci0 {
187 status = "okay";
188 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
189
190 ath9k@7000 {
191 reg = <0x7000 0 0 0 0>;
192 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
193 };
194 };
195
196 &usb0 {
197 status = "okay";
198 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
199 };