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