arm64: dts: mediatek: mt8183-kukui: Add PMIC regulator supplies
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 28 Sep 2023 08:55:35 +0000 (16:55 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 18 Oct 2023 07:46:31 +0000 (09:46 +0200)
The PMIC regulator node is missing regulator supplies. Now that the
binding supports them, add all the power rail supplies. Most of them
are fed from a system-wide semi-regulated power rail. A couple LDOs
are fed from the PMIC's own buck regulator outputs.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230928085537.3246669-13-wenst@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

index 6ce16a2..d48c66c 100644 (file)
                regulator-max-microvolt = <3300000>;
        };
 
+       /* system wide semi-regulated power rail from charger */
+       reg_vsys: regulator-vsys {
+               compatible = "regulator-fixed";
+               regulator-name = "vsys";
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
        reserved_memory: reserved-memory {
                #address-cells = <2>;
                #size-cells = <2>;
        Avdd-supply = <&mt6358_vaud28_reg>;
 };
 
+&mt6358regulator {
+       vsys-ldo1-supply = <&reg_vsys>;
+       vsys-ldo2-supply = <&reg_vsys>;
+       vsys-ldo3-supply = <&reg_vsys>;
+       vsys-vcore-supply = <&reg_vsys>;
+       vsys-vdram1-supply = <&reg_vsys>;
+       vsys-vgpu-supply = <&reg_vsys>;
+       vsys-vmodem-supply = <&reg_vsys>;
+       vsys-vpa-supply = <&reg_vsys>;
+       vsys-vproc11-supply = <&reg_vsys>;
+       vsys-vproc12-supply = <&reg_vsys>;
+       vsys-vs1-supply = <&reg_vsys>;
+       vsys-vs2-supply = <&reg_vsys>;
+       vs1-ldo1-supply = <&mt6358_vs1_reg>;
+       vs2-ldo1-supply = <&mt6358_vdram1_reg>;
+       vs2-ldo2-supply = <&mt6358_vs2_reg>;
+       vs2-ldo3-supply = <&mt6358_vs2_reg>;
+       vs2-ldo4-supply = <&mt6358_vs2_reg>;
+};
+
 &mt6358_vgpu_reg {
        regulator-min-microvolt = <625000>;
        regulator-max-microvolt = <900000>;