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