ramips: use rfkill for wps button on wlan only boards
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-EX750NP.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Planex MZK-EX750NP";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 power {
13 label = "mzk-ex750np:red:power";
14 gpios = <&gpio0 14 1>;
15 };
16
17 wifi {
18 label = "mzk-ex750np:red:wifi";
19 gpios = <&gpio3 0 1>;
20 };
21
22 wps {
23 label = "mzk-ex750np:green:wps";
24 gpios = <&gpio0 10 1>;
25 };
26
27 rep {
28 label = "mzk-ex750np:blue:rep";
29 gpios = <&gpio2 16 1>;
30 };
31
32 wifi1 {
33 label = "mzk-ex750np:blue:wifi1";
34 gpios = <&gpio2 19 1>;
35 };
36
37 wifi2 {
38 label = "mzk-ex750np:blue:wifi2";
39 gpios = <&gpio2 18 1>;
40 };
41
42 wifi3 {
43 label = "mzk-ex750np:blue:wifi3";
44 gpios = <&gpio2 17 1>;
45 };
46 };
47
48 gpio-keys-polled {
49 compatible = "gpio-keys-polled";
50 #address-cells = <1>;
51 #size-cells = <0>;
52 poll-interval = <20>;
53
54 reset {
55 label = "reset";
56 gpios = <&gpio0 9 1>;
57 linux,code = <0x198>;
58 };
59
60 wps {
61 label = "wps";
62 gpios = <&gpio0 13 0>;
63 linux,code = <0xf7>;
64 };
65 };
66 };
67
68 &gpio2 {
69 status = "okay";
70 };
71
72 &gpio3 {
73 status = "okay";
74 };
75
76 &spi0 {
77 status = "okay";
78
79 m25p80@0 {
80 #address-cells = <1>;
81 #size-cells = <1>;
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 linux,modalias = "m25p80", "w25q64";
85 spi-max-frequency = <10000000>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x30000>;
90 read-only;
91 };
92
93 partition@30000 {
94 label = "u-boot-env";
95 reg = <0x30000 0x10000>;
96 read-only;
97 };
98
99 factory: partition@40000 {
100 label = "factory";
101 reg = <0x40000 0x10000>;
102 read-only;
103 };
104
105 partition@50000 {
106 label = "firmware";
107 reg = <0x50000 0x730000>;
108 };
109
110 partition@780000 {
111 label = "Udata";
112 reg = <0x780000 0x80000>;
113 };
114 };
115 };
116
117 &pinctrl {
118 state_default: pinctrl0 {
119 gpio {
120 ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
121 ralink,function = "gpio";
122 };
123 };
124 };
125
126 &ethernet {
127 pinctrl-names = "default";
128 pinctrl-0 = <&ephy_pins>;
129 mtd-mac-address = <&factory 0x4>;
130 mediatek,portmap = "llllw";
131 };
132
133 &wmac {
134 ralink,mtd-eeprom = <&factory 0>;
135 };
136
137 &pcie {
138 status = "okay";
139
140 pcie-bridge {
141 mt76@0,0 {
142 reg = <0x0000 0 0 0 0>;
143 device_type = "pci";
144 mediatek,mtd-eeprom = <&factory 0x8000>;
145 mediatek,2ghz = <0>;
146 };
147 };
148 };