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