]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: r8a779h0: R-Car Sound support
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 24 Jun 2024 00:16:30 +0000 (00:16 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 1 Jul 2024 09:35:08 +0000 (11:35 +0200)
Add sound support for R-Car V4M.

[Kuninori: adjusted to latest upstream kernel]

Co-developed-by: Khanh Le <khanh.le.xr@renesas.com>
Signed-off-by: Khanh Le <khanh.le.xr@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/87ed8nkxeq.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r8a779h0.dtsi

index 706f91a65ac00de192d1668852a566c5d8f7cd3d..a03ab2b6a859b75e87bb4a47de890b665aedd1cd 100644 (file)
        #address-cells = <2>;
        #size-cells = <2>;
 
+       /* External Audio clock - to be overridden by boards that provide it */
+       audio_clkin: audio_clkin {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <0>;
+       };
+
        cluster0_opp: opp-table-0 {
                compatible = "operating-points-v2";
 
                                 <&ipmmu_ds0 22>, <&ipmmu_ds0 23>;
                };
 
+               rcar_sound: sound@ec400000 {
+                       compatible = "renesas,rcar_sound-r8a779h0", "renesas,rcar_sound-gen4";
+                       reg = <0 0xec400000 0 0x40000>,
+                             <0 0xec540000 0 0x1000>,
+                             <0 0xec541000 0 0x050>,
+                             <0 0xec5a0000 0 0x020>;
+                       reg-names = "sdmc", "ssiu", "ssi", "adg";
+                       clocks = <&cpg CPG_MOD 2926>, <&cpg CPG_MOD 2927>, <&audio_clkin>;
+                       clock-names = "ssiu.0", "ssi.0", "clkin";
+                       /* #clock-cells is fixed */
+                       #clock-cells = <0>;
+                       /* #sound-dai-cells is fixed */
+                       #sound-dai-cells = <0>;
+
+                       power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>;
+                       resets = <&cpg 2926>, <&cpg 2927>;
+                       reset-names = "ssiu.0", "ssi.0";
+                       status = "disabled";
+
+                       rcar_sound,ssiu {
+                               ssiu00: ssiu-0 {
+                                       dmas = <&dmac1 0x6e>, <&dmac1 0x6f>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu01: ssiu-1 {
+                                       dmas = <&dmac1 0x6c>, <&dmac1 0x6d>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu02: ssiu-2 {
+                                       dmas = <&dmac1 0x6a>, <&dmac1 0x6b>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu03: ssiu-3 {
+                                       dmas = <&dmac1 0x68>, <&dmac1 0x69>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu04: ssiu-4 {
+                                       dmas = <&dmac1 0x66>, <&dmac1 0x67>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu05: ssiu-5 {
+                                       dmas = <&dmac1 0x64>, <&dmac1 0x65>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu06: ssiu-6 {
+                                       dmas = <&dmac1 0x62>, <&dmac1 0x63>;
+                                       dma-names = "tx", "rx";
+                               };
+                               ssiu07: ssiu-7 {
+                                       dmas = <&dmac1 0x60>, <&dmac1 0x61>;
+                                       dma-names = "tx", "rx";
+                               };
+                       };
+
+                       rcar_sound,ssi {
+                               ssi0: ssi-0 {
+                                       interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>;
+                               };
+                       };
+               };
+
                mmc0: mmc@ee140000 {
                        compatible = "renesas,sdhi-r8a779h0",
                                     "renesas,rcar-gen4-sdhi";