1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/socionext,synquacer-spi.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Socionext SynQuacer HS-SPI Controller
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - Masahisa Kojima <masahisa.kojima@linaro.org>
11*8bab661aSEmmanuel Vadot  - Jassi Brar <jaswinder.singh@linaro.org>
12*8bab661aSEmmanuel Vadot
13*8bab661aSEmmanuel VadotallOf:
14*8bab661aSEmmanuel Vadot  - $ref: spi-controller.yaml#
15*8bab661aSEmmanuel Vadot
16*8bab661aSEmmanuel Vadotproperties:
17*8bab661aSEmmanuel Vadot  compatible:
18*8bab661aSEmmanuel Vadot    const: socionext,synquacer-spi
19*8bab661aSEmmanuel Vadot
20*8bab661aSEmmanuel Vadot  reg:
21*8bab661aSEmmanuel Vadot    maxItems: 1
22*8bab661aSEmmanuel Vadot
23*8bab661aSEmmanuel Vadot  clocks:
24*8bab661aSEmmanuel Vadot    minItems: 1
25*8bab661aSEmmanuel Vadot    items:
26*8bab661aSEmmanuel Vadot      - description: core clock
27*8bab661aSEmmanuel Vadot      - description: rate clock
28*8bab661aSEmmanuel Vadot
29*8bab661aSEmmanuel Vadot  clock-names:
30*8bab661aSEmmanuel Vadot    minItems: 1
31*8bab661aSEmmanuel Vadot    items:
32*8bab661aSEmmanuel Vadot      - const: iHCLK
33*8bab661aSEmmanuel Vadot      - const: iPCLK
34*8bab661aSEmmanuel Vadot
35*8bab661aSEmmanuel Vadot  interrupts:
36*8bab661aSEmmanuel Vadot    items:
37*8bab661aSEmmanuel Vadot      - description: Receive Interrupt
38*8bab661aSEmmanuel Vadot      - description: Transmit Interrupt
39*8bab661aSEmmanuel Vadot      - description: Fault Interrupt
40*8bab661aSEmmanuel Vadot
41*8bab661aSEmmanuel Vadot  socionext,use-rtm:
42*8bab661aSEmmanuel Vadot    type: boolean
43*8bab661aSEmmanuel Vadot    description: Enable using "retimed clock" for RX
44*8bab661aSEmmanuel Vadot
45*8bab661aSEmmanuel Vadot  socionext,set-aces:
46*8bab661aSEmmanuel Vadot    type: boolean
47*8bab661aSEmmanuel Vadot    description: Enable same active clock edges field to be set
48*8bab661aSEmmanuel Vadot
49*8bab661aSEmmanuel Vadotrequired:
50*8bab661aSEmmanuel Vadot  - compatible
51*8bab661aSEmmanuel Vadot  - reg
52*8bab661aSEmmanuel Vadot  - interrupts
53*8bab661aSEmmanuel Vadot  - clocks
54*8bab661aSEmmanuel Vadot  - clock-names
55*8bab661aSEmmanuel Vadot
56*8bab661aSEmmanuel VadotunevaluatedProperties: false
57*8bab661aSEmmanuel Vadot
58*8bab661aSEmmanuel Vadotexamples:
59*8bab661aSEmmanuel Vadot  - |
60*8bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
61*8bab661aSEmmanuel Vadot
62*8bab661aSEmmanuel Vadot    spi@ff110000 {
63*8bab661aSEmmanuel Vadot        compatible = "socionext,synquacer-spi";
64*8bab661aSEmmanuel Vadot        reg = <0xff110000 0x1000>;
65*8bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
66*8bab661aSEmmanuel Vadot               <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
67*8bab661aSEmmanuel Vadot               <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
68*8bab661aSEmmanuel Vadot        clocks = <&clk_hsspi>;
69*8bab661aSEmmanuel Vadot        clock-names = "iHCLK";
70*8bab661aSEmmanuel Vadot        socionext,use-rtm;
71*8bab661aSEmmanuel Vadot        socionext,set-aces;
72*8bab661aSEmmanuel Vadot    };
73*8bab661aSEmmanuel Vadot...
74