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
122f52475bSKuninori Morimotoproperties:
132f52475bSKuninori Morimoto  $nodename:
142f52475bSKuninori Morimoto    pattern: "^sound@.*"
152f52475bSKuninori Morimoto
162f52475bSKuninori Morimoto  compatible:
172f52475bSKuninori Morimoto    oneOf:
182f52475bSKuninori Morimoto      # for FSI2 SoC
192f52475bSKuninori Morimoto      - items:
202f52475bSKuninori Morimoto          - enum:
21451a0445SGeert Uytterhoeven              - renesas,fsi2-sh73a0  # SH-Mobile AG5
22451a0445SGeert Uytterhoeven              - renesas,fsi2-r8a7740 # R-Mobile A1
232f52475bSKuninori Morimoto          - enum:
242f52475bSKuninori Morimoto              - renesas,sh_fsi2
252f52475bSKuninori Morimoto      # for Generic
262f52475bSKuninori Morimoto      - items:
272f52475bSKuninori Morimoto          - enum:
282f52475bSKuninori Morimoto              - renesas,sh_fsi
292f52475bSKuninori Morimoto              - renesas,sh_fsi2
302f52475bSKuninori Morimoto
312f52475bSKuninori Morimoto  reg:
322f52475bSKuninori Morimoto    maxItems: 1
332f52475bSKuninori Morimoto
342f52475bSKuninori Morimoto  interrupts:
352f52475bSKuninori Morimoto    maxItems: 1
362f52475bSKuninori Morimoto
37451a0445SGeert Uytterhoeven  clocks:
38451a0445SGeert Uytterhoeven    maxItems: 1
39451a0445SGeert Uytterhoeven
40451a0445SGeert Uytterhoeven  power-domains:
41451a0445SGeert Uytterhoeven    maxItems: 1
42451a0445SGeert Uytterhoeven
43451a0445SGeert Uytterhoeven  '#sound-dai-cells':
44451a0445SGeert Uytterhoeven    const: 1
45451a0445SGeert Uytterhoeven
462f52475bSKuninori Morimoto  fsia,spdif-connection:
472f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
482f52475bSKuninori Morimoto    description: FSI is connected by S/PDIF
492f52475bSKuninori Morimoto
502f52475bSKuninori Morimoto  fsia,stream-mode-support:
512f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
522f52475bSKuninori Morimoto    description: FSI supports 16bit stream mode
532f52475bSKuninori Morimoto
542f52475bSKuninori Morimoto  fsia,use-internal-clock:
552f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
562f52475bSKuninori Morimoto    description: FSI uses internal clock when master mode
572f52475bSKuninori Morimoto
582f52475bSKuninori Morimoto  fsib,spdif-connection:
592f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
602f52475bSKuninori Morimoto    description: same as fsia
612f52475bSKuninori Morimoto
622f52475bSKuninori Morimoto  fsib,stream-mode-support:
632f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
642f52475bSKuninori Morimoto    description: same as fsia
652f52475bSKuninori Morimoto
662f52475bSKuninori Morimoto  fsib,use-internal-clock:
672f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
682f52475bSKuninori Morimoto    description: same as fsia
692f52475bSKuninori Morimoto
702f52475bSKuninori Morimotorequired:
712f52475bSKuninori Morimoto  - compatible
722f52475bSKuninori Morimoto  - reg
732f52475bSKuninori Morimoto  - interrupts
74451a0445SGeert Uytterhoeven  - clocks
75451a0445SGeert Uytterhoeven  - power-domains
76451a0445SGeert Uytterhoeven  - '#sound-dai-cells'
772f52475bSKuninori Morimoto
787f464532SRob HerringadditionalProperties: false
797f464532SRob Herring
802f52475bSKuninori Morimotoexamples:
812f52475bSKuninori Morimoto  - |
82451a0445SGeert Uytterhoeven    #include <dt-bindings/clock/r8a7740-clock.h>
83451a0445SGeert Uytterhoeven    #include <dt-bindings/interrupt-controller/arm-gic.h>
84451a0445SGeert Uytterhoeven    sh_fsi2: sound@fe1f0000 {
852f52475bSKuninori Morimoto            compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2";
86451a0445SGeert Uytterhoeven            reg = <0xfe1f0000 0x400>;
87451a0445SGeert Uytterhoeven            interrupts = <GIC_SPI 9 0x4>;
88451a0445SGeert Uytterhoeven            clocks = <&mstp3_clks R8A7740_CLK_FSI>;
89451a0445SGeert Uytterhoeven            power-domains = <&pd_a4mp>;
902f52475bSKuninori Morimoto
91451a0445SGeert Uytterhoeven            #sound-dai-cells = <1>;
922f52475bSKuninori Morimoto            fsia,spdif-connection;
932f52475bSKuninori Morimoto            fsia,stream-mode-support;
942f52475bSKuninori Morimoto            fsia,use-internal-clock;
952f52475bSKuninori Morimoto    };
96