]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/MZK-W04N-XX.dts
Import DTS files from Linux 5.4
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / MZK-W04N-XX.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 / {
6         compatible = "MZK-WNH", "ralink,rt2880-soc";
7         model = "Planex MZK-WNH";
8
9 /*
10         memory@0 {
11                 device_type = "memory";
12                 reg = <0x0 0x2000000>;
13         };
14 */
15
16         cfi@1f000000 {
17                 compatible = "cfi-flash";
18                 reg = <0x1f000000 0x800000>;
19                 bank-width = <2>;
20                 device-width = <2>;
21                 #address-cells = <1>;
22                 #size-cells = <1>;
23
24                 partition@0 {
25                         label = "Bootloader";
26                         reg = <0x0 0x30000>;
27                         read-only;
28                 };
29
30                 devdata: partition@30000 {
31                         label = "Config";
32                         reg = <0x00030000 0x00010000>;
33                         read-only;
34                 };
35
36                 factory: partition@40000 {
37                         label = "Factory";
38                         reg = <0x00040000 0x00010000>;
39                         read-only;
40                 };
41                 kernel: partition@50000 {
42                         label = "kernel";
43                         reg = <0x00050000 0x000f0000>;
44                         read-only;
45                 };
46                 rootfs: partition@160000 {
47                         label = "rootfs";
48                         reg = <0x00140000 0x002c0000>;
49                         read-only;
50                 };
51                 upgrade: partition@400000 {
52                         label = "upgrade";
53                         reg = <0x00050000 0x003b0000>;
54                         read-only;
55                 };
56
57         };
58
59         gpio-leds {
60                 compatible = "gpio-leds";
61
62                 status {
63                         label = "status";
64                         gpios = <&gpio0 12 0>;
65                 };
66
67         };
68         gpio-keys-polled {
69                 compatible = "gpio-keys-polled";
70                 #address-cells = <1>;
71                 #size-cells = <0>;
72                 poll-interval = <20>;
73
74                 reset {
75                         label = "reset";
76                         gpios = <&gpio0 10 1>;
77                         linux,code = <0x198>;
78                 };
79
80         };
81
82         ip17x@0 {
83                 compatible = "icplus,ip17x";
84         };
85
86 };
87
88 &ethernet {
89         mtd-mac-address = <&factory 0x28>;
90 };
91
92 &wmac {
93         ralink,mtd-eeprom = <&factory 0>;
94 };