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