blob: b5b094a960122ecfbb3ae8efec98744839f8deb2 [file] [log] [blame]
developer24455dd2021-10-28 10:55:41 +08001/dts-v1/;
2#include "mt7981-fpga.dtsi"
3/ {
4 model = "MediaTek MT7981 FPGA";
5 compatible = "mediatek,mt7981-fpga-emmc";
6 chosen {
7 bootargs = "console=ttyS0,115200n1 loglevel=8 \
8 earlycon=uart8250,mmio32,0x11002000 \
developer4bd45c72023-03-15 17:20:06 +08009 root=PARTLABEL=rootfs rootwait rootfstype=squashfs,f2fs";
developer24455dd2021-10-28 10:55:41 +080010 };
11
12 memory {
13 // fpga ddr2: 128MB*2
14 reg = <0 0x40000000 0 0x10000000>;
15 };
16
17 wsys_adie: wsys_adie@0 {
18 // fpga cases need to manual change adie_id / sku_type for dvt only
19 compatible = "mediatek,rebb-mt7981-adie";
20 adie_id = <7976>;
21 sku_type = <3000>;
22 };
23
24 reg_3p3v: regulator-3p3v {
25 compatible = "regulator-fixed";
26 regulator-name = "fixed-3.3V";
27 regulator-min-microvolt = <3300000>;
28 regulator-max-microvolt = <3300000>;
29 regulator-boot-on;
30 regulator-always-on;
31 };
32};
33
34&uart0 {
35 status = "okay";
36};
37
38&spi1 {
39 pinctrl-names = "default";
40 /* pin shared with snfi */
41 pinctrl-0 = <&spic_pins>;
42 status = "disabled";
43};
44
45&pcie {
46 pinctrl-names = "default";
47 pinctrl-0 = <&pcie_pins>;
48 status = "okay";
49};
50
51&pio {
52 pcie_pins: pcie-pins {
53 mux {
54 function = "pcie";
55 groups = "pcie_pereset", "pcie_clk", "pcie_wake";
56 };
57 };
58
59 spic_pins: spi1-pins {
60 mux {
61 function = "spi";
62 groups = "spi1_1";
63 };
64 };
65
66 mmc0_pins_default: mmc0-pins-default {
67 mux {
68 function = "flash";
69 groups = "emmc_45";
70 };
71 };
72
73 mmc0_pins_uhs: mmc0-pins-uhs {
74 mux {
75 function = "flash";
76 groups = "emmc_45";
77 };
78 };
79};
80
81&watchdog {
82 status = "disabled";
83};
84
85&mmc0 {
86 pinctrl-names = "default", "state_uhs";
87 pinctrl-0 = <&mmc0_pins_default>;
88 pinctrl-1 = <&mmc0_pins_uhs>;
89 bus-width = <8>;
90 max-frequency = <3000000>;
91 cap-mmc-highspeed;
92 vmmc-supply = <&reg_3p3v>;
93 non-removable;
94 status = "okay";
95};
96
97&eth {
98 status = "okay";
99
100 gmac0: mac@0 {
101 compatible = "mediatek,eth-mac";
102 reg = <0>;
103 phy-mode = "rgmii";
104
105 fixed-link {
106 speed = <100>;
107 full-duplex;
108 pause;
109 };
110 };
111
112 gmac1: mac@1 {
113 compatible = "mediatek,eth-mac";
114 reg = <1>;
115 phy-mode = "rgmii";
116
117 fixed-link {
118 speed = <100>;
119 full-duplex;
120 pause;
121 };
122 };
123
124 mdio: mdio-bus {
125 #address-cells = <1>;
126 #size-cells = <0>;
127 };
128};
129
130&hnat {
131 mtketh-wan = "eth1";
132 mtketh-lan = "eth0";
133 mtketh-max-gmac = <2>;
134 status = "okay";
135};