arm64: dts: renesas: rzg2ul-smarc: Enable Audio
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 29 Apr 2022 07:23:59 +0000 (08:23 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 6 May 2022 09:09:32 +0000 (11:09 +0200)
Enable Audio on RZ/G2UL SMARC EVK by adding ssi1 pincontrol entries
to the soc-pinctrl dtsi and ssi1 and cpu sound_dai nodes to the board
dtsi.

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

index 17527184ff2a68ffde8cf07fbe24b2fd679f4093..201b70150e01fae4c0b6e9cf745575b962c612bf 100644 (file)
                pins = "AUDIO_CLK1", "AUDIO_CLK2";
                input-enable;
        };
+
+       ssi1_pins: ssi1 {
+               pinmux = <RZG2L_PORT_PINMUX(3, 0, 2)>, /* BCK */
+                        <RZG2L_PORT_PINMUX(3, 1, 2)>, /* RCK */
+                        <RZG2L_PORT_PINMUX(3, 2, 2)>, /* TXD */
+                        <RZG2L_PORT_PINMUX(3, 3, 2)>; /* RXD */
+       };
 };
index d75ad79ba8042cf0768e302b743268b4c72dc784..0051634d7b1c4fb5d1639a5ee80cc11e6401da85 100644 (file)
 };
 #endif
 
+&cpu_dai {
+       sound-dai = <&ssi1>;
+};
+
 &i2c1 {
        wm8978: codec@1a {
                compatible = "wlf,wm8978";
        };
 };
 
+#if (SW_ET0_EN_N)
+&ssi1 {
+       pinctrl-0 = <&ssi1_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+#else
+&snd_rzg2l {
+       status = "disabled";
+};
+
+&ssi1 {
+       /delete-property/ pinctrl-0;
+       /delete-property/ pinctrl-names;
+       status = "disabled";
+};
+#endif
+
 &vccq_sdhi1 {
        gpios = <&pinctrl RZG2L_GPIO(6, 1) GPIO_ACTIVE_HIGH>;
 };