lantiq: kernel 4.14: copy patches, config and dts files
[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
20 led-dsl = &dsl;
21 led-internet = &online;
22 led-usb = &usb;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 reg = <0x0 0x2000000>;
28 };
29
30 fpi@10000000 {
31 localbus@0 {
32 nor-boot@0 {
33 compatible = "lantiq,nor";
34 bank-width = <2>;
35 reg = <0 0x0 0x2000000>;
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "uboot";
46 reg = <0x00000 0x20000>;
47 read-only;
48 };
49
50 partition@20000 {
51 label = "uboot_env";
52 reg = <0x20000 0x10000>;
53 read-only;
54 };
55
56 partition@30000 {
57 label = "firmware";
58 reg = <0x30000 0x7d0000>;
59 };
60 };
61 };
62 };
63
64 gpio: pinmux@E100B10 {
65 pinctrl-names = "default";
66 pinctrl-0 = <&state_default>;
67
68 state_default: pinmux {
69 };
70 };
71
72 etop@E180000 {
73 phy-mode = "rgmii";
74 };
75
76 ifxhcd@E101000 {
77 status = "okay";
78 gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
79 };
80 };
81
82 gpio-keys-polled {
83 compatible = "gpio-keys-polled";
84 #address-cells = <1>;
85 #size-cells = <0>;
86 poll-interval = <100>;
87
88 reset {
89 label = "reset";
90 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
92 };
93 wps {
94 label = "wps";
95 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
97 };
98 rfkill {
99 label = "rfkill";
100 gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_RFKILL>;
102 };
103 };
104
105 gpio-leds {
106 compatible = "gpio-leds";
107
108 power_green: power {
109 label = "h201l:green:power";
110 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
111 default-state = "keep";
112 };
113 online: online {
114 label = "h201l:green:internet";
115 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
116 };
117 dsl: dsl {
118 label = "h201l:green:dsl";
119 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
120 };
121 phone {
122 label = "h201l:green:phone";
123 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
124 };
125 wps {
126 label = "h201l:green:wps";
127 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
128 };
129 wifi: wifi {
130 label = "h201l:green:wlan";
131 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
132 };
133 usb: usb {
134 label = "h201l:green:usb";
135 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
136 };
137 };
138
139 gpio_export {
140 compatible = "gpio-export";
141 #size-cells = <0>;
142
143 switch {
144 gpio-export,name = "switch";
145 gpio-export,output = <1>;
146 gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
147 };
148 usb {
149 gpio-export,name = "usb";
150 gpio-export,output = <1>;
151 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
152 };
153 wifi {
154 gpio-export,name = "wifi";
155 gpio-export,output = <1>;
156 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
157 };
158 };
159 };