]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/MZK-DP150N.dts
MFV r349134:
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / MZK-DP150N.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "MZK-DP150N", "ralink,rt5350-soc";
7         model = "Planex MZK-DP150N";
8
9         gpio-leds {
10                 compatible = "gpio-leds";
11
12                 power {
13                         label = "mzk-dp150n:green:power";
14                         gpios = <&gpio0 9 1>;
15                 };
16         };
17
18         gpio-keys-polled {
19                 compatible = "gpio-keys-polled";
20                 #address-cells = <1>;
21                 #size-cells = <0>;
22                 poll-interval = <20>;
23
24                 reset {
25                         label = "reset";
26                         gpios = <&gpio0 10 1>;
27                         linux,code = <0x198>;
28                 };
29         };
30 };
31
32 &gpio1 {
33         status = "okay";
34 };
35
36 &spi0 {
37         status = "okay";
38
39         m25p80@0 {
40                 #address-cells = <1>;
41                 #size-cells = <1>;
42                 compatible = "jedec,spi-nor";
43                 reg = <0>;
44                 linux,modalias = "m25p80", "s25fl064k";
45                 spi-max-frequency = <10000000>;
46
47                 partition@0 {
48                         label = "uboot";
49                         reg = <0x0 0x30000>;
50                         read-only;
51                 };
52
53                 partition@30000 {
54                         label = "uboot-env";
55                         reg = <0x30000 0x10000>;
56                         read-only;
57                 };
58
59                 factory: partition@40000 {
60                         label = "factory";
61                         reg = <0x40000 0x10000>;
62                         read-only;
63                 };
64
65                 partition@50000 {
66                         label = "firmware";
67                         reg = <0x50000 0x3b0000>;
68                 };
69         };
70 };
71
72 &spi1 {
73         spidev@0 {
74                 compatible = "linux,spidev";
75                 spi-max-frequency = <10000000>;
76                 reg = <0>;
77         };
78 };
79
80 &pinctrl {
81         state_default: pinctrl0 {
82                 gpio {
83                         ralink,group = "jtag", "uartf", "led";
84                         ralink,function = "gpio";
85                 };
86         };
87 };
88
89 &ethernet {
90         mtd-mac-address = <&factory 0x4>;
91 };
92
93 &esw {
94         mediatek,portmap = <0x17>;
95 };
96
97 &wmac {
98         ralink,mtd-eeprom = <&factory 0>;
99         ralink,led-polarity = <1>;
100 };