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