ramips: update device tree source files
[librecmc/librecmc.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         gpio-leds {
13                 compatible = "gpio-leds";
14
15                 power {
16                         label = "mzk-ex750np:red:power";
17                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
18                 };
19
20                 wifi {
21                         label = "mzk-ex750np:red:wifi";
22                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
23                 };
24
25                 wps {
26                         label = "mzk-ex750np:green:wps";
27                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
28                 };
29
30                 rep {
31                         label = "mzk-ex750np:blue:rep";
32                         gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
33                 };
34
35                 wifi1 {
36                         label = "mzk-ex750np:blue:wifi1";
37                         gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
38                 };
39
40                 wifi2 {
41                         label = "mzk-ex750np:blue:wifi2";
42                         gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
43                 };
44
45                 wifi3 {
46                         label = "mzk-ex750np:blue:wifi3";
47                         gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
48                 };
49         };
50
51         gpio-keys-polled {
52                 compatible = "gpio-keys-polled";
53                 #address-cells = <1>;
54                 #size-cells = <0>;
55                 poll-interval = <20>;
56
57                 reset {
58                         label = "reset";
59                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
60                         linux,code = <KEY_RESTART>;
61                 };
62
63                 wps {
64                         label = "wps";
65                         gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
66                         linux,code = <KEY_RFKILL>;
67                 };
68         };
69 };
70
71 &gpio2 {
72         status = "okay";
73 };
74
75 &gpio3 {
76         status = "okay";
77 };
78
79 &spi0 {
80         status = "okay";
81
82         m25p80@0 {
83                 #address-cells = <1>;
84                 #size-cells = <1>;
85                 compatible = "jedec,spi-nor";
86                 reg = <0>;
87                 spi-max-frequency = <10000000>;
88
89                 partition@0 {
90                         label = "u-boot";
91                         reg = <0x0 0x30000>;
92                         read-only;
93                 };
94
95                 partition@30000 {
96                         label = "u-boot-env";
97                         reg = <0x30000 0x10000>;
98                         read-only;
99                 };
100
101                 factory: partition@40000 {
102                         label = "factory";
103                         reg = <0x40000 0x10000>;
104                         read-only;
105                 };
106
107                 partition@50000 {
108                         label = "firmware";
109                         reg = <0x50000 0x730000>;
110                 };
111
112                 partition@780000 {
113                         label = "Udata";
114                         reg = <0x780000 0x80000>;
115                 };
116         };
117 };
118
119 &pinctrl {
120         state_default: pinctrl0 {
121                 gpio {
122                         ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
123                         ralink,function = "gpio";
124                 };
125         };
126 };
127
128 &ethernet {
129         pinctrl-names = "default";
130         pinctrl-0 = <&ephy_pins>;
131         mtd-mac-address = <&factory 0x4>;
132         mediatek,portmap = "llllw";
133 };
134
135 &wmac {
136         ralink,mtd-eeprom = <&factory 0>;
137 };
138
139 &pcie {
140         status = "okay";
141
142         pcie-bridge {
143                 mt76@0,0 {
144                         reg = <0x0000 0 0 0 0>;
145                         device_type = "pci";
146                         mediatek,mtd-eeprom = <&factory 0x8000>;
147                 };
148         };
149 };