ramips: fix dtc warnings
[openwrt/openwrt.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 = "red:power";
22 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
23 };
24
25 wifi {
26 label = "red:wifi";
27 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28 };
29
30 wps {
31 label = "green:wps";
32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
33 };
34
35 rep {
36 label = "blue:rep";
37 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
38 };
39
40 wifi1 {
41 label = "blue:wifi1";
42 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
43 };
44
45 wifi2 {
46 label = "blue:wifi2";
47 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
48 };
49
50 wifi3 {
51 label = "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 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 eeprom_factory_0: eeprom@0 {
117 reg = <0x0 0x200>;
118 };
119
120 eeprom_factory_8000: eeprom@8000 {
121 reg = <0x8000 0x200>;
122 };
123
124 macaddr_factory_4: macaddr@4 {
125 reg = <0x4 0x6>;
126 };
127 };
128 };
129
130 partition@50000 {
131 compatible = "denx,uimage";
132 label = "firmware";
133 reg = <0x50000 0x730000>;
134 };
135
136 partition@780000 {
137 label = "Udata";
138 reg = <0x780000 0x80000>;
139 };
140 };
141 };
142 };
143
144 &state_default {
145 gpio {
146 groups = "uartf", "nd_sd", "rgmii2", "wled";
147 function = "gpio";
148 };
149 };
150
151 &ethernet {
152 pinctrl-names = "default";
153 pinctrl-0 = <&ephy_pins>;
154
155 nvmem-cells = <&macaddr_factory_4>;
156 nvmem-cell-names = "mac-address";
157
158 mediatek,portmap = "llllw";
159 };
160
161 &wmac {
162 nvmem-cells = <&eeprom_factory_0>;
163 nvmem-cell-names = "eeprom";
164 };
165
166 &pcie {
167 status = "okay";
168 };
169
170 &pcie0 {
171 mt76@0,0 {
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&eeprom_factory_8000>;
174 nvmem-cell-names = "eeprom";
175 };
176 };