xref: /freebsd/sys/contrib/device-tree/Bindings/spi/sprd,sc9860-spi.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/sprd,sc9860-spi.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: Spreadtrum SC9860 SPI Controller
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotmaintainers:
10*5f62a964SEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
11*5f62a964SEmmanuel Vadot  - Baolin Wang <baolin.wang7@gmail.com>
12*5f62a964SEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
13*5f62a964SEmmanuel Vadot
14*5f62a964SEmmanuel Vadotproperties:
15*5f62a964SEmmanuel Vadot  compatible:
16*5f62a964SEmmanuel Vadot    const: sprd,sc9860-spi
17*5f62a964SEmmanuel Vadot
18*5f62a964SEmmanuel Vadot  reg:
19*5f62a964SEmmanuel Vadot    maxItems: 1
20*5f62a964SEmmanuel Vadot
21*5f62a964SEmmanuel Vadot  interrupts:
22*5f62a964SEmmanuel Vadot    maxItems: 1
23*5f62a964SEmmanuel Vadot
24*5f62a964SEmmanuel Vadot  clocks:
25*5f62a964SEmmanuel Vadot    items:
26*5f62a964SEmmanuel Vadot      - description: SPI clock
27*5f62a964SEmmanuel Vadot      - description: SPI source (parent) clock
28*5f62a964SEmmanuel Vadot      - description: SPI module enable clock
29*5f62a964SEmmanuel Vadot
30*5f62a964SEmmanuel Vadot  clock-names:
31*5f62a964SEmmanuel Vadot    items:
32*5f62a964SEmmanuel Vadot      - const: spi
33*5f62a964SEmmanuel Vadot      - const: source
34*5f62a964SEmmanuel Vadot      - const: enable
35*5f62a964SEmmanuel Vadot
36*5f62a964SEmmanuel Vadot  dmas:
37*5f62a964SEmmanuel Vadot    maxItems: 2
38*5f62a964SEmmanuel Vadot
39*5f62a964SEmmanuel Vadot  dma-names:
40*5f62a964SEmmanuel Vadot    items:
41*5f62a964SEmmanuel Vadot      - const: rx_chn
42*5f62a964SEmmanuel Vadot      - const: tx_chn
43*5f62a964SEmmanuel Vadot
44*5f62a964SEmmanuel Vadotrequired:
45*5f62a964SEmmanuel Vadot  - compatible
46*5f62a964SEmmanuel Vadot  - reg
47*5f62a964SEmmanuel Vadot  - interrupts
48*5f62a964SEmmanuel Vadot  - clocks
49*5f62a964SEmmanuel Vadot  - clock-names
50*5f62a964SEmmanuel Vadot
51*5f62a964SEmmanuel VadotallOf:
52*5f62a964SEmmanuel Vadot  - $ref: spi-controller.yaml#
53*5f62a964SEmmanuel Vadot
54*5f62a964SEmmanuel VadotunevaluatedProperties: false
55*5f62a964SEmmanuel Vadot
56*5f62a964SEmmanuel Vadotexamples:
57*5f62a964SEmmanuel Vadot  - |
58*5f62a964SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
59*5f62a964SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
60*5f62a964SEmmanuel Vadot
61*5f62a964SEmmanuel Vadot    spi@70a00000 {
62*5f62a964SEmmanuel Vadot      compatible = "sprd,sc9860-spi";
63*5f62a964SEmmanuel Vadot      reg = <0x70a00000 0x1000>;
64*5f62a964SEmmanuel Vadot      interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
65*5f62a964SEmmanuel Vadot      clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>;
66*5f62a964SEmmanuel Vadot      clock-names = "spi", "source", "enable";
67*5f62a964SEmmanuel Vadot      dmas = <&apdma 11 11>, <&apdma 12 12>;
68*5f62a964SEmmanuel Vadot      dma-names = "rx_chn", "tx_chn";
69*5f62a964SEmmanuel Vadot      #address-cells = <1>;
70*5f62a964SEmmanuel Vadot      #size-cells = <0>;
71*5f62a964SEmmanuel Vadot    };
72*5f62a964SEmmanuel Vadot...
73