]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/WRH-300CR.dts
Update tcsh to 6.21.00.
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / WRH-300CR.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 / {
6         compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
7         model = "ELECOM WRH-300CR";
8
9                 gpio-leds {
10                 compatible = "gpio-leds";
11
12                 wps {
13                         label = "wrh-300cr:green:wps";
14                         gpios = <&gpio2 0 1>;
15                 };
16
17                 ethernet {
18                         label = "wrh-300cr:green:ethernet";
19                         gpios = <&gpio2 3 1>;
20                 };
21
22                 wlan {
23                         label = "wrh-300cr:green:wlan";
24                         gpios = <&gpio3 0 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                 wps {
41                         label = "wps";
42                         gpios = <&gpio0 2 1>;
43                         linux,code = <0x211>;
44                 };
45         };
46 };
47
48 &gpio1 {
49         status = "okay";
50 };
51
52 &gpio2 {
53         status = "okay";
54 };
55
56 &gpio3 {
57         status = "okay";
58 };
59
60 &spi0 {
61         status = "okay";
62
63         m25p80@0 {
64                 #address-cells = <1>;
65                 #size-cells = <1>;
66                 compatible = "jedec,spi-nor";
67                 reg = <0>;
68                 linux,modalias = "m25p80", "mx25l12805d";
69                 spi-max-frequency = <10000000>;
70
71                 partition@0 {
72                         label = "u-boot";
73                         reg = <0x0 0x30000>;
74                         read-only;
75                 };
76
77                 partition@30000 {
78                         label = "u-boot-env";
79                         reg = <0x30000 0x10000>;
80                 };
81
82                 factory: partition@40000 {
83                         label = "factory";
84                         reg = <0x40000 0x10000>;
85                         read-only;
86                 };
87
88                 partition@50000 {
89                         label = "recover";
90                         reg = <0x50000 0x1c0000>;
91                         read-only;
92                 };
93
94                 partition@210000 {
95                         label = "firmware";
96                         reg = <0x210000 0xdf0000>;
97                 };
98         };
99 };
100
101 &ehci {
102         status = "okay";
103 };
104
105 &ohci {
106         status = "okay";
107 };
108
109 &ethernet {
110         mtd-mac-address = <&factory 0x2e>;
111         mediatek,portmap = "llllw";
112 };
113
114 &wmac {
115         ralink,mtd-eeprom = <&factory 0>;
116 };
117
118 &pinctrl {
119         state_default: pinctrl0 {
120                 default {
121                         ralink,group = "i2c", "ephy", "wled";
122                         ralink,function = "gpio";
123                 };
124         };
125 };