arm64: dts: imx8dxl-evk: Complete WM8960 power supplies
authorChancel Liu <chancel.liu@nxp.com>
Thu, 9 Jan 2025 01:27:14 +0000 (10:27 +0900)
committerShawn Guo <shawnguo@kernel.org>
Tue, 25 Feb 2025 00:32:58 +0000 (08:32 +0800)
WM8960 has the following power supplies:
- AVDD
- DBVDD
- DCVDD
- SPKVDD1
- SPKVDD2

Add new audio regulators to reflect the schematic and complete missed
power supplies.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts

index 6259186cd4d92ed063f2f7d07cbae978779d08e3..5f3b4014e1521eb2e226797c77d15951cfde3187 100644 (file)
                enable-active-high;
        };
 
+       reg_audio_5v: regulator-audio-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "audio-5v";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       reg_audio_3v3: regulator-audio-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "audio-3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       reg_audio_1v8: regulator-audio-1v8 {
+               compatible = "regulator-fixed";
+               regulator-name = "audio-1v8";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
        bt_sco_codec: audio-codec-bt {
                compatible = "linux,bt-sco";
                #sound-dai-cells = <1>;
                                wlf,shared-lrclk;
                                wlf,hp-cfg = <2 2 3>;
                                wlf,gpio-cfg = <1 3>;
+                               AVDD-supply = <&reg_audio_3v3>;
+                               DBVDD-supply = <&reg_audio_1v8>;
+                               DCVDD-supply = <&reg_audio_1v8>;
+                               SPKVDD1-supply = <&reg_audio_5v>;
+                               SPKVDD2-supply = <&reg_audio_5v>;
                        };
                };
 
                                wlf,shared-lrclk;
                                wlf,hp-cfg = <2 2 3>;
                                wlf,gpio-cfg = <1 3>;
+                               AVDD-supply = <&reg_audio_3v3>;
+                               DBVDD-supply = <&reg_audio_1v8>;
+                               DCVDD-supply = <&reg_audio_1v8>;
+                               SPKVDD1-supply = <&reg_audio_5v>;
+                               SPKVDD2-supply = <&reg_audio_5v>;
                        };
                };
 
                                wlf,shared-lrclk;
                                wlf,hp-cfg = <2 2 3>;
                                wlf,gpio-cfg = <1 3>;
+                               AVDD-supply = <&reg_audio_3v3>;
+                               DBVDD-supply = <&reg_audio_1v8>;
+                               DCVDD-supply = <&reg_audio_1v8>;
+                               SPKVDD1-supply = <&reg_audio_5v>;
+                               SPKVDD2-supply = <&reg_audio_5v>;
                        };
                };