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