lantiq: dts: move memory node to board dts
[openwrt/staging/stintel.git] / target / linux / lantiq / files / arch / mips / boot / dts / P2601HNFX.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9";
9 model = "ZyXEL P-2601HN-Fx";
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;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <100>;
36
37 reset {
38 label = "reset";
39 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42 rfkill {
43 label = "rfkill";
44 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RFKILL>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51
52 power_green: power {
53 label = "p2601hnfx:green:power";
54 gpios = <&stp 11 GPIO_ACTIVE_LOW>;
55 default-state = "keep";
56 };
57 power_red: power2 {
58 label = "p2601hnfx:red:power";
59 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
60 };
61 online: online {
62 label = "p2601hnfx:green:internet";
63 gpios = <&stp 13 GPIO_ACTIVE_LOW>;
64 };
65 online2 {
66 label = "p2601hnfx:red:internet";
67 gpios = <&stp 12 GPIO_ACTIVE_LOW>;
68 };
69 dsl: dsl {
70 label = "p2601hnfx:green:dsl";
71 gpios = <&stp 14 GPIO_ACTIVE_LOW>;
72 };
73 phone {
74 label = "p2601hnfx:green:phone";
75 gpios = <&stp 9 GPIO_ACTIVE_LOW>;
76 };
77 phone2 {
78 label = "p2601hnfx:orange:phone";
79 gpios = <&stp 8 GPIO_ACTIVE_LOW>;
80 };
81 wifi: wifi {
82 label = "p2601hnfx:green:wireless";
83 gpios = <&stp 15 GPIO_ACTIVE_LOW>;
84 };
85 wifi2 {
86 label = "p2601hnfx:orange:wireless";
87 gpios = <&stp 10 GPIO_ACTIVE_LOW>;
88 };
89 };
90
91 gpio_export {
92 compatible = "gpio-export";
93 #size-cells = <0>;
94
95 switch {
96 gpio-export,name = "switch";
97 gpio-export,output = <1>;
98 gpios = <&gpio 50 GPIO_ACTIVE_HIGH>;
99 };
100 };
101 };
102
103 &gpio {
104 pinctrl-names = "default";
105 pinctrl-0 = <&state_default>;
106
107 state_default: pinmux {
108 stp {
109 lantiq,groups = "stp";
110 lantiq,function = "stp";
111 lantiq,pull = <2>;
112 lantiq,open-drain = <0>;
113 lantiq,output = <1>;
114 };
115 exin {
116 lantiq,groups = "exin1";
117 lantiq,function = "exin";
118 };
119 pci {
120 lantiq,groups = "gnt1";
121 lantiq,function = "pci";
122 };
123 conf_out {
124 lantiq,pins = "io4", "io5", "io6";
125 lantiq,open-drain;
126 lantiq,pull = <0>;
127 };
128 mdio {
129 lantiq,groups = "mdio";
130 lantiq,function = "mdio";
131 };
132 };
133
134 usb_vbus: regulator-usb-vbus {
135 compatible = "regulator-fixed";
136
137 regulator-name = "USB_VBUS";
138
139 regulator-min-microvolt = <5000000>;
140 regulator-max-microvolt = <5000000>;
141
142 gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
143 enable-active-high;
144 };
145 };
146
147 &gsw {
148 phy-mode = "rmii";
149 };
150
151 &localbus {
152 nor@0 {
153 compatible = "lantiq,nor";
154 bank-width = <2>;
155 reg = <0 0x0 0x2000000>;
156 #address-cells = <1>;
157 #size-cells = <1>;
158
159 partitions {
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
162 #size-cells = <1>;
163
164 partition@0 {
165 label = "uboot";
166 reg = <0x00000 0x40000>;
167 read-only;
168 };
169
170 partition@40000 {
171 label = "uboot_env";
172 reg = <0x40000 0x20000>;
173 read-only;
174 };
175
176 partition@60000 {
177 label = "firmware";
178 reg = <0x60000 0xfa0000>;
179 };
180 };
181 };
182 };
183
184 &stp {
185 status = "okay";
186 lantiq,shadow = <0xfff>;
187 lantiq,groups = <0x3>;
188 };
189
190 &usb_phy0 {
191 status = "okay";
192 };
193
194 &usb0 {
195 status = "okay";
196 vbus-supply = <&usb_vbus>;
197 };