1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/bus/qcom,ssbi.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Single-wire Serial Bus Interface (SSBI)
8
9description:
10  Some Qualcomm MSM devices contain a point-to-point serial bus used to
11  communicate with a limited range of devices (mostly power management
12  chips).
13
14maintainers:
15  - Andy Gross <agross@kernel.org>
16  - Bjorn Andersson <andersson@kernel.org>
17
18properties:
19  compatible:
20    const: qcom,ssbi
21
22  reg:
23    maxItems: 1
24
25  qcom,controller-type:
26    description:
27      Indicates the SSBI bus variant the controller should use to talk
28      with the slave device. The type chosen is determined by the attached
29      slave.
30    enum:
31      - ssbi
32      - ssbi2
33      - pmic-arbiter
34
35  pmic:
36    $ref: /schemas/mfd/qcom-pm8xxx.yaml#
37
38required:
39  - compatible
40  - reg
41  - qcom,controller-type
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    ssbi@c00000 {
49        compatible = "qcom,ssbi";
50        reg = <0x00c00000 0x1000>;
51        qcom,controller-type = "pmic-arbiter";
52
53        pmic {
54            compatible = "qcom,pm8821";
55            interrupt-parent = <&msmgpio>;
56            interrupts = <76 IRQ_TYPE_LEVEL_LOW>;
57            #interrupt-cells = <2>;
58            interrupt-controller;
59            #address-cells = <1>;
60            #size-cells = <0>;
61        };
62    };
63...
64