]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: renesas: rzg2lc-smarc: Enable HDMI audio
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 26 Aug 2024 09:08:00 +0000 (10:08 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 29 Aug 2024 08:38:56 +0000 (10:38 +0200)
Enable HDMI audio on the RZ/G2LC SMARC EVK.  Set SW 1.5 on the SoM
module to the OFF position to turn on HDMI audio.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240826090803.56176-3-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a07g044c2-smarc.dts
arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi

index 0b90367b6d1e3138fd03fef3d455c9303975e316..ee5bf2c5805114dab741c23f89ca6ee5ef8efe43 100644 (file)
@@ -47,6 +47,9 @@
 #error "Cannot set as both PMOD_MTU3 and SW_RSPI_CAN are mutually exclusive"
 #endif
 
+/* Please set SW_I2S0_I2S1. Default value is 0 */
+#define SW_I2S0_I2S1   0
+
 #include "r9a07g044c2.dtsi"
 #include "rzg2lc-smarc-som.dtsi"
 #include "rzg2lc-smarc.dtsi"
index f21508640b6eaaaf518f8302ffc009aa09d512b8..377849cbb462eae946b58e9796386d3010355f34 100644 (file)
                        };
                };
        };
+
+#if (SW_I2S0_I2S1)
+       /delete-node/ sound;
+
+       sound_card {
+               compatible = "audio-graph-card";
+               label = "HDMI-Audio";
+               dais = <&i2s2_port>;
+       };
+#endif
 };
 
 #if (SW_SCIF_CAN || SW_RSPI_CAN)
 };
 #endif
 
+#if (!SW_I2S0_I2S1)
 &cpu_dai {
        sound-dai = <&ssi0>;
 };
+#endif
 
 &dsi {
        status = "okay";
                                        remote-endpoint = <&hdmi_con_out>;
                                };
                        };
+
+#if (SW_I2S0_I2S1)
+                       port@2 {
+                               reg = <2>;
+                               codec_endpoint: endpoint {
+                                       remote-endpoint = <&i2s2_cpu_endpoint>;
+                               };
+                       };
+#endif
                };
        };
 };
        pinctrl-names = "default";
 
        status = "okay";
+
+#if (SW_I2S0_I2S1)
+       i2s2_port: port {
+               i2s2_cpu_endpoint: endpoint {
+                       remote-endpoint = <&codec_endpoint>;
+                       dai-format = "i2s";
+
+                       bitclock-master = <&i2s2_cpu_endpoint>;
+                       frame-master = <&i2s2_cpu_endpoint>;
+               };
+       };
+#endif
 };
 
 #if (SW_RSPI_CAN)