]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: renesas: rzg2l-smarc: Enable HDMI audio
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 26 Aug 2024 09:07:59 +0000 (10:07 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 29 Aug 2024 08:38:25 +0000 (10:38 +0200)
Enable HDMI audio on the RZ/{G2L,V2L} SMARC EVK.

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-2-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg2l-smarc-pinfunction.dtsi
arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi

index 18c526c7a4cfe0a6e1a1ab57fc000029491f8d24..e9f244c33d558e63467c9ca44b3951a5ac8e51ba 100644 (file)
                         <RZG2L_PORT_PINMUX(45, 3, 1)>; /* RXD */
        };
 
+       ssi1_pins: ssi1 {
+               pinmux = <RZG2L_PORT_PINMUX(46, 0, 1)>, /* BCK */
+                        <RZG2L_PORT_PINMUX(46, 1, 1)>, /* RCK */
+                        <RZG2L_PORT_PINMUX(46, 2, 1)>; /* TXD */
+       };
+
        usb0_pins: usb0 {
                pinmux = <RZG2L_PORT_PINMUX(4, 0, 1)>, /* VBUS */
                         <RZG2L_PORT_PINMUX(5, 0, 1)>, /* OVC */
index 887dffe1491087a8dfd2eb0e981928506db2af9a..ee3d96fdb6168b564efdbb693d7a8d97ee0e636e 100644 (file)
                        };
                };
        };
+
+       sound_card {
+               compatible = "audio-graph-card";
+               label = "HDMI-Audio";
+               dais = <&i2s2_port>;
+       };
 };
 
 &cpu_dai {
                                        remote-endpoint = <&hdmi_con_out>;
                                };
                        };
+
+                       port@2 {
+                               reg = <2>;
+                               codec_endpoint: endpoint {
+                                       remote-endpoint = <&i2s2_cpu_endpoint>;
+                               };
+                       };
                };
        };
 };
        status = "okay";
 };
 
+&ssi1 {
+       pinctrl-0 = <&ssi1_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+
+       i2s2_port: port {
+               i2s2_cpu_endpoint: endpoint {
+                       remote-endpoint = <&codec_endpoint>;
+                       dai-format = "i2s";
+
+                       bitclock-master = <&i2s2_cpu_endpoint>;
+                       frame-master = <&i2s2_cpu_endpoint>;
+               };
+       };
+};
+
 &vccq_sdhi1 {
        gpios = <&pinctrl RZG2L_GPIO(39, 1) GPIO_ACTIVE_HIGH>;
 };