]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: Add da7212 audio codec node
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 10 Dec 2024 17:09:51 +0000 (19:09 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 13 Dec 2024 10:21:52 +0000 (11:21 +0100)
Add the da7212 audio codec node. Along with it regulators nodes were
reworked to be able to re-use them on da7212.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/20241210170953.2936724-23-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi
arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi

index 5117de3c8c4b14ec19962f00616eedb92aaeebcf..ef12c1c462a7a52a4893bc72a2af4145bb9243b7 100644 (file)
@@ -58,7 +58,6 @@
                enable-active-high;
        };
 
-#if SW_CONFIG2 == SW_ON
        vccq_sdhi0: regulator1 {
                compatible = "regulator-gpio";
                regulator-name = "SDHI0 VccQ";
@@ -68,8 +67,8 @@
                gpios-states = <1>;
                states = <3300000 1>, <1800000 0>;
        };
-#else
-       reg_1p8v: regulator1 {
+
+       reg_1p8v: regulator2 {
                compatible = "regulator-fixed";
                regulator-name = "fixed-1.8V";
                regulator-min-microvolt = <1800000>;
                regulator-boot-on;
                regulator-always-on;
        };
-#endif
 
-       vcc_sdhi2: regulator2 {
+       reg_3p3v: regulator3 {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-3.3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
+       vcc_sdhi2: regulator4 {
                compatible = "regulator-fixed";
                regulator-name = "SDHI2 Vcc";
                regulator-min-microvolt = <3300000>;
index aaf7f9c7bdf95521ef9d78df2e0d2f71020a752e..1a6689e3c8b2a1b046eff2fcb65224ee68d9124c 100644 (file)
        status = "okay";
 
        clock-frequency = <1000000>;
+
+       da7212: codec@1a {
+               compatible = "dlg,da7212";
+               reg = <0x1a>;
+
+               clocks = <&versa3 1>;
+               clock-names = "mclk";
+
+               #sound-dai-cells = <0>;
+
+               dlg,micbias1-lvl = <2500>;
+               dlg,micbias2-lvl = <2500>;
+               dlg,dmic-data-sel = "lrise_rfall";
+               dlg,dmic-samplephase = "between_clkedge";
+               dlg,dmic-clkrate = <3000000>;
+
+               VDDA-supply = <&reg_1p8v>;
+               VDDSP-supply = <&reg_3p3v>;
+               VDDMIC-supply = <&reg_3p3v>;
+               VDDIO-supply = <&reg_1p8v>;
+       };
 };
 
 &i2c1 {