d1c85bb9e208c77d7d6a43dd6096f2ce3cf82268
[openwrt.git] / target / linux / ramips / dts / OMNI-EMB.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "OMNI-EMB", "ralink,rt3052-soc";
7         model = "Omnima MiniEMBWiFi";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
15         };
16
17         palmbus@10000000 {
18                 sysc@0 {
19                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20                         ralink,uartmux = "gpio";
21                         ralink,wdtmux = <1>;
22                 };
23
24                 gpio0: gpio@600 {
25                         status = "okay";
26                 };
27         };
28
29         gpio-leds {
30                 compatible = "gpio-leds";
31                 status {
32                         label = "emb:green:status";
33                         gpios = <&gpio0 9 1>;
34                 };
35                 wlan {
36                         label = "emb:green:wlan";
37                         gpios = <&gpio0 14 1>;
38                 };
39         };
40
41         gpio-keys-polled {
42                 compatible = "gpio-keys-polled";
43                 #address-cells = <1>;
44                 #size-cells = <0>;
45                 poll-interval = <20>;
46                 reset {
47                         label = "reset";
48                         gpios = <&gpio0 12 1>;
49                         linux,code = <0x198>;
50                 };
51         };
52
53         cfi@1f000000 {
54                 compatible = "cfi-flash";
55                 reg = <0x1f000000 0x800000>;
56
57                 bank-width = <2>;
58                 device-width = <2>;
59                 #address-cells = <1>;
60                 #size-cells = <1>;
61
62                 partition@0 {
63                         label = "u-boot";
64                         reg = <0x0 0x30000>;
65                         read-only;
66                 };
67
68                 partition@30000 {
69                         label = "u-boot-env";
70                         reg = <0x30000 0x10000>;
71                         read-only;
72                 };
73
74                 factory: partition@40000 {
75                         label = "factory";
76                         reg = <0x40000 0x10000>;
77                         read-only;
78                 };
79
80                 partition@50000 {
81                         label = "firmware";
82                         reg = <0x50000 0x7b0000>;
83                 };
84         };
85
86         ethernet@10100000 {
87                 status = "okay";
88         };
89
90         esw@10110000 {
91                 status = "okay";
92                 ralink,portmap = <0x2f>;
93         };
94
95         wmac@10180000 {
96                 status = "okay";
97         };
98
99         otg@101c0000 {
100                 status = "okay";
101         };
102 };