| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/sound/renesas,rz-ssi.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Renesas RZ/{G2L,V2L} ASoC Sound Serial Interface (SSIF-2) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Biju Das <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: dai-common.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
items: |
| 18 |
- enum: |
| 19 |
- renesas,r9a07g043-ssi # RZ/G2UL and RZ/Five |
| 20 |
- renesas,r9a07g044-ssi # RZ/G2{L,LC} |
| 21 |
- renesas,r9a07g054-ssi # RZ/V2L |
| 22 |
- renesas,r9a08g045-ssi # RZ/G3S |
| 23 |
- renesas,r9a08g046-ssi # RZ/G3L |
| 24 |
- const: renesas,rz-ssi |
| 25 |
|
| 26 |
reg: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
interrupts: |
| 30 |
minItems: 2 |
| 31 |
maxItems: 3 |
| 32 |
|
| 33 |
interrupt-names: |
| 34 |
oneOf: |
| 35 |
- items: |
| 36 |
- const: int_req |
| 37 |
- const: dma_rx |
| 38 |
- const: dma_tx |
| 39 |
- items: |
| 40 |
- const: int_req |
| 41 |
- const: dma_rt |
| 42 |
|
| 43 |
clocks: |
| 44 |
maxItems: 4 |
| 45 |
|
| 46 |
clock-names: |
| 47 |
items: |
| 48 |
- const: ssi |
| 49 |
- const: ssi_sfr |
| 50 |
- const: audio_clk1 |
| 51 |
- const: audio_clk2 |
| 52 |
|
| 53 |
power-domains: |
| 54 |
maxItems: 1 |
| 55 |
|
| 56 |
resets: |
| 57 |
maxItems: 1 |
| 58 |
|
| 59 |
dmas: |
| 60 |
minItems: 1 |
| 61 |
maxItems: 2 |
| 62 |
|
| 63 |
dma-names: |
| 64 |
oneOf: |
| 65 |
- items: |
| 66 |
- const: tx |
| 67 |
- const: rx |
| 68 |
- items: |
| 69 |
- const: rt |
| 70 |
|
| 71 |
'#sound-dai-cells': |
| 72 |
const: 0 |
| 73 |
|
| 74 |
port: |
| 75 |
$ref: audio-graph-port.yaml#/definitions/port-base |
| 76 |
description: Connection to controller providing I2S signals |
| 77 |
|
| 78 |
required: |
| 79 |
- compatible |
| 80 |
- reg |
| 81 |
- interrupts |
| 82 |
- interrupt-names |
| 83 |
- clocks |
| 84 |
- clock-names |
| 85 |
- resets |
| 86 |
- '#sound-dai-cells' |
| 87 |
|
| 88 |
unevaluatedProperties: false |
| 89 |
|
| 90 |
examples: |
| 91 |
- | |
| 92 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 93 |
#include <dt-bindings/clock/r9a07g044-cpg.h> |
| 94 |
|
| 95 |
ssi0: ssi@10049c00 { |
| 96 |
compatible = "renesas,r9a07g044-ssi", |
| 97 |
"renesas,rz-ssi"; |
| 98 |
reg = <0x10049c00 0x400>; |
| 99 |
interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>, |
| 100 |
<GIC_SPI 327 IRQ_TYPE_EDGE_RISING>, |
| 101 |
<GIC_SPI 328 IRQ_TYPE_EDGE_RISING>; |
| 102 |
interrupt-names = "int_req", "dma_rx", "dma_tx"; |
| 103 |
clocks = <&cpg CPG_MOD R9A07G044_SSI0_PCLK2>, |
| 104 |
<&cpg CPG_MOD R9A07G044_SSI0_PCLK_SFR>, |
| 105 |
<&audio_clk1>, |
| 106 |
<&audio_clk2>; |
| 107 |
clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; |
| 108 |
power-domains = <&cpg>; |
| 109 |
resets = <&cpg R9A07G044_SSI0_RST_M2_REG>; |
| 110 |
dmas = <&dmac 0x2655>, |
| 111 |
<&dmac 0x2656>; |
| 112 |
dma-names = "tx", "rx"; |
| 113 |
#sound-dai-cells = <0>; |
| 114 |
}; |