ramips: Use dts alias based status led
[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 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 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <20>;
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42
43 cfi@1f000000 {
44 compatible = "cfi-flash";
45 reg = <0x1f000000 0x800000>;
46 bank-width = <2>;
47 device-width = <2>;
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x0 0x30000>;
54 read-only;
55 };
56
57 partition@30000 {
58 label = "u-boot-env";
59 reg = <0x30000 0x10000>;
60 read-only;
61 };
62
63 factory: partition@40000 {
64 label = "factory";
65 reg = <0x40000 0x10000>;
66 read-only;
67 };
68
69 partition@50000 {
70 label = "firmware";
71 reg = <0x50000 0x7b0000>;
72 };
73 };
74 };
75
76 &pinctrl {
77 state_default: pinctrl0 {
78 gpio {
79 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
80 ralink,function = "gpio";
81 };
82 };
83 };
84
85 &ethernet {
86 mtd-mac-address = <&factory 0x28>;
87 };
88
89 &esw {
90 mediatek,portmap = <0x2f>;
91 };
92
93 &wmac {
94 ralink,mtd-eeprom = <&factory 0>;
95 };
96
97 &otg {
98 status = "okay";
99 };