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