lantiq: move partitions into partion table node
[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                                 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 0>;
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 1>;
88                         linux,code = <0x198>;
89                 };
90                 wps {
91                         label = "wps";
92                         gpios = <&gpio 54 1>;
93                         linux,code = <0x211>;
94                 };
95                 rfkill {
96                         label = "rfkill";
97                         gpios = <&gpio 55 1>;
98                         linux,code = <0xf7>;
99                 };
100         };
101
102         gpio-leds {
103                 compatible = "gpio-leds";
104
105                 power_green: power {
106                         label = "h201l:green:power";
107                         gpios = <&gpio 19 1>;
108                         default-state = "keep";
109                 };
110                 online: online {
111                         label = "h201l:green:internet";
112                         gpios = <&gpio 37 1>;
113                 };
114                 dsl: dsl {
115                         label = "h201l:green:dsl";
116                         gpios = <&gpio 4 1>;
117                 };
118                 phone {
119                         label = "h201l:green:phone";
120                         gpios = <&gpio 39 1>;
121                 };
122                 wps {
123                         label = "h201l:green:wps";
124                         gpios = <&gpio 22 1>;
125                 };
126                 wifi: wifi {
127                         label = "h201l:green:wlan";
128                         gpios = <&gpio 6 1>;
129                 };
130                 usb: usb {
131                         label = "h201l:green:usb";
132                         gpios = <&gpio 14 1>;
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 0>;
144                 };
145                 usb {
146                         gpio-export,name = "usb";
147                         gpio-export,output = <1>;
148                         gpios = <&gpio 28 0>;
149                 };
150                 wifi {
151                         gpio-export,name = "wifi";
152                         gpio-export,output = <1>;
153                         gpios = <&gpio 7 0>;
154                 };
155         };
156 };