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