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