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