xref: /linux/Documentation/devicetree/bindings/spi/renesas,hspi.yaml (revision 9f60a65bc5e6cd882120d8477cc7bec065887e3d)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/renesas,hspi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas HSPI
8
9maintainers:
10  - Geert Uytterhoeven <geert+renesas@glider.be>
11
12allOf:
13  - $ref: spi-controller.yaml#
14
15properties:
16  compatible:
17    items:
18      - enum:
19          - renesas,hspi-r8a7778 # R-Car M1A
20          - renesas,hspi-r8a7779 # R-Car H1
21      - const: renesas,hspi
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  clocks:
30    maxItems: 1
31
32  power-domains:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38  - interrupts
39  - clocks
40  - '#address-cells'
41  - '#size-cells'
42
43examples:
44  - |
45    #include <dt-bindings/clock/r8a7778-clock.h>
46    #include <dt-bindings/interrupt-controller/irq.h>
47
48    hspi0: spi@fffc7000 {
49        compatible = "renesas,hspi-r8a7778", "renesas,hspi";
50        reg = <0xfffc7000 0x18>;
51        interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
52        clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
53        power-domains = <&cpg_clocks>;
54        #address-cells = <1>;
55        #size-cells = <0>;
56    };
57
58