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