xref: /linux/Documentation/devicetree/bindings/sound/renesas,rz-ssi.yaml (revision 9e676a024fa1fa2bd8150c2d2ba85478280353bc)
12b761f47SBiju Das# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22b761f47SBiju Das%YAML 1.2
32b761f47SBiju Das---
42b761f47SBiju Das$id: http://devicetree.org/schemas/sound/renesas,rz-ssi.yaml#
52b761f47SBiju Das$schema: http://devicetree.org/meta-schemas/core.yaml#
62b761f47SBiju Das
7032959d8SLad Prabhakartitle: Renesas RZ/{G2L,V2L} ASoC Sound Serial Interface (SSIF-2)
82b761f47SBiju Das
92b761f47SBiju Dasmaintainers:
102b761f47SBiju Das  - Biju Das <biju.das.jz@bp.renesas.com>
112b761f47SBiju Das
1258ae9a2aSKrzysztof KozlowskiallOf:
1358ae9a2aSKrzysztof Kozlowski  - $ref: dai-common.yaml#
1458ae9a2aSKrzysztof Kozlowski
152b761f47SBiju Dasproperties:
162b761f47SBiju Das  compatible:
172b761f47SBiju Das    items:
182b761f47SBiju Das      - enum:
197d562ac3SLad Prabhakar          - renesas,r9a07g043-ssi  # RZ/G2UL and RZ/Five
202b761f47SBiju Das          - renesas,r9a07g044-ssi  # RZ/G2{L,LC}
21032959d8SLad Prabhakar          - renesas,r9a07g054-ssi  # RZ/V2L
22*699a9733SClaudiu Beznea          - renesas,r9a08g045-ssi  # RZ/G3S
232b761f47SBiju Das      - const: renesas,rz-ssi
242b761f47SBiju Das
252b761f47SBiju Das  reg:
262b761f47SBiju Das    maxItems: 1
272b761f47SBiju Das
282b761f47SBiju Das  interrupts:
2956a38404SLad Prabhakar    minItems: 2
3056a38404SLad Prabhakar    maxItems: 3
312b761f47SBiju Das
322b761f47SBiju Das  interrupt-names:
3356a38404SLad Prabhakar    oneOf:
3456a38404SLad Prabhakar      - items:
352b761f47SBiju Das          - const: int_req
362b761f47SBiju Das          - const: dma_rx
372b761f47SBiju Das          - const: dma_tx
3856a38404SLad Prabhakar      - items:
3956a38404SLad Prabhakar          - const: int_req
402b761f47SBiju Das          - const: dma_rt
412b761f47SBiju Das
422b761f47SBiju Das  clocks:
432b761f47SBiju Das    maxItems: 4
442b761f47SBiju Das
452b761f47SBiju Das  clock-names:
462b761f47SBiju Das    items:
472b761f47SBiju Das      - const: ssi
482b761f47SBiju Das      - const: ssi_sfr
492b761f47SBiju Das      - const: audio_clk1
502b761f47SBiju Das      - const: audio_clk2
512b761f47SBiju Das
522b761f47SBiju Das  power-domains:
532b761f47SBiju Das    maxItems: 1
542b761f47SBiju Das
552b761f47SBiju Das  resets:
562b761f47SBiju Das    maxItems: 1
572b761f47SBiju Das
585df6dfbbSBiju Das  dmas:
595df6dfbbSBiju Das    minItems: 1
605df6dfbbSBiju Das    maxItems: 2
615df6dfbbSBiju Das
625df6dfbbSBiju Das  dma-names:
635df6dfbbSBiju Das    oneOf:
645df6dfbbSBiju Das      - items:
655df6dfbbSBiju Das          - const: tx
665df6dfbbSBiju Das          - const: rx
675df6dfbbSBiju Das      - items:
685df6dfbbSBiju Das          - const: rt
695df6dfbbSBiju Das
702b761f47SBiju Das  '#sound-dai-cells':
712b761f47SBiju Das    const: 0
722b761f47SBiju Das
732cc71998SBiju Das  port:
742cc71998SBiju Das    $ref: audio-graph-port.yaml#/definitions/port-base
752cc71998SBiju Das    description: Connection to controller providing I2S signals
762cc71998SBiju Das
772b761f47SBiju Dasrequired:
782b761f47SBiju Das  - compatible
792b761f47SBiju Das  - reg
802b761f47SBiju Das  - interrupts
812b761f47SBiju Das  - interrupt-names
822b761f47SBiju Das  - clocks
832b761f47SBiju Das  - clock-names
842b761f47SBiju Das  - resets
852b761f47SBiju Das  - '#sound-dai-cells'
862b761f47SBiju Das
8758ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false
882b761f47SBiju Das
892b761f47SBiju Dasexamples:
902b761f47SBiju Das  - |
912b761f47SBiju Das    #include <dt-bindings/interrupt-controller/arm-gic.h>
922b761f47SBiju Das    #include <dt-bindings/clock/r9a07g044-cpg.h>
932b761f47SBiju Das
942b761f47SBiju Das    ssi0: ssi@10049c00 {
952b761f47SBiju Das        compatible = "renesas,r9a07g044-ssi",
962b761f47SBiju Das                     "renesas,rz-ssi";
972b761f47SBiju Das            reg = <0x10049c00 0x400>;
982b761f47SBiju Das            interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>,
992b761f47SBiju Das                         <GIC_SPI 327 IRQ_TYPE_EDGE_RISING>,
10056a38404SLad Prabhakar                         <GIC_SPI 328 IRQ_TYPE_EDGE_RISING>;
10156a38404SLad Prabhakar            interrupt-names = "int_req", "dma_rx", "dma_tx";
1022b761f47SBiju Das            clocks = <&cpg CPG_MOD R9A07G044_SSI0_PCLK2>,
1032b761f47SBiju Das                     <&cpg CPG_MOD R9A07G044_SSI0_PCLK_SFR>,
1042b761f47SBiju Das                     <&audio_clk1>,
1052b761f47SBiju Das                     <&audio_clk2>;
1062b761f47SBiju Das            clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2";
1072b761f47SBiju Das            power-domains = <&cpg>;
1082b761f47SBiju Das            resets = <&cpg R9A07G044_SSI0_RST_M2_REG>;
109bed0b1c1SBiju Das            dmas = <&dmac 0x2655>,
110bed0b1c1SBiju Das                   <&dmac 0x2656>;
1115df6dfbbSBiju Das            dma-names = "tx", "rx";
1122b761f47SBiju Das            #sound-dai-cells = <0>;
1132b761f47SBiju Das    };
114