Linux 6.7-rc7
[linux-modified.git] / Documentation / devicetree / bindings / bus / qcom,ssbi.yaml
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
7 title: Qualcomm Single-wire Serial Bus Interface (SSBI)
8
9 description:
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
14 maintainers:
15   - Andy Gross <agross@kernel.org>
16   - Bjorn Andersson <andersson@kernel.org>
17
18 properties:
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
38 required:
39   - compatible
40   - reg
41   - qcom,controller-type
42
43 additionalProperties: false
44
45 examples:
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 ...