xref: /freebsd/sys/contrib/device-tree/Bindings/spi/renesas,rzv2m-csi.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f126890aSEmmanuel Vadot%YAML 1.2
3f126890aSEmmanuel Vadot---
4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/renesas,rzv2m-csi.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Renesas RZ/V2M Clocked Serial Interface (CSI)
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadotmaintainers:
10f126890aSEmmanuel Vadot  - Fabrizio Castro <fabrizio.castro.jz@renesas.com>
11f126890aSEmmanuel Vadot  - Geert Uytterhoeven <geert+renesas@glider.be>
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel VadotallOf:
14f126890aSEmmanuel Vadot  - $ref: spi-controller.yaml#
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadotproperties:
17f126890aSEmmanuel Vadot  compatible:
18f126890aSEmmanuel Vadot    const: renesas,rzv2m-csi
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot  reg:
21f126890aSEmmanuel Vadot    maxItems: 1
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot  interrupts:
24f126890aSEmmanuel Vadot    maxItems: 1
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot  clocks:
27f126890aSEmmanuel Vadot    items:
28f126890aSEmmanuel Vadot      - description: The clock used to generate the output clock (CSICLK)
29f126890aSEmmanuel Vadot      - description: Internal clock to access the registers (PCLK)
30f126890aSEmmanuel Vadot
31f126890aSEmmanuel Vadot  clock-names:
32f126890aSEmmanuel Vadot    items:
33f126890aSEmmanuel Vadot      - const: csiclk
34f126890aSEmmanuel Vadot      - const: pclk
35f126890aSEmmanuel Vadot
36f126890aSEmmanuel Vadot  resets:
37f126890aSEmmanuel Vadot    maxItems: 1
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadot  power-domains:
40f126890aSEmmanuel Vadot    maxItems: 1
41f126890aSEmmanuel Vadot
42*84943d6fSEmmanuel Vadot  renesas,csi-no-ss:
43*84943d6fSEmmanuel Vadot    type: boolean
44*84943d6fSEmmanuel Vadot    description:
45*84943d6fSEmmanuel Vadot      The CSI Slave Selection (SS) pin won't be used to enable transmission and
46*84943d6fSEmmanuel Vadot      reception. Only available when in target mode.
47*84943d6fSEmmanuel Vadot
48f126890aSEmmanuel Vadotrequired:
49f126890aSEmmanuel Vadot  - compatible
50f126890aSEmmanuel Vadot  - reg
51f126890aSEmmanuel Vadot  - interrupts
52f126890aSEmmanuel Vadot  - clocks
53f126890aSEmmanuel Vadot  - clock-names
54f126890aSEmmanuel Vadot  - resets
55f126890aSEmmanuel Vadot  - power-domains
56f126890aSEmmanuel Vadot  - '#address-cells'
57f126890aSEmmanuel Vadot  - '#size-cells'
58f126890aSEmmanuel Vadot
59*84943d6fSEmmanuel Vadotdependencies:
60*84943d6fSEmmanuel Vadot  renesas,csi-no-ss: [ spi-slave ]
61*84943d6fSEmmanuel Vadot
62f126890aSEmmanuel VadotunevaluatedProperties: false
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadotexamples:
65f126890aSEmmanuel Vadot  - |
66f126890aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
67f126890aSEmmanuel Vadot    #include <dt-bindings/clock/r9a09g011-cpg.h>
68f126890aSEmmanuel Vadot    csi4: spi@a4020200 {
69f126890aSEmmanuel Vadot        compatible = "renesas,rzv2m-csi";
70f126890aSEmmanuel Vadot        reg = <0xa4020200 0x80>;
71f126890aSEmmanuel Vadot        interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
72f126890aSEmmanuel Vadot        clocks = <&cpg CPG_MOD R9A09G011_CSI4_CLK>,
73f126890aSEmmanuel Vadot                 <&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>;
74f126890aSEmmanuel Vadot        clock-names = "csiclk", "pclk";
75f126890aSEmmanuel Vadot        resets = <&cpg R9A09G011_CSI_GPH_PRESETN>;
76f126890aSEmmanuel Vadot        power-domains = <&cpg>;
77f126890aSEmmanuel Vadot        #address-cells = <1>;
78f126890aSEmmanuel Vadot        #size-cells = <0>;
79f126890aSEmmanuel Vadot    };
80