lantiq: dts: use generic node names
[oweals/openwrt.git] / target / linux / lantiq / files / 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                 led-upgrade = &power_green;
20
21                 led-dsl = &dsl;
22                 led-internet = &online;
23                 led-usb = &led_usb;
24                 led-wifi = &wifi;
25         };
26
27         memory@0 {
28                 device_type = "memory";
29                 reg = <0x0 0x2000000>;
30         };
31
32         keys {
33                 compatible = "gpio-keys-polled";
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         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         usb_vbus: regulator-usb-vbus {
109                 compatible = "regulator-fixed";
110
111                 regulator-name = "USB_VBUS";
112
113                 regulator-min-microvolt = <5000000>;
114                 regulator-max-microvolt = <5000000>;
115
116                 gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
117                 enable-active-high;
118         };
119 };
120
121 &gpio {
122         pinctrl-names = "default";
123         pinctrl-0 = <&state_default>;
124
125         state_default: pinmux {
126         };
127 };
128
129 &gsw {
130         phy-mode = "rgmii";
131 };
132
133 &localbus {
134         flash@0 {
135                 compatible = "lantiq,nor";
136                 bank-width = <2>;
137                 reg = <0 0x0 0x2000000>;
138
139                 partitions {
140                         compatible = "fixed-partitions";
141                         #address-cells = <1>;
142                         #size-cells = <1>;
143
144                         partition@0 {
145                                 label = "uboot";
146                                 reg = <0x00000 0x20000>;
147                                 read-only;
148                         };
149
150                         partition@20000 {
151                                 label = "uboot_env";
152                                 reg = <0x20000 0x10000>;
153                                 read-only;
154                         };
155
156                         partition@30000 {
157                                 label = "firmware";
158                                 reg = <0x30000 0x7d0000>;
159                         };
160                 };
161         };
162 };
163
164 &usb_phy0 {
165         status = "okay";
166 };
167
168
169 &usb0 {
170         status = "okay";
171         vbus-supply = <&usb_vbus>;
172 };