xref: /linux/Documentation/devicetree/bindings/sound/renesas,fsi.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
12f52475bSKuninori Morimoto# SPDX-License-Identifier: GPL-2.0
22f52475bSKuninori Morimoto%YAML 1.2
32f52475bSKuninori Morimoto---
42f52475bSKuninori Morimoto$id: http://devicetree.org/schemas/sound/renesas,fsi.yaml#
52f52475bSKuninori Morimoto$schema: http://devicetree.org/meta-schemas/core.yaml#
62f52475bSKuninori Morimoto
7451a0445SGeert Uytterhoeventitle: Renesas FIFO-buffered Serial Interface (FSI)
82f52475bSKuninori Morimoto
92f52475bSKuninori Morimotomaintainers:
102f52475bSKuninori Morimoto  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
112f52475bSKuninori Morimoto
12*58ae9a2aSKrzysztof KozlowskiallOf:
13*58ae9a2aSKrzysztof Kozlowski  - $ref: dai-common.yaml#
14*58ae9a2aSKrzysztof Kozlowski
152f52475bSKuninori Morimotoproperties:
162f52475bSKuninori Morimoto  $nodename:
172f52475bSKuninori Morimoto    pattern: "^sound@.*"
182f52475bSKuninori Morimoto
192f52475bSKuninori Morimoto  compatible:
202f52475bSKuninori Morimoto    oneOf:
212f52475bSKuninori Morimoto      # for FSI2 SoC
222f52475bSKuninori Morimoto      - items:
232f52475bSKuninori Morimoto          - enum:
24451a0445SGeert Uytterhoeven              - renesas,fsi2-sh73a0  # SH-Mobile AG5
25451a0445SGeert Uytterhoeven              - renesas,fsi2-r8a7740 # R-Mobile A1
262f52475bSKuninori Morimoto          - enum:
272f52475bSKuninori Morimoto              - renesas,sh_fsi2
282f52475bSKuninori Morimoto      # for Generic
292f52475bSKuninori Morimoto      - items:
302f52475bSKuninori Morimoto          - enum:
312f52475bSKuninori Morimoto              - renesas,sh_fsi
322f52475bSKuninori Morimoto              - renesas,sh_fsi2
332f52475bSKuninori Morimoto
342f52475bSKuninori Morimoto  reg:
352f52475bSKuninori Morimoto    maxItems: 1
362f52475bSKuninori Morimoto
372f52475bSKuninori Morimoto  interrupts:
382f52475bSKuninori Morimoto    maxItems: 1
392f52475bSKuninori Morimoto
40451a0445SGeert Uytterhoeven  clocks:
41451a0445SGeert Uytterhoeven    maxItems: 1
42451a0445SGeert Uytterhoeven
43451a0445SGeert Uytterhoeven  power-domains:
44451a0445SGeert Uytterhoeven    maxItems: 1
45451a0445SGeert Uytterhoeven
46451a0445SGeert Uytterhoeven  '#sound-dai-cells':
47451a0445SGeert Uytterhoeven    const: 1
48451a0445SGeert Uytterhoeven
49d235b282SKuninori MorimotopatternProperties:
50d235b282SKuninori Morimoto  "^fsi(a|b),spdif-connection$":
512f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
522f52475bSKuninori Morimoto    description: FSI is connected by S/PDIF
532f52475bSKuninori Morimoto
54d235b282SKuninori Morimoto  "^fsi(a|b),stream-mode-support$":
552f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
562f52475bSKuninori Morimoto    description: FSI supports 16bit stream mode
572f52475bSKuninori Morimoto
58d235b282SKuninori Morimoto  "^fsi(a|b),use-internal-clock$":
592f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
602f52475bSKuninori Morimoto    description: FSI uses internal clock when master mode
612f52475bSKuninori Morimoto
622f52475bSKuninori Morimotorequired:
632f52475bSKuninori Morimoto  - compatible
642f52475bSKuninori Morimoto  - reg
652f52475bSKuninori Morimoto  - interrupts
66451a0445SGeert Uytterhoeven  - clocks
67451a0445SGeert Uytterhoeven  - power-domains
68451a0445SGeert Uytterhoeven  - '#sound-dai-cells'
692f52475bSKuninori Morimoto
70*58ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false
717f464532SRob Herring
722f52475bSKuninori Morimotoexamples:
732f52475bSKuninori Morimoto  - |
74451a0445SGeert Uytterhoeven    #include <dt-bindings/clock/r8a7740-clock.h>
75451a0445SGeert Uytterhoeven    #include <dt-bindings/interrupt-controller/arm-gic.h>
76451a0445SGeert Uytterhoeven    sh_fsi2: sound@fe1f0000 {
772f52475bSKuninori Morimoto            compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2";
78451a0445SGeert Uytterhoeven            reg = <0xfe1f0000 0x400>;
79451a0445SGeert Uytterhoeven            interrupts = <GIC_SPI 9 0x4>;
80451a0445SGeert Uytterhoeven            clocks = <&mstp3_clks R8A7740_CLK_FSI>;
81451a0445SGeert Uytterhoeven            power-domains = <&pd_a4mp>;
822f52475bSKuninori Morimoto
83451a0445SGeert Uytterhoeven            #sound-dai-cells = <1>;
842f52475bSKuninori Morimoto            fsia,spdif-connection;
852f52475bSKuninori Morimoto            fsia,stream-mode-support;
862f52475bSKuninori Morimoto            fsia,use-internal-clock;
872f52475bSKuninori Morimoto    };
88