ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-EX300NP.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-ex300np", "ralink,mt7620a-soc";
10 model = "Planex MZK-EX300NP";
11
12 aliases {
13 led-status = &led_wps;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 wifi {
20 label = "mzk-ex300np:green:wifi";
21 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
22 };
23
24 led_wps: wps {
25 label = "mzk-ex300np:green:wps";
26 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
27 };
28
29 rep {
30 label = "mzk-ex300np:blue:rep";
31 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
32 };
33
34 wifi1 {
35 label = "mzk-ex300np:blue:wifi1";
36 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
37 };
38
39 wifi2 {
40 label = "mzk-ex300np:blue:wifi2";
41 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
42 };
43
44 wifi3 {
45 label = "mzk-ex300np:blue:wifi3";
46 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
47 };
48 };
49
50 gpio-keys-polled {
51 compatible = "gpio-keys-polled";
52 poll-interval = <20>;
53
54 reset {
55 label = "reset";
56 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
58 };
59
60 wps {
61 label = "wps";
62 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
63 linux,code = <KEY_RFKILL>;
64 };
65 };
66 };
67
68 &gpio1 {
69 status = "okay";
70 };
71
72 &gpio3 {
73 status = "okay";
74 };
75
76 &spi0 {
77 status = "okay";
78
79 m25p80@0 {
80 #address-cells = <1>;
81 #size-cells = <1>;
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 spi-max-frequency = <10000000>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x0 0x30000>;
89 read-only;
90 };
91
92 partition@30000 {
93 label = "u-boot-env";
94 reg = <0x30000 0x10000>;
95 read-only;
96 };
97
98 factory: partition@40000 {
99 label = "factory";
100 reg = <0x40000 0x10000>;
101 read-only;
102 };
103
104 partition@50000 {
105 label = "firmware";
106 reg = <0x50000 0x730000>;
107 };
108
109 partition@780000 {
110 label = "Udata";
111 reg = <0x780000 0x80000>;
112 };
113 };
114 };
115
116 &pinctrl {
117 state_default: pinctrl0 {
118 gpio {
119 ralink,group = "i2c", "spi refclk", "rgmii1", "wled";
120 ralink,function = "gpio";
121 };
122 };
123 };
124
125 &ethernet {
126 pinctrl-names = "default";
127 pinctrl-0 = <&ephy_pins>;
128 mtd-mac-address = <&factory 0x4>;
129 mediatek,portmap = "llllw";
130 };
131
132 &wmac {
133 ralink,mtd-eeprom = <&factory 0>;
134 };