ramips: revert gpio regulator dts update
[openwrt/svn-archive/archive.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 sysc@0 {
15 ralink,pinmux = "uartlite", "spi";
16 ralink,gpiomux = "i2c", "jtag";
17 ralink,uartmux = "gpio";
18 ralink,wdtmux = <1>;
19 };
20
21 timer@100 {
22 status = "okay";
23 };
24
25 gpio0: gpio@600 {
26 status = "okay";
27 };
28
29 spi@b00 {
30 status = "okay";
31
32 m25p80@0 {
33 compatible = "macronix,mx25l12805d";
34 spi-max-frequency = <25000000>;
35 reg = <0>;
36
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 reg = <0x0 0x0030000>;
42 label = "u-boot";
43 read-only;
44 };
45
46 partition@30000 {
47 reg = <0x00030000 0x00010000>;
48 label = "config";
49 read-only;
50 };
51
52 partition@40000 {
53 reg = <0x00040000 0x00010000>;
54 label = "factory";
55 read-only;
56 };
57
58 partition@50000 {
59 reg = <0x00050000 0x00fb0000>;
60 label = "firmware";
61 };
62 };
63 };
64 };
65
66 ethernet@10100000 {
67 status = "okay";
68
69 phy-handle = <&phy0>;
70 phy-mode = "rgmii";
71
72 mdio-bus {
73 status = "okay";
74
75 phy0: ethernet-phy@4 {
76 reg = <4>;
77 };
78 };
79 };
80
81 wmac@10180000 {
82 status = "okay";
83 };
84
85 ehci@101c0000 {
86 status = "okay";
87 };
88
89 ohci@101c1000 {
90 status = "okay";
91 };
92
93 gpio-keys-polled {
94 compatible = "gpio-keys-polled";
95 #address-cells = <1>;
96 #size-cells = <0>;
97 poll-interval = <100>;
98 reset {
99 label = "reset";
100 gpios = <&gpio0 14 0>;
101 linux,code = <0x198>;
102 };
103 };
104
105 gpio-leds {
106 compatible = "gpio-leds";
107
108 power {
109 label = "emb:orange:power";
110 gpios = <&gpio0 7 1>;
111 };
112 status {
113 label = "emb:green:status";
114 gpios = <&gpio0 21 1>;
115 };
116 eth {
117 label = "emb:green:eth";
118 gpios = <&gpio0 20 1>;
119 };
120 eth2 {
121 label = "emb:red:eth";
122 gpios = <&gpio0 18 1>;
123 };
124 wifi {
125 label = "emb:green:wifi";
126 gpios = <&gpio0 17 1>;
127 };
128 wifi2 {
129 label = "emb:red:wifi";
130 gpios = <&gpio0 19 1>;
131 };
132 };
133
134 gpio_export {
135 compatible = "gpio-export";
136 #size-cells = <0>;
137 /* gpio 12 and 13 handle the OC input */
138 usb0 {
139 gpio-export,name = "usb0";
140 gpio-export,output = <1>;
141 gpios = <&gpio0 2 0>;
142 };
143 usb1 {
144 gpio-export,name = "usb1";
145 gpio-export,output = <1>;
146 gpios = <&gpio0 1 0>;
147 };
148 };
149 };