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