Skip to content

Commit e6e214b

Browse files
lumagrobherring
authored andcommitted
dt-bindings: bus: convert qcom,ssbi schema to YAML format
Convert arm/msm/ssbi.txt yo YAML, moving it to the directory with bus bindings. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230822001349.899298-4-dmitry.baryshkov@linaro.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 02dfc6a commit e6e214b

2 files changed

Lines changed: 63 additions & 18 deletions

File tree

Documentation/devicetree/bindings/arm/msm/ssbi.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
...

0 commit comments

Comments
 (0)