83bd667bac9b427e06269503d53e1de6133cb6ce
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / H201L.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9";
9 model = "ZTE H210L";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_green;
18 led-running = &power_green;
19 led-upgrade = &power_green;
20
21 led-dsl = &dsl;
22 led-internet = &online;
23 led-usb = &led_usb;
24 led-wifi = &wifi;
25 };
26
27 memory@0 {
28 device_type = "memory";
29 reg = <0x0 0x2000000>;
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 reset {
39 label = "reset";
40 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 wps {
44 label = "wps";
45 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 rfkill {
49 label = "rfkill";
50 gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RFKILL>;
52 };
53 };
54
55 gpio-leds {
56 compatible = "gpio-leds";
57
58 power_green: power {
59 label = "h201l:green:power";
60 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
61 default-state = "keep";
62 };
63 online: online {
64 label = "h201l:green:internet";
65 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
66 };
67 dsl: dsl {
68 label = "h201l:green:dsl";
69 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
70 };
71 phone {
72 label = "h201l:green:phone";
73 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
74 };
75 wps {
76 label = "h201l:green:wps";
77 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
78 };
79 wifi: wifi {
80 label = "h201l:green:wlan";
81 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
82 };
83 led_usb: usb {
84 label = "h201l:green:usb";
85 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
86 };
87 };
88
89 gpio_export {
90 compatible = "gpio-export";
91 #size-cells = <0>;
92
93 switch {
94 gpio-export,name = "switch";
95 gpio-export,output = <1>;
96 gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
97 };
98 usb {
99 gpio-export,name = "usb";
100 gpio-export,output = <1>;
101 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
102 };
103 wifi {
104 gpio-export,name = "wifi";
105 gpio-export,output = <1>;
106 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
107 };
108 };
109
110 usb_vbus: regulator-usb-vbus {
111 compatible = "regulator-fixed";
112
113 regulator-name = "USB_VBUS";
114
115 regulator-min-microvolt = <5000000>;
116 regulator-max-microvolt = <5000000>;
117
118 gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
119 enable-active-high;
120 };
121 };
122
123 &gpio {
124 pinctrl-names = "default";
125 pinctrl-0 = <&state_default>;
126
127 state_default: pinmux {
128 };
129 };
130
131 &gsw {
132 phy-mode = "rgmii";
133 };
134
135 &localbus {
136 nor@0 {
137 compatible = "lantiq,nor";
138 bank-width = <2>;
139 reg = <0 0x0 0x2000000>;
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 partitions {
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
146 #size-cells = <1>;
147
148 partition@0 {
149 label = "uboot";
150 reg = <0x00000 0x20000>;
151 read-only;
152 };
153
154 partition@20000 {
155 label = "uboot_env";
156 reg = <0x20000 0x10000>;
157 read-only;
158 };
159
160 partition@30000 {
161 label = "firmware";
162 reg = <0x30000 0x7d0000>;
163 };
164 };
165 };
166 };
167
168 &usb_phy0 {
169 status = "okay";
170 };
171
172
173 &usb0 {
174 status = "okay";
175 vbus-supply = <&usb_vbus>;
176 };