mediatek: copy files-6.1 to files-6.6
[openwrt/staging/stintel.git] / target / linux / mediatek / files-6.6 / arch / arm64 / boot / dts / mediatek / mt7988a-rfb.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2022 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
5 */
6
7 /dts-v1/;
8 #include "mt7988a.dtsi"
9 #include <dt-bindings/pinctrl/mt65xx.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/regulator/richtek,rt5190a-regulator.h>
12
13 / {
14 model = "MediaTek MT7988A Reference Board";
15 compatible = "mediatek,mt7988a-rfb",
16 "mediatek,mt7988";
17
18 chosen {
19 bootargs = "console=ttyS0,115200n1 loglevel=8 \
20 earlycon=uart8250,mmio32,0x11000000 \
21 pci=pcie_bus_perf";
22 };
23
24 memory {
25 reg = <0 0x40000000 0 0x40000000>;
26 };
27 };
28
29 &eth {
30 pinctrl-0 = <&mdio0_pins>;
31 pinctrl-names = "default";
32 };
33
34 &gmac0 {
35 status = "okay";
36 };
37
38 &cpu0 {
39 proc-supply = <&rt5190_buck3>;
40 };
41
42 &cpu1 {
43 proc-supply = <&rt5190_buck3>;
44 };
45
46 &cpu2 {
47 proc-supply = <&rt5190_buck3>;
48 };
49
50 &cpu3 {
51 proc-supply = <&rt5190_buck3>;
52 };
53
54 &cci {
55 proc-supply = <&rt5190_buck3>;
56 };
57
58 &eth {
59 status = "okay";
60 };
61
62 &switch {
63 status = "okay";
64 };
65
66 &gsw_phy0 {
67 pinctrl-names = "gbe-led";
68 pinctrl-0 = <&gbe0_led0_pins>;
69 };
70
71 &gsw_phy0_led0 {
72 status = "okay";
73 color = <LED_COLOR_ID_GREEN>;
74 };
75
76 &gsw_phy1 {
77 pinctrl-names = "gbe-led";
78 pinctrl-0 = <&gbe1_led0_pins>;
79 };
80
81 &gsw_phy1_led0 {
82 status = "okay";
83 color = <LED_COLOR_ID_GREEN>;
84 };
85
86 &gsw_phy2 {
87 pinctrl-names = "gbe-led";
88 pinctrl-0 = <&gbe2_led0_pins>;
89 };
90
91 &gsw_phy2_led0 {
92 status = "okay";
93 color = <LED_COLOR_ID_GREEN>;
94 };
95
96 &gsw_phy3 {
97 pinctrl-names = "gbe-led";
98 pinctrl-0 = <&gbe3_led0_pins>;
99 };
100
101 &gsw_phy3_led0 {
102 status = "okay";
103 color = <LED_COLOR_ID_GREEN>;
104 };
105
106 &i2c0 {
107 pinctrl-names = "default";
108 pinctrl-0 = <&i2c0_pins>;
109 status = "okay";
110
111 rt5190a_64: rt5190a@64 {
112 compatible = "richtek,rt5190a";
113 reg = <0x64>;
114 /*interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;*/
115 vin2-supply = <&rt5190_buck1>;
116 vin3-supply = <&rt5190_buck1>;
117 vin4-supply = <&rt5190_buck1>;
118
119 regulators {
120 rt5190_buck1: buck1 {
121 regulator-name = "rt5190a-buck1";
122 regulator-min-microvolt = <5090000>;
123 regulator-max-microvolt = <5090000>;
124 regulator-allowed-modes =
125 <RT5190A_OPMODE_AUTO RT5190A_OPMODE_FPWM>;
126 regulator-boot-on;
127 regulator-always-on;
128 };
129 buck2 {
130 regulator-name = "vcore";
131 regulator-min-microvolt = <600000>;
132 regulator-max-microvolt = <1400000>;
133 regulator-boot-on;
134 regulator-always-on;
135 };
136 rt5190_buck3: buck3 {
137 regulator-name = "vproc";
138 regulator-min-microvolt = <600000>;
139 regulator-max-microvolt = <1400000>;
140 regulator-boot-on;
141 };
142 buck4 {
143 regulator-name = "rt5190a-buck4";
144 regulator-min-microvolt = <850000>;
145 regulator-max-microvolt = <850000>;
146 regulator-allowed-modes =
147 <RT5190A_OPMODE_AUTO RT5190A_OPMODE_FPWM>;
148 regulator-boot-on;
149 regulator-always-on;
150 };
151 ldo {
152 regulator-name = "rt5190a-ldo";
153 regulator-min-microvolt = <1200000>;
154 regulator-max-microvolt = <1200000>;
155 regulator-boot-on;
156 regulator-always-on;
157 };
158 };
159 };
160 };
161
162 &pcie0 {
163 status = "okay";
164 };
165
166 &pcie1 {
167 status = "okay";
168 };
169
170 &pcie2 {
171 status = "disabled";
172 };
173
174 &pcie3 {
175 status = "okay";
176 };
177
178 &ssusb0 {
179 status = "okay";
180 };
181
182 &ssusb1 {
183 status = "okay";
184 };
185
186 &tphy {
187 status = "okay";
188 };
189
190 &uart0 {
191 status = "okay";
192 };
193
194 &watchdog {
195 status = "okay";
196 };
197
198 &xphy {
199 status = "okay";
200 };