lantiq: dts: move memory node to board dts
[openwrt/staging/rmilecki.git] / target / linux / lantiq / files / arch / mips / boot / dts / WBMR.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9";
9 model = "Buffalo WBMR-HP-G300H";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19 led-upgrade = &power_green;
20
21 led-dsl = &dsl;
22 led-internet = &online_green;
23 led-usb = &led_usb;
24 led-wifi = &wifi;
25 };
26
27 memory@0 {
28 device_type = "memory";
29 reg = <0x0 0x4000000>;
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
34 #address-cells = <1>;
35 #size-cells = <0>;
36 poll-interval = <100>;
37
38 wps {
39 label = "wps";
40 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 reset {
44 label = "reset";
45 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48 eject {
49 label = "eject";
50 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_EJECTCD>;
52 };
53 movie {
54 label = "movie";
55 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_VIDEO>;
57 };
58 };
59
60 gpio-leds {
61 compatible = "gpio-leds";
62
63 power_green: power {
64 label = "wbmr:green:power";
65 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
66 default-state = "keep";
67 };
68 power_red: power2 {
69 label = "wbmr:red:power";
70 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
71 };
72 security {
73 label = "wbmr:yellow:security";
74 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
75 };
76 wifi: wifi {
77 label = "wbmr:green:wireless";
78 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
79 };
80 dsl: dsl {
81 label = "wbmr:green:dsl";
82 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
83 };
84 online_green: online {
85 label = "wbmr:green:internet";
86 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
87 };
88 online2 {
89 label = "wbmr:red:internet";
90 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
91 };
92 movie {
93 label = "wbmr:blue:movie";
94 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
95 };
96 led_usb: usb {
97 label = "wbmr:green:usb";
98 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
99 default-state = "on";
100 };
101 };
102
103 usb_vbus: regulator-usb-vbus {
104 compatible = "regulator-fixed";
105
106 regulator-name = "USB_VBUS";
107
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
110
111 gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
112 enable-active-high;
113 };
114 };
115
116 &gpio {
117 pinctrl-names = "default";
118 pinctrl-0 = <&state_default>;
119
120 state_default: pinmux {
121 pci-in {
122 lantiq,groups = "req1";
123 lantiq,output = <0>;
124 lantiq,open-drain = <1>;
125 lantiq,pull = <2>;
126 };
127 pci-out {
128 lantiq,groups = "gnt1";
129 lantiq,output = <1>;
130 lantiq,pull = <0>;
131 };
132 pci_rst {
133 lantiq,pins = "io21";
134 lantiq,pull = <0>;
135 lantiq,output = <1>;
136 };
137 };
138 };
139
140 &gsw {
141 phy-mode = "rgmii";
142 mtd-mac-address = <&boardconfig 0x10024>;
143 };
144
145 &pci0 {
146 status = "okay";
147 };
148
149 &localbus {
150 nor@0 {
151 compatible = "lantiq,nor";
152 bank-width = <2>;
153 reg = <0 0x0 0x2000000>;
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 partitions {
158 compatible = "fixed-partitions";
159 #address-cells = <1>;
160 #size-cells = <1>;
161
162 partition@0 {
163 label = "uboot";
164 reg = <0x00000 0x40000>;
165 read-only;
166 };
167
168 partition@40000 {
169 label = "uboot_env";
170 reg = <0x40000 0x20000>;
171 read-only;
172 };
173
174 partition@20000 {
175 label = "firmware";
176 reg = <0x60000 0x1f20000>;
177 };
178
179 boardconfig: partition@1fc0000 {
180 label = "board";
181 reg = <0x1fc0000 0x20000>;
182 read-only;
183 };
184
185 partition@1fe0000 {
186 label = "calibration";
187 reg = <0x1fe0000 0x20000>;
188 read-only;
189 };
190 };
191 };
192 };
193
194 &usb_phy0 {
195 status = "okay";
196 };
197
198 &usb0 {
199 status = "okay";
200 vbus-supply = <&usb_vbus>;
201 };