xref: /linux/Documentation/devicetree/bindings/i2c/qcom,sa8255p-geni-i2c.yaml (revision abea5c349368a683e40fdc2e745099aaaacc89d7)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/qcom,sa8255p-geni-i2c.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm SA8255p QUP GENI I2C Controller
8
9maintainers:
10  - Praveen Talari <praveen.talari@oss.qualcomm.com>
11
12properties:
13  compatible:
14    oneOf:
15      - const: qcom,sa8255p-geni-i2c
16      - items:
17          - const: qcom,sa8797p-geni-i2c
18          - const: qcom,sa8255p-geni-i2c
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
48allOf:
49  - $ref: /schemas/i2c/i2c-controller.yaml#
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56    #include <dt-bindings/dma/qcom-gpi.h>
57
58    i2c@a90000 {
59        compatible = "qcom,sa8255p-geni-i2c";
60        reg = <0xa90000 0x4000>;
61        interrupts = <GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH>;
62        dmas = <&gpi_dma0 0 0 QCOM_GPI_I2C>,
63               <&gpi_dma0 1 0 QCOM_GPI_I2C>;
64        dma-names = "tx", "rx";
65        power-domains = <&scmi0_pd 0>, <&scmi0_dvfs 0>;
66        power-domain-names = "power", "perf";
67    };
68...
69