ramips: cleanup SPI flash device tree properties usage
[lede.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                 spi-max-frequency = <10000000>;
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                         label = "firmware";
100                         reg = <0x50000 0x7b0000>;
101                 };
102         };
103 };
104
105 &ethernet {
106         mtd-mac-address = <&factory 0x4>;
107 };
108
109 &esw {
110         mediatek,portmap = <0x2f>;
111 };
112
113 &wmac {
114         ralink,mtd-eeprom = <&factory 0>;
115 };
116
117 &ehci {
118         status = "okay";
119 };
120
121 &ohci {
122         status = "okay";
123 };