ramips: DTS rework
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MINIEMBWIFI.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6 compatible = "MINIEMBWIFI", "ralink,rt3052-soc";
7 model = "Omnima MiniEMBWiFi";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "miniembwifi:green:status";
14 gpios = <&gpio0 9 1>;
15 };
16
17 wlan {
18 label = "miniembwifi:green:wlan";
19 gpios = <&gpio0 14 1>;
20 };
21 };
22
23 gpio-keys-polled {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 12 1>;
32 linux,code = <0x198>;
33 };
34 };
35
36 cfi@1f000000 {
37 compatible = "cfi-flash";
38 reg = <0x1f000000 0x800000>;
39 bank-width = <2>;
40 device-width = <2>;
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x30000>;
47 read-only;
48 };
49
50 partition@30000 {
51 label = "u-boot-env";
52 reg = <0x30000 0x10000>;
53 read-only;
54 };
55
56 factory: partition@40000 {
57 label = "factory";
58 reg = <0x40000 0x10000>;
59 read-only;
60 };
61
62 partition@50000 {
63 label = "firmware";
64 reg = <0x50000 0x7b0000>;
65 };
66 };
67 };
68
69 &pinctrl {
70 state_default: pinctrl0 {
71 gpio {
72 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
73 ralink,function = "gpio";
74 };
75 };
76 };
77
78 &ethernet {
79 mtd-mac-address = <&factory 0x28>;
80 };
81
82 &esw {
83 mediatek,portmap = <0x2f>;
84 };
85
86 &wmac {
87 ralink,mtd-eeprom = <&factory 0>;
88 };
89
90 &otg {
91 status = "okay";
92 };