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