79eb6c3f4a0a4e0194425835fbcd7d71211fccb5
[openwrt/staging/hauke.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 compatible = "nvmem-cells";
90 label = "factory";
91 reg = <0x40000 0x10000>;
92 #address-cells = <1>;
93 #size-cells = <1>;
94 read-only;
95
96 eeprom_factory_0: eeprom@0 {
97 reg = <0x0 0x200>;
98 };
99
100 macaddr_factory_4: macaddr@4 {
101 reg = <0x4 0x6>;
102 };
103 };
104
105 partition@50000 {
106 compatible = "denx,uimage";
107 label = "firmware";
108 reg = <0x50000 0x7b0000>;
109 };
110 };
111 };
112 };
113
114 &ethernet {
115 nvmem-cells = <&macaddr_factory_4>;
116 nvmem-cell-names = "mac-address";
117 };
118
119 &esw {
120 mediatek,portmap = <0x2f>;
121 };
122
123 &wmac {
124 nvmem-cells = <&eeprom_factory_0>;
125 nvmem-cell-names = "eeprom";
126 };