e3a252bfc411a5ad70bfc4d5c1123d0c55915556
[openwrt/staging/wigyori.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 localbus@0 {
34 nand-parts@0 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
35 compatible = "gen_nand", "lantiq,nand-xway";
36 lantiq,cs = <1>;
37 bank-width = <2>;
38 reg = <1 0x0 0x2000000 >;
39 #address-cells = <1>;
40 #size-cells = <1>;
41 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
42
43 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 partition@0 {
49 label = "preboot";
50 reg = <0x00000 0x8000>;
51 read-only;
52 };
53 partition@8000 {
54 label = "u-boot";
55 reg = <0x8000 0x05c000>;
56 read-only;
57 };
58 partition@64000 {
59 label = "uboot_env";
60 reg = <0x64000 0x004000>;
61 };
62 ath9k_cal: partition@68000 {
63 label = "art-copy";
64 reg = <0x68000 0x004000>;
65 };
66 partition@6c000 {
67 label = "kernel";
68 reg = <0x6c000 0x200000>;
69 };
70 partition@26c000 {
71 label = "ubi";
72 reg = <0x26c000 0x1d94000>;
73 };
74 };
75 };
76
77 ath9k_eep {
78 compatible = "ath9k,eeprom";
79 ath,eep-flash = <&ath9k_cal 0x0000>;
80 ath,pci-slot = <14>;
81 ath,eep-endian;
82 };
83 };
84
85 gpio: pinmux@E100B10 {
86 pinctrl-names = "default";
87 pinctrl-0 = <&state_default>;
88
89 state_default: pinmux {
90 nand_out {
91 lantiq,groups = "nand cle", "nand ale";
92 lantiq,function = "ebu";
93 lantiq,output = <1>;
94 lantiq,open-drain = <0>;
95 lantiq,pull = <0>;
96 };
97 nand_cs1 {
98 lantiq,groups = "nand cs1";
99 lantiq,function = "ebu";
100 lantiq,open-drain = <0>;
101 lantiq,pull = <0>;
102 };
103
104 pci_in {
105 lantiq,groups = "req1";
106 lantiq,function = "pci";
107 lantiq,output = <0>;
108 lantiq,open-drain = <1>;
109 lantiq,pull = <2>;
110 };
111 pci_out {
112 lantiq,groups = "gnt1";
113 lantiq,function = "pci";
114 lantiq,output = <1>;
115 lantiq,open-drain = <0>;
116 lantiq,pull = <0>;
117 };
118
119 pci_rst {
120 lantiq,pins = "io21";
121 lantiq,output = <1>;
122 lantiq,open-drain = <0>;
123 };
124 };
125 };
126
127 etop@E180000 {
128 phy-mode = "rgmii";
129 };
130
131 ifxhcd@E101000 {
132 status = "okay";
133 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
134 };
135
136 pci@E105400 {
137 status = "okay";
138 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
139 };
140 };
141
142 gpio-keys-polled {
143 compatible = "gpio-keys-polled";
144 #address-cells = <1>;
145 #size-cells = <0>;
146 poll-interval = <100>;
147 reset {
148 label = "reset";
149 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
150 linux,code = <KEY_RESTART>;
151 };
152 restart {
153 label = "restart";
154 gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
155 linux,code = <KEY_RESTART>;
156 };
157 wps {
158 label = "wps";
159 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
160 linux,code = <KEY_WPS_BUTTON>;
161 };
162 };
163
164 gpio-leds {
165 compatible = "gpio-leds";
166
167 wireless-red {
168 label = "bthomehubv3a:red:wireless";
169 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
170 };
171 wireless-orange {
172 label = "bthomehubv3a:orange:wireless";
173 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
174 };
175 wireless_blue: wireless-blue {
176 label = "bthomehubv3a:blue:wireless";
177 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
178 };
179
180 broadband-red {
181 label = "bthomehubv3a:red:broadband";
182 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
183 };
184 broadband-orange {
185 label = "bthomehubv3a:orange:broadband";
186 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
187 };
188 broadband_blue: broadband-blue {
189 label = "bthomehubv3a:blue:broadband";
190 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
191 };
192
193 power_red: power-red {
194 label = "bthomehubv3a:red:power";
195 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
196 };
197 power_orange: power-orange {
198 label = "bthomehubv3a:orange:power";
199 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
200 default-state = "keep";
201 };
202 power_blue: power-blue {
203 label = "bthomehubv3a:blue:power";
204 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
205 };
206 };
207 };