b5583eb89271cdd6f95a469559d955672baa79d3
[openwrt/openwrt.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 &spi0 {
64 status = "okay";
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <10000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x50000 0x7b0000>;
98 };
99 };
100 };
101 };
102
103 &ethernet {
104 mtd-mac-address = <&factory 0x4>;
105 };
106
107 &esw {
108 mediatek,portmap = <0x2f>;
109 };
110
111 &wmac {
112 ralink,mtd-eeprom = <&factory 0x0>;
113 };
114
115 &ehci {
116 status = "okay";
117 };
118
119 &ohci {
120 status = "okay";
121 };