lantiq: remove read-only flag on two partitions on BTHOMEHUBV3A
[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                                 };
65                                 ath9k_cal: partition@68000 {
66                                         label = "art-copy";
67                                         reg = <0x68000 0x004000>;
68                                 };
69                                 partition@6c000 {
70                                         label = "kernel";
71                                         reg = <0x6c000 0x200000>;
72                                 };
73                                 partition@26c000 {
74                                         label = "ubi";
75                                         reg = <0x26c000 0x1d94000>;
76                                 };
77                         };
78
79                         ath9k_eep {
80                                 compatible = "ath9k,eeprom";
81                                 ath,eep-flash = <&ath9k_cal 0x0000>;
82                                 ath,mac-offset = <0x10c>;
83                                 ath,pci-slot = <14>;
84                                 ath,eep-endian;
85                         };
86                 };
87
88                 gpio: pinmux@E100B10 {
89                         compatible = "lantiq,pinctrl-xr9";
90                         pinctrl-names = "default";
91                         pinctrl-0 = <&state_default>;
92
93                         #gpio-cells = <2>;
94                         gpio-controller;
95                         reg = <0xE100B10 0xA0>;
96
97                         state_default: pinmux {
98                                 nand_out {
99                                         lantiq,groups = "nand cle", "nand ale";
100                                         lantiq,function = "ebu";
101                                         lantiq,output = <1>;
102                                         lantiq,open-drain = <0>;
103                                         lantiq,pull = <0>;
104                                 };
105                                 nand_cs1 {
106                                         lantiq,groups = "nand cs1";
107                                         lantiq,function = "ebu";
108                                         lantiq,open-drain = <0>;
109                                         lantiq,pull = <0>;
110                                 };
111
112                                 pci_in {
113                                         lantiq,groups = "req1";
114                                         lantiq,function = "pci";
115                                         lantiq,output = <0>;
116                                         lantiq,open-drain = <1>;
117                                         lantiq,pull = <2>;
118                                 };
119                                 pci_out {
120                                         lantiq,groups = "gnt1";
121                                         lantiq,function = "pci";
122                                         lantiq,output = <1>;
123                                         lantiq,open-drain = <0>;
124                                         lantiq,pull = <0>;
125                                 };
126
127                                 pci_rst {
128                                         lantiq,pins = "io21";
129                                         lantiq,output = <1>;
130                                         lantiq,open-drain = <0>;
131                                 };
132                         };
133                 };
134
135                 etop@E180000 {
136                         phy-mode = "rgmii";
137                 };
138
139                 ifxhcd@E101000 {
140                         status = "okay";
141                         gpios = <&gpio 33 0>;
142                 };
143
144                 pci@E105400 {
145                         status = "okay";
146                         gpio-reset = <&gpio 21 0>;
147                 };
148
149         };
150
151         gpio-keys-polled {
152                 compatible = "gpio-keys-polled";
153                 #address-cells = <1>;
154                 #size-cells = <0>;
155                 poll-interval = <100>;
156                 reset {
157                         label = "reset";
158                         gpios = <&gpio 54 1>;
159                         linux,code = <0x198>;
160                 };
161                 restart {
162                         label = "restart";
163                         gpios = <&gpio 52 1>;
164                         linux,code = <0x198>;
165                 };
166                 wps {
167                         label = "wps";
168                         gpios = <&gpio 53 1>;
169                         linux,code = <0x211>;
170                 };
171         };
172
173         gpio-leds {
174                 compatible = "gpio-leds";
175
176                 wireless-red {
177                         label = "bthomehubv3a:red:wireless";
178                         gpios = <&gpio 2 1>;
179                 };
180                 wireless-orange {
181                         label = "bthomehubv3a:orange:wireless";
182                         gpios = <&gpio 6 1>;
183                 };
184                 wireless_blue: wireless-blue {
185                         label = "bthomehubv3a:blue:wireless";
186                         gpios = <&gpio 9 1>;
187                 };
188
189                 broadband-red {
190                         label = "bthomehubv3a:red:broadband";
191                         gpios = <&gpio 11 1>;
192                 };
193                 broadband-orange {
194                         label = "bthomehubv3a:orange:broadband";
195                         gpios = <&gpio 0 1>;
196                 };
197                 broadband_blue: broadband-blue {
198                         label = "bthomehubv3a:blue:broadband";
199                         gpios = <&gpio 12 1>;
200                 };
201
202                 power_red: power-red {
203                         label = "bthomehubv3a:red:power";
204                         gpios = <&gpio 14 1>;
205                 };
206                 power_orange: power-orange {
207                         label = "bthomehubv3a:orange:power";
208                         gpios = <&gpio 5 1>;
209                         default-state = "keep";
210                 };
211                 power_blue: power-blue {
212                         label = "bthomehubv3a:blue:power";
213                         gpios = <&gpio 1 1>;
214                 };
215         };
216 };
217