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
46d235b282SKuninori MorimotopatternProperties:
47d235b282SKuninori Morimoto  "^fsi(a|b),spdif-connection$":
482f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
492f52475bSKuninori Morimoto    description: FSI is connected by S/PDIF
502f52475bSKuninori Morimoto
51d235b282SKuninori Morimoto  "^fsi(a|b),stream-mode-support$":
522f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
532f52475bSKuninori Morimoto    description: FSI supports 16bit stream mode
542f52475bSKuninori Morimoto
55d235b282SKuninori Morimoto  "^fsi(a|b),use-internal-clock$":
562f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
572f52475bSKuninori Morimoto    description: FSI uses internal clock when master mode
582f52475bSKuninori Morimoto
592f52475bSKuninori Morimotorequired:
602f52475bSKuninori Morimoto  - compatible
612f52475bSKuninori Morimoto  - reg
622f52475bSKuninori Morimoto  - interrupts
63451a0445SGeert Uytterhoeven  - clocks
64451a0445SGeert Uytterhoeven  - power-domains
65451a0445SGeert Uytterhoeven  - '#sound-dai-cells'
662f52475bSKuninori Morimoto
677f464532SRob HerringadditionalProperties: false
687f464532SRob Herring
692f52475bSKuninori Morimotoexamples:
702f52475bSKuninori Morimoto  - |
71451a0445SGeert Uytterhoeven    #include <dt-bindings/clock/r8a7740-clock.h>
72451a0445SGeert Uytterhoeven    #include <dt-bindings/interrupt-controller/arm-gic.h>
73451a0445SGeert Uytterhoeven    sh_fsi2: sound@fe1f0000 {
742f52475bSKuninori Morimoto            compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2";
75451a0445SGeert Uytterhoeven            reg = <0xfe1f0000 0x400>;
76451a0445SGeert Uytterhoeven            interrupts = <GIC_SPI 9 0x4>;
77451a0445SGeert Uytterhoeven            clocks = <&mstp3_clks R8A7740_CLK_FSI>;
78451a0445SGeert Uytterhoeven            power-domains = <&pd_a4mp>;
792f52475bSKuninori Morimoto
80451a0445SGeert Uytterhoeven            #sound-dai-cells = <1>;
812f52475bSKuninori Morimoto            fsia,spdif-connection;
822f52475bSKuninori Morimoto            fsia,stream-mode-support;
832f52475bSKuninori Morimoto            fsia,use-internal-clock;
842f52475bSKuninori Morimoto    };
85