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