xref: /linux/Documentation/devicetree/bindings/sound/renesas,fsi.yaml (revision 2f52475bac7e1572cdc1f045bbd69205f828ed68)
1*2f52475bSKuninori Morimoto# SPDX-License-Identifier: GPL-2.0
2*2f52475bSKuninori Morimoto%YAML 1.2
3*2f52475bSKuninori Morimoto---
4*2f52475bSKuninori Morimoto$id: http://devicetree.org/schemas/sound/renesas,fsi.yaml#
5*2f52475bSKuninori Morimoto$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2f52475bSKuninori Morimoto
7*2f52475bSKuninori Morimototitle: Renesas FSI Sound Driver Device Tree Bindings
8*2f52475bSKuninori Morimoto
9*2f52475bSKuninori Morimotomaintainers:
10*2f52475bSKuninori Morimoto  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
11*2f52475bSKuninori Morimoto
12*2f52475bSKuninori Morimotoproperties:
13*2f52475bSKuninori Morimoto  $nodename:
14*2f52475bSKuninori Morimoto    pattern: "^sound@.*"
15*2f52475bSKuninori Morimoto
16*2f52475bSKuninori Morimoto  compatible:
17*2f52475bSKuninori Morimoto    oneOf:
18*2f52475bSKuninori Morimoto      # for FSI2 SoC
19*2f52475bSKuninori Morimoto      - items:
20*2f52475bSKuninori Morimoto        - enum:
21*2f52475bSKuninori Morimoto          - renesas,fsi2-sh73a0
22*2f52475bSKuninori Morimoto          - renesas,fsi2-r8a7740
23*2f52475bSKuninori Morimoto        - enum:
24*2f52475bSKuninori Morimoto          - renesas,sh_fsi2
25*2f52475bSKuninori Morimoto      # for Generic
26*2f52475bSKuninori Morimoto      - items:
27*2f52475bSKuninori Morimoto        - enum:
28*2f52475bSKuninori Morimoto          - renesas,sh_fsi
29*2f52475bSKuninori Morimoto          - renesas,sh_fsi2
30*2f52475bSKuninori Morimoto
31*2f52475bSKuninori Morimoto  reg:
32*2f52475bSKuninori Morimoto    maxItems: 1
33*2f52475bSKuninori Morimoto
34*2f52475bSKuninori Morimoto  interrupts:
35*2f52475bSKuninori Morimoto    maxItems: 1
36*2f52475bSKuninori Morimoto
37*2f52475bSKuninori Morimoto  fsia,spdif-connection:
38*2f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
39*2f52475bSKuninori Morimoto    description: FSI is connected by S/PDIF
40*2f52475bSKuninori Morimoto
41*2f52475bSKuninori Morimoto  fsia,stream-mode-support:
42*2f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
43*2f52475bSKuninori Morimoto    description: FSI supports 16bit stream mode
44*2f52475bSKuninori Morimoto
45*2f52475bSKuninori Morimoto  fsia,use-internal-clock:
46*2f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
47*2f52475bSKuninori Morimoto    description: FSI uses internal clock when master mode
48*2f52475bSKuninori Morimoto
49*2f52475bSKuninori Morimoto  fsib,spdif-connection:
50*2f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
51*2f52475bSKuninori Morimoto    description: same as fsia
52*2f52475bSKuninori Morimoto
53*2f52475bSKuninori Morimoto  fsib,stream-mode-support:
54*2f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
55*2f52475bSKuninori Morimoto    description: same as fsia
56*2f52475bSKuninori Morimoto
57*2f52475bSKuninori Morimoto  fsib,use-internal-clock:
58*2f52475bSKuninori Morimoto    $ref: /schemas/types.yaml#/definitions/flag
59*2f52475bSKuninori Morimoto    description: same as fsia
60*2f52475bSKuninori Morimoto
61*2f52475bSKuninori Morimotorequired:
62*2f52475bSKuninori Morimoto  - compatible
63*2f52475bSKuninori Morimoto  - reg
64*2f52475bSKuninori Morimoto  - interrupts
65*2f52475bSKuninori Morimoto
66*2f52475bSKuninori Morimotoexamples:
67*2f52475bSKuninori Morimoto  - |
68*2f52475bSKuninori Morimoto    sh_fsi2: sound@ec230000 {
69*2f52475bSKuninori Morimoto            compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2";
70*2f52475bSKuninori Morimoto            reg = <0xec230000 0x400>;
71*2f52475bSKuninori Morimoto            interrupts = <0 146 0x4>;
72*2f52475bSKuninori Morimoto
73*2f52475bSKuninori Morimoto            fsia,spdif-connection;
74*2f52475bSKuninori Morimoto            fsia,stream-mode-support;
75*2f52475bSKuninori Morimoto            fsia,use-internal-clock;
76*2f52475bSKuninori Morimoto    };
77