ramips: remove model name from LED labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_omnima_miniembplug.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "omnima,miniembplug", "ralink,rt5350-soc";
8 model = "Omnima MiniEMBPlug";
9
10 leds {
11 compatible = "gpio-leds";
12
13 wlan {
14 label = "red:wlan";
15 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
16 };
17
18 mobile {
19 label = "green:mobile";
20 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
21 trigger-sources = <&ohci_port1>, <&ehci_port1>;
22 linux,default-trigger = "usbport";
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys-polled";
28 poll-interval = <20>;
29
30 wps {
31 label = "wps";
32 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
34 };
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WPS_BUTTON>;
40 };
41
42 mode-one {
43 label = "mode1";
44 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47
48 mode-two {
49 label = "mode2";
50 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 };
53 };
54 };
55
56 &state_default {
57 gpio {
58 groups = "i2c", "jtag", "uartf";
59 function = "gpio";
60 };
61 };
62
63 &gpio0 {
64 status = "okay";
65 };
66
67 &spi0 {
68 status = "okay";
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@40000 {
93 label = "factory";
94 reg = <0x40000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0x7b0000>;
102 };
103 };
104 };
105 };
106
107 &ethernet {
108 mtd-mac-address = <&factory 0x4>;
109 };
110
111 &esw {
112 mediatek,portmap = <0x2f>;
113 };
114
115 &wmac {
116 ralink,mtd-eeprom = <&factory 0x0>;
117 };
118
119 &ehci {
120 status = "okay";
121 };
122
123 &ohci {
124 status = "okay";
125 };