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