[PATCH 4/5] arm64: dts: mediatek: mt8173-elm: Tighten MT6397 regulator voltage ranges

Chen-Yu Tsai wenst at chromium.org
Mon Nov 9 06:12:31 PST 2026


Most of the MT6397 regulator voltage ranges in mt8173-elm.dtsi were
copied from the EVB dts, and are much wider than what the supplied
parts allow. Tighten them according to the board schematics, the
MT8173 datasheet, and the CPU OPP tables in mt8173.dtsi:

- buck_vpca15 supplies DVDD_DVFS2 (the Cortex-A53 cluster), rated for
  0.72V to 1.131V. Limit it to 0.725V to 1.125V, which still covers
  all the operating points in cluster0_opp, up to 1.125V.
- buck_vpca7 only supplies the 1.2V rail of the USB hub. Fix it at
  1.2V.
- buck_vsramca15 and buck_vsramca7 supply DVDD_SRAM2 and DVDD_SRAM1, the
  SRAM of the Cortex-A53 and Cortex-A72 clusters respectively. The
  datasheet requires the SRAM supply to be higher than the CPU supply,
  but by no more than 200mV. Since both cluster0_opp and cluster1_opp
  go up to 1.125V, the SRAM supplies must be able to go above that.
  Limit them to 0.93125V to 1.15V. The lower limit comes from the
  datasheet's recommended operating conditions. The upper limit is
  slightly above the 1.131V given there, but matches the tracking upper
  limit read back from the PMIC. buck_vsramca7 uses the same limit.
- buck_vcore supplies DVDD_CORE, rated for up to 1.125V. Limit it to
  1.125V, the voltage firmware sets.
- buck_vdrm supplies the LPDDR3 memory, DDRV and VCC12IO_HSIC, all
  rated for up to 1.3V. Limit it to 1.3V. Firmware sets it to 1.225V.
- ldo_vgp5 supplies DVDD18_EFUSE, which is nominally 1.8V. Fix it at
  1.8V. However it is normally disabled.

Note that buck_vsramca15 is actually controlled by the PMIC's voltage
tracking function, which is set up by firmware. The rail tracks
buck_vpca15 with +100mV until it reaches a set upper bound of 1.15V.
Under this mode the register used to set the voltage does not change. If
the OS driver wants to read real time voltage, there is a separate
register that can be read out. buck_vsramca7 has tracking disabled by
firmware and is controlled by software, which is correct since the rail
providing power to the CPU cores is from a different chip.

Comparing the voltage ranges against the schematics, datasheets, drivers
and OPP tables, and drafting the change, were done by an agent. Manually
tested on a Hana (Telesu) device.

Signed-off-by: Chen-Yu Tsai <wenst at chromium.org>
---
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 24 ++++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
index c6751adb1c2a..579ce73de7ad 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
@@ -948,8 +948,8 @@ regulators {
 
 			mt6397_vpca15_reg: buck_vpca15 {
 				regulator-name = "vpca15";
-				regulator-min-microvolt = < 700000>;
-				regulator-max-microvolt = <1350000>;
+				regulator-min-microvolt = < 725000>;
+				regulator-max-microvolt = <1125000>;
 				regulator-ramp-delay = <12500>;
 				regulator-always-on;
 				regulator-allowed-modes = <0 1>;
@@ -957,8 +957,8 @@ mt6397_vpca15_reg: buck_vpca15 {
 
 			mt6397_vpca7_reg: buck_vpca7 {
 				regulator-name = "vpca7";
-				regulator-min-microvolt = < 700000>;
-				regulator-max-microvolt = <1350000>;
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <1200000>;
 				regulator-ramp-delay = <12500>;
 				regulator-enable-ramp-delay = <115>;
 				regulator-always-on;
@@ -966,16 +966,16 @@ mt6397_vpca7_reg: buck_vpca7 {
 
 			mt6397_vsramca15_reg: buck_vsramca15 {
 				regulator-name = "vsramca15";
-				regulator-min-microvolt = < 700000>;
-				regulator-max-microvolt = <1350000>;
+				regulator-min-microvolt = < 931250>;
+				regulator-max-microvolt = <1150000>;
 				regulator-ramp-delay = <12500>;
 				regulator-always-on;
 			};
 
 			mt6397_vsramca7_reg: buck_vsramca7 {
 				regulator-name = "vsramca7";
-				regulator-min-microvolt = < 700000>;
-				regulator-max-microvolt = <1350000>;
+				regulator-min-microvolt = < 931250>;
+				regulator-max-microvolt = <1150000>;
 				regulator-ramp-delay = <12500>;
 				regulator-always-on;
 			};
@@ -983,7 +983,7 @@ mt6397_vsramca7_reg: buck_vsramca7 {
 			mt6397_vcore_reg: buck_vcore {
 				regulator-name = "vcore";
 				regulator-min-microvolt = < 700000>;
-				regulator-max-microvolt = <1350000>;
+				regulator-max-microvolt = <1125000>;
 				regulator-ramp-delay = <12500>;
 				regulator-always-on;
 			};
@@ -995,7 +995,7 @@ buck_vgpu {
 			mt6397_vdrm_reg: buck_vdrm {
 				regulator-name = "vdrm";
 				regulator-min-microvolt = <1200000>;
-				regulator-max-microvolt = <1400000>;
+				regulator-max-microvolt = <1300000>;
 				regulator-ramp-delay = <12500>;
 				regulator-always-on;
 			};
@@ -1081,8 +1081,8 @@ ldo_vgp4 {
 
 			mt6397_vgp5_reg: ldo_vgp5 {
 				regulator-name = "vgp5";
-				regulator-min-microvolt = <1200000>;
-				regulator-max-microvolt = <3000000>;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
 				regulator-enable-ramp-delay = <218>;
 			};
 
-- 
2.56.0.455.g6c5a503b38-goog




More information about the Linux-mediatek mailing list