Bump version to v1.5 and start work on adding 4.19 kernel suppot
[librecmc/librecmc.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                 spi-max-frequency = <10000000>;
87
88                 partition@0 {
89                         label = "u-boot";
90                         reg = <0x0 0x30000>;
91                         read-only;
92                 };
93
94                 partition@30000 {
95                         label = "u-boot-env";
96                         reg = <0x30000 0x10000>;
97                         read-only;
98                 };
99
100                 factory: partition@40000 {
101                         label = "factory";
102                         reg = <0x40000 0x10000>;
103                         read-only;
104                 };
105
106                 partition@50000 {
107                         label = "firmware";
108                         reg = <0x50000 0x730000>;
109                 };
110
111                 partition@780000 {
112                         label = "Udata";
113                         reg = <0x780000 0x80000>;
114                 };
115         };
116 };
117
118 &pinctrl {
119         state_default: pinctrl0 {
120                 gpio {
121                         ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
122                         ralink,function = "gpio";
123                 };
124         };
125 };
126
127 &ethernet {
128         pinctrl-names = "default";
129         pinctrl-0 = <&ephy_pins>;
130         mtd-mac-address = <&factory 0x4>;
131         mediatek,portmap = "llllw";
132 };
133
134 &wmac {
135         ralink,mtd-eeprom = <&factory 0>;
136 };
137
138 &pcie {
139         status = "okay";
140
141         pcie-bridge {
142                 mt76@0,0 {
143                         reg = <0x0000 0 0 0 0>;
144                         device_type = "pci";
145                         mediatek,mtd-eeprom = <&factory 0x8000>;
146                         mediatek,2ghz = <0>;
147                 };
148         };
149 };