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