Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dmitry Baryshkov and committed by
Rob Herring
e6e214b7 02dfc6ac

+63 -18
-18
Documentation/devicetree/bindings/arm/msm/ssbi.txt
··· 1 - * Qualcomm SSBI 2 - 3 - Some Qualcomm MSM devices contain a point-to-point serial bus used to 4 - communicate with a limited range of devices (mostly power management 5 - chips). 6 - 7 - These require the following properties: 8 - 9 - - compatible: "qcom,ssbi" 10 - 11 - - qcom,controller-type 12 - indicates the SSBI bus variant the controller should use to talk 13 - with the slave device. This should be one of "ssbi", "ssbi2", or 14 - "pmic-arbiter". The type chosen is determined by the attached 15 - slave. 16 - 17 - The slave device should be the single child node of the ssbi device 18 - with a compatible field.
+63
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 + ...