Skip to content

Commit 7490273

Browse files
morimotobroonie
authored andcommitted
dt-bindings: renesas,sh-msiof: Add MSIOF I2S Sound support
Renesas MSIOF (Clock-Synchronized Serial Interface with FIFO) can work as both SPI and I2S. MSIOF-I2S will use Audio Graph Card/Card2 driver which uses Of-Graph in DT. MSIOF-SPI/I2S are using same DT compatible properties. MSIOF-I2S uses Of-Graph for Audio-Graph-Card/Card2, MSIOF-SPI doesn't use Of-Graph. Adds schema for MSIOF-I2S (= Sound). Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org> Link: https://patch.msgid.link/87zfge2x0u.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent cf06681 commit 7490273

1 file changed

Lines changed: 27 additions & 16 deletions

File tree

Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
$id: http://devicetree.org/schemas/spi/renesas,sh-msiof.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Renesas MSIOF SPI controller
7+
title: Renesas MSIOF SPI / I2S controller
88

99
maintainers:
1010
- Geert Uytterhoeven <geert+renesas@glider.be>
1111

12-
allOf:
13-
- $ref: spi-controller.yaml#
14-
1512
properties:
1613
compatible:
1714
oneOf:
@@ -146,24 +143,38 @@ properties:
146143
$ref: /schemas/types.yaml#/definitions/uint32
147144
default: 64
148145

146+
# for MSIOF-I2S
147+
port:
148+
$ref: ../sound/audio-graph-port.yaml#
149+
unevaluatedProperties: false
150+
149151
required:
150152
- compatible
151153
- reg
152154
- interrupts
153155
- clocks
154156
- power-domains
155-
- '#address-cells'
156-
- '#size-cells'
157-
158-
if:
159-
not:
160-
properties:
161-
compatible:
162-
contains:
163-
const: renesas,sh-mobile-msiof
164-
then:
165-
required:
166-
- resets
157+
158+
allOf:
159+
# additional "required""
160+
- if:
161+
not:
162+
properties:
163+
compatible:
164+
contains:
165+
const: renesas,sh-mobile-msiof
166+
then:
167+
required:
168+
- resets
169+
170+
# If it doesn't have "port" node, it is "MSIOF-SPI"
171+
- if:
172+
not:
173+
required:
174+
- port
175+
then:
176+
allOf:
177+
- $ref: spi-controller.yaml#
167178

168179
unevaluatedProperties: false
169180

0 commit comments

Comments
 (0)