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