]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/SAP-G3200U3.dts
MFV r352731:
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / SAP-G3200U3.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "STORYLiNK SAP-G3200U3";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x8000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,57600";
16         };
17
18         gpio-leds {
19                 compatible = "gpio-leds";
20
21                 usb {
22                         label = "sap-g3200u3:green:usb";
23                         gpios = <&gpio0 13 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                 reset {
34                         label = "reset";
35                         gpios = <&gpio0 16 1>;
36                         linux,code = <0x198>;
37                 };
38
39                 rfkill {
40                         label = "rfkill";
41                         gpios = <&gpio0 14 1>;
42                         linux,code = <0xf7>;
43                 };
44         };
45 };
46
47 &spi0 {
48         status = "okay";
49
50         m25p80@0 {
51                 #address-cells = <1>;
52                 #size-cells = <1>;
53                 compatible = "jedec,spi-nor";
54                 reg = <0>;
55                 linux,modalias = "m25p80", "en25q64";
56                 spi-max-frequency = <10000000>;
57
58                 partition@0 {
59                         label = "u-boot";
60                         reg = <0x0 0x30000>;
61                         read-only;
62                 };
63
64                 partition@30000 {
65                         label = "u-boot-env";
66                         reg = <0x30000 0x1000>;
67                         read-only;
68                 };
69
70                 partition@31000 {
71                         label = "config";
72                         reg = <0x31000 0xf000>;
73                         read-only;
74                 };
75
76                 factory: partition@40000 {
77                         label = "factory";
78                         reg = <0x40000 0x10000>;
79                         read-only;
80                 };
81
82                 partition@50000 {
83                         label = "firmware";
84                         reg = <0x50000 0x7b0000>;
85                 };
86         };
87 };
88
89 &pcie {
90         status = "okay";
91
92         pcie0 {
93                 mt76@0,0 {
94                         reg = <0x0000 0 0 0 0>;
95                         device_type = "pci";
96                         mediatek,mtd-eeprom = <&factory 0x8000>;
97                         mediatek,2ghz = <0>;
98                 };
99         };
100
101         pcie1 {
102                 mt76@1,0 {
103                         reg = <0x0000 0 0 0 0>;
104                         device_type = "pci";
105                         mediatek,mtd-eeprom = <&factory 0x0000>;
106                         mediatek,5ghz = <0>;
107                 };
108         };
109 };
110
111 &ethernet {
112         mtd-mac-address = <&factory 0xe006>;
113 };
114
115 &pinctrl {
116         state_default: pinctrl0 {
117                 gpio {
118                         ralink,group = "uart3", "jtag";
119                         ralink,function = "gpio";
120                 };
121         };
122 };