ralink: add pinctrl driver
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / HG255D.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "HG255D", "ralink,rt3052-soc";
7 model = "HuaWei HG255D";
8
9 pinctrl {
10 state_default: pinctrl0 {
11 gpio {
12 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
13 ralink,function = "gpio";
14 };
15 };
16 };
17
18 cfi@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x1000000>;
21
22 bank-width = <2>;
23 device-width = <2>;
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "u-boot";
29 reg = <0x0 0x40000>;
30 read-only;
31 };
32
33 partition@30000 {
34 label = "u-boot-env";
35 reg = <0x40000 0x20000>;
36 read-only;
37 };
38
39 factory: partition@60000 {
40 label = "factory";
41 reg = <0x60000 0x20000>;
42 read-only;
43 };
44
45 partition@80000 {
46 label = "firmware";
47 reg = <0x80000 0xf60000>;
48 };
49
50 partition@fa0000 {
51 label = "factory-orig";
52 reg = <0xfa0000 0x20000>;
53 read-only;
54 };
55 };
56
57 gpio-leds {
58 compatible = "gpio-leds";
59 power {
60 label = "hg255d:power";
61 gpios = <&gpio0 8 1>;
62 };
63 internet {
64 label = "hg255d:internet";
65 gpios = <&gpio0 13 1>;
66 };
67 wifi {
68 label = "hg255d:wlan";
69 gpios = <&gpio0 14 1>;
70 };
71 usb {
72 label = "hg255d:usb";
73 gpios = <&gpio0 9 1>;
74 };
75 wps {
76 label = "hg255d:wps";
77 gpios = <&gpio0 12 1>;
78 };
79 voice {
80 label = "hg255d:voice";
81 gpios = <&gpio0 5 1>;
82 };
83 };
84
85 gpio-keys-polled {
86 compatible = "gpio-keys-polled";
87 #address-cells = <1>;
88 #size-cells = <0>;
89 poll-interval = <10>;
90 reset {
91 label = "reset";
92 gpios = <&gpio0 4 1>;
93 linux,code = <0x198>;
94 };
95 wps {
96 label = "wps";
97 gpios = <&gpio0 10 1>;
98 linux,code = <0x211>;
99 };
100 rfkill {
101 label = "rfkill";
102 gpios = <&gpio0 0 1>;
103 linux,code = <0xf7>;
104 };
105 };
106
107 esw@10110000 {
108 ralink,portmap = <0x2f>;
109 };
110
111 otg@101c0000 {
112 status = "okay";
113 };
114 };