lantiq: Sanitize device tree files
[openwrt/openwrt.git] / target / linux / lantiq / dts / BTHOMEHUBV3A.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 / {
6 model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10 };
11
12 aliases {
13 led-boot = &power_orange;
14 led-failsafe = &power_red;
15 led-running = &power_blue;
16
17 led-internet = &broadband_blue;
18 led-wifi = &wireless_blue;
19 };
20
21 memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */
22 reg = <0x0 0x4000000>;
23 };
24
25 sram@1F000000 {
26 vmmc@107000 {
27 status = "okay";
28 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
29 };
30 };
31
32 fpi@10000000 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 localbus@0 {
36 #address-cells = <2>;
37 #size-cells = <1>;
38 ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
39 1 0 0x4000000 0x4000010>; /* addsel1 */
40 compatible = "lantiq,localbus", "simple-bus";
41
42 nand-parts@0 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
43 compatible = "gen_nand", "lantiq,nand-xway";
44 lantiq,cs = <1>;
45 bank-width = <2>;
46 reg = <1 0x0 0x2000000 >;
47 #address-cells = <1>;
48 #size-cells = <1>;
49 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "preboot";
58 reg = <0x00000 0x8000>;
59 read-only;
60 };
61 partition@8000 {
62 label = "u-boot";
63 reg = <0x8000 0x05c000>;
64 read-only;
65 };
66 partition@64000 {
67 label = "uboot_env";
68 reg = <0x64000 0x004000>;
69 };
70 ath9k_cal: partition@68000 {
71 label = "art-copy";
72 reg = <0x68000 0x004000>;
73 };
74 partition@6c000 {
75 label = "kernel";
76 reg = <0x6c000 0x200000>;
77 };
78 partition@26c000 {
79 label = "ubi";
80 reg = <0x26c000 0x1d94000>;
81 };
82 };
83 };
84
85 ath9k_eep {
86 compatible = "ath9k,eeprom";
87 ath,eep-flash = <&ath9k_cal 0x0000>;
88 ath,pci-slot = <14>;
89 ath,eep-endian;
90 };
91 };
92
93 gpio: pinmux@E100B10 {
94 compatible = "lantiq,pinctrl-xr9";
95 pinctrl-names = "default";
96 pinctrl-0 = <&state_default>;
97
98 #gpio-cells = <2>;
99 gpio-controller;
100 reg = <0xE100B10 0xA0>;
101
102 state_default: pinmux {
103 nand_out {
104 lantiq,groups = "nand cle", "nand ale";
105 lantiq,function = "ebu";
106 lantiq,output = <1>;
107 lantiq,open-drain = <0>;
108 lantiq,pull = <0>;
109 };
110 nand_cs1 {
111 lantiq,groups = "nand cs1";
112 lantiq,function = "ebu";
113 lantiq,open-drain = <0>;
114 lantiq,pull = <0>;
115 };
116
117 pci_in {
118 lantiq,groups = "req1";
119 lantiq,function = "pci";
120 lantiq,output = <0>;
121 lantiq,open-drain = <1>;
122 lantiq,pull = <2>;
123 };
124 pci_out {
125 lantiq,groups = "gnt1";
126 lantiq,function = "pci";
127 lantiq,output = <1>;
128 lantiq,open-drain = <0>;
129 lantiq,pull = <0>;
130 };
131
132 pci_rst {
133 lantiq,pins = "io21";
134 lantiq,output = <1>;
135 lantiq,open-drain = <0>;
136 };
137 };
138 };
139
140 etop@E180000 {
141 phy-mode = "rgmii";
142 };
143
144 ifxhcd@E101000 {
145 status = "okay";
146 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
147 };
148
149 pci@E105400 {
150 status = "okay";
151 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
152 };
153
154 };
155
156 gpio-keys-polled {
157 compatible = "gpio-keys-polled";
158 #address-cells = <1>;
159 #size-cells = <0>;
160 poll-interval = <100>;
161 reset {
162 label = "reset";
163 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
164 linux,code = <KEY_RESTART>;
165 };
166 restart {
167 label = "restart";
168 gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
169 linux,code = <KEY_RESTART>;
170 };
171 wps {
172 label = "wps";
173 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
174 linux,code = <KEY_WPS_BUTTON>;
175 };
176 };
177
178 gpio-leds {
179 compatible = "gpio-leds";
180
181 wireless-red {
182 label = "bthomehubv3a:red:wireless";
183 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
184 };
185 wireless-orange {
186 label = "bthomehubv3a:orange:wireless";
187 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
188 };
189 wireless_blue: wireless-blue {
190 label = "bthomehubv3a:blue:wireless";
191 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
192 };
193
194 broadband-red {
195 label = "bthomehubv3a:red:broadband";
196 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
197 };
198 broadband-orange {
199 label = "bthomehubv3a:orange:broadband";
200 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
201 };
202 broadband_blue: broadband-blue {
203 label = "bthomehubv3a:blue:broadband";
204 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
205 };
206
207 power_red: power-red {
208 label = "bthomehubv3a:red:power";
209 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
210 };
211 power_orange: power-orange {
212 label = "bthomehubv3a:orange:power";
213 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
214 default-state = "keep";
215 };
216 power_blue: power-blue {
217 label = "bthomehubv3a:blue:power";
218 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
219 };
220 };
221 };
222