arm64: dts: exynos: add VPH_PWR regulator on TM2
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 20 Jan 2023 17:31:14 +0000 (18:31 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 28 Jan 2023 10:01:30 +0000 (11:01 +0100)
VPH_PWR is routed to battery, so it is not configurable.  However few
devices, e.g. WM5110 expect speaker power supplies, thus provide the
regulator for full hardware description.  Audio amplifier also accepts
that power supply.

Keep ordering the nodes by renaming existing IRDA regulator.

This fixes dtbs_check warnings:

  exynos5433-tm2e.dtb: audio-codec@0: 'SPKVDDL-supply' is a required property
  exynos5433-tm2e.dtb: audio-codec@0: 'SPKVDDR-supply' is a required property

Link: https://lore.kernel.org/r/20230120173116.341270-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi

index 6f701297a665d80ce3acb58431231e97a2c290b8..3785a6580bdf43222ff80db6e1b2d8fe681573b8 100644 (file)
 
                        DIOVDD-supply = <&ldo3_reg>;
                        DVDD-supply = <&ldo3_reg>;
-                       /* PVDD-supply to VPH_PWR */
+                       PVDD-supply = <&vph_pwr_regulator>;
                };
        };
 
-       irda_regulator: irda-regulator {
+       vph_pwr_regulator: regulator-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "VPH_PWR";
+               regulator-min-microvolt = <4200000>;
+               regulator-max-microvolt = <4200000>;
+       };
+
+       irda_regulator: regulator-irda {
                compatible = "regulator-fixed";
                enable-active-high;
                gpio = <&gpr3 3 GPIO_ACTIVE_HIGH>;
                CPVDD-supply = <&ldo18_reg>;
                DBVDD2-supply = <&ldo18_reg>;
                DBVDD3-supply = <&ldo18_reg>;
+               SPKVDDL-supply = <&vph_pwr_regulator>;
+               SPKVDDR-supply = <&vph_pwr_regulator>;
 
                controller-data {
                        samsung,spi-feedback-delay = <0>;