ralink: add pinctrl driver
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / OMNI-EMB-HPM.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6 compatible = "OMNI-EMB-HPM", "ralink,rt3883-soc";
7 model = "Omnima EMB HPM";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 palmbus@10000000 {
14 spi@b00 {
15 status = "okay";
16
17 m25p80@0 {
18 compatible = "macronix,mx25l12805d";
19 spi-max-frequency = <25000000>;
20 reg = <0>;
21
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 partition@0 {
26 reg = <0x0 0x0030000>;
27 label = "u-boot";
28 read-only;
29 };
30
31 partition@30000 {
32 reg = <0x00030000 0x00010000>;
33 label = "config";
34 read-only;
35 };
36
37 partition@40000 {
38 reg = <0x00040000 0x00010000>;
39 label = "factory";
40 read-only;
41 };
42
43 partition@50000 {
44 reg = <0x00050000 0x00fb0000>;
45 label = "firmware";
46 };
47 };
48 };
49 };
50
51 pinctrl {
52 state_default: pinctrl0 {
53 gpio {
54 ralink,group = "i2c", "jtag", "uartf";
55 ralink,function = "gpio";
56 };
57 };
58 };
59
60 ethernet@10100000 {
61 phy-handle = <&phy0>;
62 phy-mode = "rgmii";
63
64 mdio-bus {
65 status = "okay";
66
67 phy0: ethernet-phy@4 {
68 reg = <4>;
69 };
70 };
71 };
72
73 ehci@101c0000 {
74 status = "okay";
75 };
76
77 ohci@101c1000 {
78 status = "okay";
79 };
80
81 gpio-keys-polled {
82 compatible = "gpio-keys-polled";
83 #address-cells = <1>;
84 #size-cells = <0>;
85 poll-interval = <100>;
86 reset {
87 label = "reset";
88 gpios = <&gpio0 14 0>;
89 linux,code = <0x198>;
90 };
91 };
92
93 gpio-leds {
94 compatible = "gpio-leds";
95
96 power {
97 label = "emb:orange:power";
98 gpios = <&gpio0 7 1>;
99 };
100 status {
101 label = "emb:green:status";
102 gpios = <&gpio0 21 1>;
103 };
104 eth {
105 label = "emb:green:eth";
106 gpios = <&gpio0 20 1>;
107 };
108 eth2 {
109 label = "emb:red:eth";
110 gpios = <&gpio0 18 1>;
111 };
112 wifi {
113 label = "emb:green:wifi";
114 gpios = <&gpio0 17 1>;
115 };
116 wifi2 {
117 label = "emb:red:wifi";
118 gpios = <&gpio0 19 1>;
119 };
120 };
121
122 gpio_export {
123 compatible = "gpio-export";
124 #size-cells = <0>;
125 /* gpio 12 and 13 handle the OC input */
126 usb0 {
127 gpio-export,name = "usb0";
128 gpio-export,output = <1>;
129 gpios = <&gpio0 2 0>;
130 };
131 usb1 {
132 gpio-export,name = "usb1";
133 gpio-export,output = <1>;
134 gpios = <&gpio0 1 0>;
135 };
136 };
137 };