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