xref: /linux/Documentation/devicetree/bindings/spi/qcom,sa8255p-geni-spi.yaml (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/qcom,sa8255p-geni-spi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: GENI based Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI)
8
9maintainers:
10  - Praveen Talari <praveen.talari@oss.qualcomm.com>
11
12properties:
13  compatible:
14    oneOf:
15      - const: qcom,sa8255p-geni-spi
16      - items:
17          - const: qcom,sa8797p-geni-spi
18          - const: qcom,sa8255p-geni-spi
19
20  reg:
21    maxItems: 1
22
23  dmas:
24    maxItems: 2
25
26  dma-names:
27    items:
28      - const: tx
29      - const: rx
30
31  interrupts:
32    maxItems: 1
33
34  power-domains:
35    maxItems: 2
36
37  power-domain-names:
38    items:
39      - const: power
40      - const: perf
41
42required:
43  - compatible
44  - reg
45  - interrupts
46  - power-domains
47  - power-domain-names
48
49allOf:
50  - $ref: /schemas/spi/spi-controller.yaml#
51
52unevaluatedProperties: false
53
54examples:
55  - |
56    #include <dt-bindings/interrupt-controller/arm-gic.h>
57    #include <dt-bindings/dma/qcom-gpi.h>
58
59    spi@888000 {
60        compatible = "qcom,sa8255p-geni-spi";
61        reg = <0x888000 0x4000>;
62        interrupts = <GIC_SPI 584 IRQ_TYPE_LEVEL_HIGH>;
63        dmas = <&gpi_dma0 0 0 QCOM_GPI_SPI>,
64               <&gpi_dma0 1 0 QCOM_GPI_SPI>;
65        dma-names = "tx", "rx";
66        power-domains = <&scmi0_pd 0>, <&scmi0_dvfs 0>;
67        power-domain-names = "power", "perf";
68    };
69