]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: rzg3s-smarc: Enable SSI3
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 10 Dec 2024 17:09:52 +0000 (19:09 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 13 Dec 2024 10:21:52 +0000 (11:21 +0100)
Enable SSI3.

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-24-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi

index 1a6689e3c8b2a1b046eff2fcb65224ee68d9124c..f87f0c18a083a95a339ef96e80cf00b8ed515a6a 100644 (file)
        };
 };
 
+&audio_clk2 {
+       clock-frequency = <12288000>;
+};
+
 &i2c0 {
        status = "okay";
 
 };
 
 &pinctrl {
+       audio_clock_pins: audio-clock {
+               pins = "AUDIO_CLK1", "AUDIO_CLK2";
+               input-enable;
+       };
+
        key-1-gpio-hog {
                gpio-hog;
                gpios = <RZG2L_GPIO(18, 0) GPIO_ACTIVE_LOW>;
                        pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
                };
        };
+
+       ssi3_pins: ssi3 {
+               pinmux = <RZG2L_PORT_PINMUX(18, 2, 8)>, /* BCK */
+                        <RZG2L_PORT_PINMUX(18, 3, 8)>, /* RCK */
+                        <RZG2L_PORT_PINMUX(18, 4, 8)>, /* TXD */
+                        <RZG2L_PORT_PINMUX(18, 5, 8)>; /* RXD */
+       };
 };
 
 &scif0 {
        max-frequency = <125000000>;
        status = "okay";
 };
+
+&ssi3 {
+       clocks = <&cpg CPG_MOD R9A08G045_SSI3_PCLK2>,
+                <&cpg CPG_MOD R9A08G045_SSI3_PCLK_SFR>,
+                <&versa3 2>, <&audio_clk2>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&ssi3_pins>, <&audio_clock_pins>;
+       status = "okay";
+};