lantiq: use devicename:colour:function led naming scheme
[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 leds {
12 boot = &power_green;
13 failsafe = &power_green;
14 running = &power_green;
15
16 dsl = &dsl;
17 internet = &online;
18 usb = &usb;
19 wifi = &wifi;
20 };
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 partition@0 {
37 label = "uboot";
38 reg = <0x00000 0x20000>;
39 read-only;
40 };
41
42 partition@20000 {
43 label = "uboot_env";
44 reg = <0x20000 0x10000>;
45 read-only;
46 };
47
48 partition@30000 {
49 label = "firmware";
50 reg = <0x30000 0x7d0000>;
51 };
52 };
53 };
54
55 gpio: pinmux@E100B10 {
56 pinctrl-names = "default";
57 pinctrl-0 = <&state_default>;
58
59 state_default: pinmux {
60 };
61 };
62
63 etop@E180000 {
64 phy-mode = "rgmii";
65 };
66
67 ifxhcd@E101000 {
68 status = "okay";
69 gpios = <&gpio 36 0>;
70 };
71 };
72
73 gpio-keys-polled {
74 compatible = "gpio-keys-polled";
75 #address-cells = <1>;
76 #size-cells = <0>;
77 poll-interval = <100>;
78
79 reset {
80 label = "reset";
81 gpios = <&gpio 53 1>;
82 linux,code = <0x198>;
83 };
84 wps {
85 label = "wps";
86 gpios = <&gpio 54 1>;
87 linux,code = <0x211>;
88 };
89 rfkill {
90 label = "rfkill";
91 gpios = <&gpio 55 1>;
92 linux,code = <0xf7>;
93 };
94 };
95
96 gpio-leds {
97 compatible = "gpio-leds";
98
99 power_green: power {
100 label = "h201l:green:power";
101 gpios = <&gpio 19 1>;
102 default-state = "keep";
103 };
104 online: online {
105 label = "h201l:green:internet";
106 gpios = <&gpio 37 1>;
107 };
108 dsl: dsl {
109 label = "h201l:green:dsl";
110 gpios = <&gpio 4 1>;
111 };
112 phone {
113 label = "h201l:green:phone";
114 gpios = <&gpio 39 1>;
115 };
116 wps {
117 label = "h201l:green:wps";
118 gpios = <&gpio 22 1>;
119 };
120 wifi: wifi {
121 label = "h201l:green:wlan";
122 gpios = <&gpio 6 1>;
123 };
124 usb: usb {
125 label = "h201l:green:usb";
126 gpios = <&gpio 14 1>;
127 };
128 };
129
130 gpio_export {
131 compatible = "gpio-export";
132 #size-cells = <0>;
133
134 switch {
135 gpio-export,name = "switch";
136 gpio-export,output = <1>;
137 gpios = <&gpio 38 0>;
138 };
139 usb {
140 gpio-export,name = "usb";
141 gpio-export,output = <1>;
142 gpios = <&gpio 28 0>;
143 };
144 wifi {
145 gpio-export,name = "wifi";
146 gpio-export,output = <1>;
147 gpios = <&gpio 7 0>;
148 };
149 };
150 };