]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/OY-0001.dts
Import libedit 2019-09-10
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / OY-0001.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6         compatible = "ralink,mt7620a-soc";
7         model = "OY-0001";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         gpio-leds {
14                 compatible = "gpio-leds";
15
16                 powerled {
17                         label = "oy-0001:green:power";
18                         gpios = <&gpio0 9 1>;
19                 };
20
21                 wifiled {
22                         label = "oy-0001:green:wifi";
23                         gpios = <&gpio3 0 1>;
24                 };
25         };
26
27         gpio-keys-polled {
28                 compatible = "gpio-keys-polled";
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 poll-interval = <20>;
32
33                 s1 {
34                         label = "reset";
35                         gpios = <&gpio0 1 1>;
36                         linux,code = <0x198>;
37                 };
38         };
39 };
40
41 &gpio2 {
42         status = "okay";
43 };
44
45 &gpio3 {
46         status = "okay";
47 };
48
49 &spi0 {
50         status = "okay";
51
52         m25p80@0 {
53                 #address-cells = <1>;
54                 #size-cells = <1>;
55                 compatible = "jedec,spi-nor";
56                 reg = <0>;
57                 linux,modalias = "m25p80", "w25q128";
58                 spi-max-frequency = <10000000>;
59
60                 partition@0 {
61                         label = "u-boot";
62                         reg = <0x0 0x30000>;
63                         read-only;
64                 };
65
66                 partition@30000 {
67                         label = "u-boot-env";
68                         reg = <0x30000 0x10000>;
69                         read-only;
70                 };
71
72                 factory: partition@40000 {
73                         label = "factory";
74                         reg = <0x40000 0x10000>;
75                         read-only;
76                 };
77
78                 partition@50000 {
79                         label = "firmware";
80                         reg = <0x50000 0xfb0000>;
81                 };
82         };
83 };
84
85 &pinctrl {
86         state_default: pinctrl0 {
87                 gpio {
88                         ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
89                         ralink,function = "gpio";
90                 };
91         };
92 };
93
94 &ethernet {
95         pinctrl-names = "default";
96         pinctrl-0 = <&ephy_pins>;
97         mediatek,portmap = "llllw";
98 };
99
100 &gsw {
101         mediatek,port4 = "ephy";
102 };
103
104 &wmac {
105         ralink,mtd-eeprom = <&factory 0>;
106 };
107
108 &sdhci {
109         status = "okay";
110 };
111
112 &ehci {
113         status = "okay";
114 };
115
116 &ohci {
117         status = "okay";
118 };
119
120 &pcie {
121         status = "okay";
122 };