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