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