]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/MZK-W300NH2.dts
Merge bmake-20180512
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / MZK-W300NH2.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "MZK-W300NH2", "ralink,rt3052-soc";
7         model = "Planex MZK-W300NH2";
8
9         cfi@1f000000 {
10                 compatible = "cfi-flash";
11                 reg = <0x1f000000 0x800000>;
12                 bank-width = <2>;
13                 device-width = <2>;
14                 #address-cells = <1>;
15                 #size-cells = <1>;
16
17                 partition@0 {
18                         label = "u-boot";
19                         reg = <0x0 0x30000>;
20                         read-only;
21                 };
22
23                 partition@30000 {
24                         label = "u-boot-env";
25                         reg = <0x30000 0x10000>;
26                         read-only;
27                 };
28
29                 factory: partition@40000 {
30                         label = "factory";
31                         reg = <0x40000 0x10000>;
32                         read-only;
33                 };
34
35                 partition@3e0000 {
36                         label = "cimage";
37                         reg = <0x3e0000 0x20000>;
38                         read-only;
39                 };
40
41                 partition@50000 {
42                         label = "firmware";
43                         reg = <0x50000 0x390000>;
44                 };
45         };
46
47         gpio-leds {
48                 compatible = "gpio-leds";
49
50                 power {
51                         label = "mzk-w300nh2:green:power";
52                         gpios = <&gpio0 9 1>;
53                 };
54
55                 wlan {
56                         label = "mzk-w300nh2:amber:wlan";
57                         gpios = <&gpio0 14 1>;
58                 };
59
60                 wps {
61                         label = "mzk-w300nh2:amber:wps";
62                         gpios = <&gpio0 11 1>;
63                 };
64         };
65
66         gpio-keys-polled {
67                 compatible = "gpio-keys-polled";
68                 #address-cells = <1>;
69                 #size-cells = <0>;
70                 poll-interval = <20>;
71
72                 wps {
73                         label = "wps";
74                         gpios = <&gpio0 12 1>;
75                         linux,code = <0x211>;
76                 };
77
78                 reset {
79                         label = "reset";
80                         gpios = <&gpio0 0 1>;
81                         linux,code = <0x198>;
82                 };
83
84                 rt {
85                         label = "rt";
86                         gpios = <&gpio0 13 1>;
87                         linux,code = <0x100>;
88                 };
89         };
90 };
91
92 &pinctrl {
93         state_default: pinctrl0 {
94                 gpio {
95                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
96                         ralink,function = "gpio";
97                 };
98         };
99 };
100
101 &ethernet {
102         mtd-mac-address = <&factory 0x4>;
103 };
104
105 &esw {
106         mediatek,portmap = <0x2f>;
107 };
108
109 &wmac {
110         ralink,mtd-eeprom = <&factory 0>;
111 };