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