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