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