ramips: fix pci/pcie related dtc warnings
[openwrt/staging/wigyori.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 #address-cells = <1>;
58 #size-cells = <0>;
59 poll-interval = <20>;
60
61 reset {
62 label = "reset";
63 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RESTART>;
65 };
66
67 wps {
68 label = "wps";
69 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
70 linux,code = <KEY_RFKILL>;
71 };
72 };
73 };
74
75 &gpio2 {
76 status = "okay";
77 };
78
79 &gpio3 {
80 status = "okay";
81 };
82
83 &spi0 {
84 status = "okay";
85
86 m25p80@0 {
87 #address-cells = <1>;
88 #size-cells = <1>;
89 compatible = "jedec,spi-nor";
90 reg = <0>;
91 spi-max-frequency = <10000000>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0 0x30000>;
96 read-only;
97 };
98
99 partition@30000 {
100 label = "u-boot-env";
101 reg = <0x30000 0x10000>;
102 read-only;
103 };
104
105 factory: partition@40000 {
106 label = "factory";
107 reg = <0x40000 0x10000>;
108 read-only;
109 };
110
111 partition@50000 {
112 label = "firmware";
113 reg = <0x50000 0x730000>;
114 };
115
116 partition@780000 {
117 label = "Udata";
118 reg = <0x780000 0x80000>;
119 };
120 };
121 };
122
123 &pinctrl {
124 state_default: pinctrl0 {
125 gpio {
126 ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
127 ralink,function = "gpio";
128 };
129 };
130 };
131
132 &ethernet {
133 pinctrl-names = "default";
134 pinctrl-0 = <&ephy_pins>;
135 mtd-mac-address = <&factory 0x4>;
136 mediatek,portmap = "llllw";
137 };
138
139 &wmac {
140 ralink,mtd-eeprom = <&factory 0>;
141 };
142
143 &pcie {
144 status = "okay";
145 };
146
147 &pcie0 {
148 mt76@0,0 {
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&factory 0x8000>;
151 };
152 };