lantiq: new image build process - fix kernel entry address
[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                         boot = &power_orange;
13                         failsafe = &power_red;
14                         running = &power_blue;
15
16                         internet = &broadband_blue;
17                         wifi = &wireless_blue;
18                 };
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 0>;
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                                 partition@0 {
52                                         label = "preboot";
53                                         reg = <0x00000 0x8000>;
54                                         read-only;
55                                 };
56                                 partition@8000 {
57                                         label = "u-boot";
58                                         reg = <0x8000 0x05c000>;
59                                         read-only;
60                                 };
61                                 partition@64000 {
62                                         label = "uboot-config";
63                                         reg = <0x64000 0x004000>;
64                                         read-only;
65                                 };
66                                 ath9k_cal: partition@68000 {
67                                         label = "art-copy";
68                                         reg = <0x68000 0x004000>;
69                                         read-only;
70                                 };
71                                 partition@6c000 {
72                                         label = "kernel";
73                                         reg = <0x6c000 0x200000>;
74                                 };
75                                 partition@26c000 {
76                                         label = "ubi";
77                                         reg = <0x26c000 0x1d94000>;
78                                 };
79                         };
80
81                         ath9k_eep {
82                                 compatible = "ath9k,eeprom";
83                                 ath,eep-flash = <&ath9k_cal 0x0000>;
84                                 ath,mac-offset = <0x10c>;
85                                 ath,pci-slot = <14>;
86                                 ath,eep-endian;
87                         };
88                 };
89
90                 gpio: pinmux@E100B10 {
91                         compatible = "lantiq,pinctrl-xr9";
92                         pinctrl-names = "default";
93                         pinctrl-0 = <&state_default>;
94
95                         #gpio-cells = <2>;
96                         gpio-controller;
97                         reg = <0xE100B10 0xA0>;
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                 etop@E180000 {
138                         phy-mode = "rgmii";
139                 };
140
141                 ifxhcd@E101000 {
142                         status = "okay";
143                         gpios = <&gpio 33 0>;
144                 };
145
146                 pci@E105400 {
147                         status = "okay";
148                         gpio-reset = <&gpio 21 0>;
149                 };
150
151         };
152
153         gpio-keys-polled {
154                 compatible = "gpio-keys-polled";
155                 #address-cells = <1>;
156                 #size-cells = <0>;
157                 poll-interval = <100>;
158                 reset {
159                         label = "reset";
160                         gpios = <&gpio 54 1>;
161                         linux,code = <0x198>;
162                 };
163                 restart {
164                         label = "restart";
165                         gpios = <&gpio 52 1>;
166                         linux,code = <0x198>;
167                 };
168                 wps {
169                         label = "wps";
170                         gpios = <&gpio 53 1>;
171                         linux,code = <0x211>;
172                 };
173         };
174
175         gpio-leds {
176                 compatible = "gpio-leds";
177
178                 wireless-red {
179                         label = "bthomehubv3a:red:wireless";
180                         gpios = <&gpio 2 1>;
181                 };
182                 wireless-orange {
183                         label = "bthomehubv3a:orange:wireless";
184                         gpios = <&gpio 6 1>;
185                 };
186                 wireless_blue: wireless-blue {
187                         label = "bthomehubv3a:blue:wireless";
188                         gpios = <&gpio 9 1>;
189                 };
190
191                 broadband-red {
192                         label = "bthomehubv3a:red:broadband";
193                         gpios = <&gpio 11 1>;
194                 };
195                 broadband-orange {
196                         label = "bthomehubv3a:orange:broadband";
197                         gpios = <&gpio 0 1>;
198                 };
199                 broadband_blue: broadband-blue {
200                         label = "bthomehubv3a:blue:broadband";
201                         gpios = <&gpio 12 1>;
202                 };
203
204                 power_red: power-red {
205                         label = "bthomehubv3a:red:power";
206                         gpios = <&gpio 14 1>;
207                 };
208                 power_orange: power-orange {
209                         label = "bthomehubv3a:orange:power";
210                         gpios = <&gpio 5 1>;
211                         default-state = "keep";
212                 };
213                 power_blue: power-blue {
214                         label = "bthomehubv3a:blue:power";
215                         gpios = <&gpio 1 1>;
216                 };
217         };
218 };
219