]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt8390-genio-common: add MT6319 PMIC support
authorLouis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Tue, 14 Apr 2026 10:33:31 +0000 (12:33 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 11 May 2026 11:57:21 +0000 (13:57 +0200)
Mediatek Genio 510 and 700-EVK boards integrate a MT6319 PMIC, powered
by the board system power rail (VSYS) and connected to the SPMI
interface. It provides buck regulators for CPU core power supplies in
particular.

Add the needed nodes in the board common dtsi to enable its support.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi

index 5303add717bf76923d38ef7455a00b360f02ba0e..af859a7504b81cbb755007062ee3e20a52e69add 100644 (file)
        status = "okay";
 };
 
+&spmi {
+       #address-cells = <2>;
+       #size-cells = <0>;
+
+       pmic@6 {
+               compatible = "mediatek,mt6319-regulator", "mediatek,mt6315-regulator";
+               reg = <0x6 SPMI_USID>;
+
+               pvdd1-supply = <&reg_vsys>;
+               pvdd2-supply = <&reg_vsys>;
+               pvdd3-supply = <&reg_vsys>;
+               pvdd4-supply = <&reg_vsys>;
+
+               regulators {
+                       mt6319_vbuck1: vbuck1 {
+                               regulator-name = "dvdd_proc_b";
+                               regulator-min-microvolt = <300000>;
+                               regulator-max-microvolt = <1193750>;
+                               regulator-enable-ramp-delay = <256>;
+                               regulator-allowed-modes = <0 1 2>;
+                               regulator-always-on;
+                       };
+
+                       vbuck3 {
+                               regulator-name = "avdd2_emi";
+                               regulator-min-microvolt = <300000>;
+                               regulator-max-microvolt = <1193750>;
+                               regulator-enable-ramp-delay = <256>;
+                               regulator-allowed-modes = <0 1 2>;
+                               regulator-always-on;
+                       };
+
+                       vbuck4 {
+                               regulator-name = "avddq_emi";
+                               regulator-min-microvolt = <300000>;
+                               regulator-max-microvolt = <1193750>;
+                               regulator-enable-ramp-delay = <256>;
+                               regulator-allowed-modes = <0 1 2>;
+                               regulator-always-on;
+                       };
+               };
+       };
+};
+
 &uart0 {
        pinctrl-0 = <&uart0_pins>;
        pinctrl-names = "default";