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