xref: /freebsd/sys/contrib/device-tree/Bindings/spi/spi-cadence.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1*5956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5956d97fSEmmanuel Vadot%YAML 1.2
3*5956d97fSEmmanuel Vadot---
4*5956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/spi-cadence.yaml#
5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5956d97fSEmmanuel Vadot
7*5956d97fSEmmanuel Vadottitle: Cadence SPI controller Device Tree Bindings
8*5956d97fSEmmanuel Vadot
9*5956d97fSEmmanuel Vadotmaintainers:
10*5956d97fSEmmanuel Vadot  - Michal Simek <michal.simek@xilinx.com>
11*5956d97fSEmmanuel Vadot
12*5956d97fSEmmanuel VadotallOf:
13*5956d97fSEmmanuel Vadot  - $ref: "spi-controller.yaml#"
14*5956d97fSEmmanuel Vadot
15*5956d97fSEmmanuel Vadotproperties:
16*5956d97fSEmmanuel Vadot  compatible:
17*5956d97fSEmmanuel Vadot    enum:
18*5956d97fSEmmanuel Vadot      - cdns,spi-r1p6
19*5956d97fSEmmanuel Vadot      - xlnx,zynq-spi-r1p6
20*5956d97fSEmmanuel Vadot
21*5956d97fSEmmanuel Vadot  reg:
22*5956d97fSEmmanuel Vadot    maxItems: 1
23*5956d97fSEmmanuel Vadot
24*5956d97fSEmmanuel Vadot  interrupts:
25*5956d97fSEmmanuel Vadot    maxItems: 1
26*5956d97fSEmmanuel Vadot
27*5956d97fSEmmanuel Vadot  clock-names:
28*5956d97fSEmmanuel Vadot    items:
29*5956d97fSEmmanuel Vadot      - const: ref_clk
30*5956d97fSEmmanuel Vadot      - const: pclk
31*5956d97fSEmmanuel Vadot
32*5956d97fSEmmanuel Vadot  clocks:
33*5956d97fSEmmanuel Vadot    maxItems: 2
34*5956d97fSEmmanuel Vadot
35*5956d97fSEmmanuel Vadot  num-cs:
36*5956d97fSEmmanuel Vadot    description: |
37*5956d97fSEmmanuel Vadot      Number of chip selects used. If a decoder is used,
38*5956d97fSEmmanuel Vadot      this will be the number of chip selects after the
39*5956d97fSEmmanuel Vadot      decoder.
40*5956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41*5956d97fSEmmanuel Vadot    minimum: 1
42*5956d97fSEmmanuel Vadot    maximum: 4
43*5956d97fSEmmanuel Vadot    default: 4
44*5956d97fSEmmanuel Vadot
45*5956d97fSEmmanuel Vadot  is-decoded-cs:
46*5956d97fSEmmanuel Vadot    description: |
47*5956d97fSEmmanuel Vadot      Flag to indicate whether decoder is used or not.
48*5956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
49*5956d97fSEmmanuel Vadot    enum: [ 0, 1 ]
50*5956d97fSEmmanuel Vadot    default: 0
51*5956d97fSEmmanuel Vadot
52*5956d97fSEmmanuel VadotunevaluatedProperties: false
53*5956d97fSEmmanuel Vadot
54*5956d97fSEmmanuel Vadotexamples:
55*5956d97fSEmmanuel Vadot  - |
56*5956d97fSEmmanuel Vadot    spi@e0007000 {
57*5956d97fSEmmanuel Vadot      compatible = "xlnx,zynq-spi-r1p6";
58*5956d97fSEmmanuel Vadot      clock-names = "ref_clk", "pclk";
59*5956d97fSEmmanuel Vadot      clocks = <&clkc 26>, <&clkc 35>;
60*5956d97fSEmmanuel Vadot      interrupt-parent = <&intc>;
61*5956d97fSEmmanuel Vadot      interrupts = <0 49 4>;
62*5956d97fSEmmanuel Vadot      num-cs = <4>;
63*5956d97fSEmmanuel Vadot      is-decoded-cs = <0>;
64*5956d97fSEmmanuel Vadot      reg = <0xe0007000 0x1000>;
65*5956d97fSEmmanuel Vadot    };
66*5956d97fSEmmanuel Vadot...
67