devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-input@vger.kernel.org
Subject: [PATCH v3 03/32] dt-bindings: bus: convert qcom,ssbi schema to YAML format
Date: Tue, 22 Aug 2023 03:13:20 +0300	[thread overview]
Message-ID: <20230822001349.899298-4-dmitry.baryshkov@linaro.org> (raw)
In-Reply-To: <20230822001349.899298-1-dmitry.baryshkov@linaro.org>

Convert arm/msm/ssbi.txt yo YAML, moving it to the directory with bus
bindings.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 .../devicetree/bindings/arm/msm/ssbi.txt      | 18 ------
 .../devicetree/bindings/bus/qcom,ssbi.yaml    | 63 +++++++++++++++++++
 2 files changed, 63 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/msm/ssbi.txt
 create mode 100644 Documentation/devicetree/bindings/bus/qcom,ssbi.yaml

diff --git a/Documentation/devicetree/bindings/arm/msm/ssbi.txt b/Documentation/devicetree/bindings/arm/msm/ssbi.txt
deleted file mode 100644
index 54fd5ced3401..000000000000
--- a/Documentation/devicetree/bindings/arm/msm/ssbi.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-* Qualcomm SSBI
-
-Some Qualcomm MSM devices contain a point-to-point serial bus used to
-communicate with a limited range of devices (mostly power management
-chips).
-
-These require the following properties:
-
-- compatible: "qcom,ssbi"
-
-- qcom,controller-type
-  indicates the SSBI bus variant the controller should use to talk
-  with the slave device.  This should be one of "ssbi", "ssbi2", or
-  "pmic-arbiter".  The type chosen is determined by the attached
-  slave.
-
-The slave device should be the single child node of the ssbi device
-with a compatible field.
diff --git a/Documentation/devicetree/bindings/bus/qcom,ssbi.yaml b/Documentation/devicetree/bindings/bus/qcom,ssbi.yaml
new file mode 100644
index 000000000000..693cfa9696b5
--- /dev/null
+++ b/Documentation/devicetree/bindings/bus/qcom,ssbi.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/bus/qcom,ssbi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Single-wire Serial Bus Interface (SSBI)
+
+description:
+  Some Qualcomm MSM devices contain a point-to-point serial bus used to
+  communicate with a limited range of devices (mostly power management
+  chips).
+
+maintainers:
+  - Andy Gross <agross@kernel.org>
+  - Bjorn Andersson <andersson@kernel.org>
+
+properties:
+  compatible:
+    const: qcom,ssbi
+
+  reg:
+    maxItems: 1
+
+  qcom,controller-type:
+    description:
+      Indicates the SSBI bus variant the controller should use to talk
+      with the slave device. The type chosen is determined by the attached
+      slave.
+    enum:
+      - ssbi
+      - ssbi2
+      - pmic-arbiter
+
+  pmic:
+    $ref: /schemas/mfd/qcom-pm8xxx.yaml#
+
+required:
+  - compatible
+  - reg
+  - qcom,controller-type
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    ssbi@c00000 {
+        compatible = "qcom,ssbi";
+        reg = <0x00c00000 0x1000>;
+        qcom,controller-type = "pmic-arbiter";
+
+        pmic {
+            compatible = "qcom,pm8821";
+            interrupt-parent = <&msmgpio>;
+            interrupts = <76 IRQ_TYPE_LEVEL_LOW>;
+            #interrupt-cells = <2>;
+            interrupt-controller;
+            #address-cells = <1>;
+            #size-cells = <0>;
+        };
+    };
+...
-- 
2.39.2


  parent reply	other threads:[~2023-08-22  0:14 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22  0:13 [PATCH v3 00/32] ARM: dts: qcom: cleanup PMIC usage Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 01/32] dt-bindings: input: qcom,pm8921-keypad: convert to YAML format Dmitry Baryshkov
2023-08-22  6:29   ` Krzysztof Kozlowski
2023-08-22  0:13 ` [PATCH v3 02/32] dt-bindings: mfd: qcom-pm8xxx: add missing child nodes Dmitry Baryshkov
2023-08-22  6:29   ` Krzysztof Kozlowski
2023-08-22  0:13 ` Dmitry Baryshkov [this message]
2023-08-22  6:30   ` [PATCH v3 03/32] dt-bindings: bus: convert qcom,ssbi schema to YAML format Krzysztof Kozlowski
2023-08-22 20:24   ` Rob Herring
2023-08-22  0:13 ` [PATCH v3 04/32] ARM: dts: qcom: apq8064: correct XOADC register address Dmitry Baryshkov
2023-08-22  6:31   ` Krzysztof Kozlowski
2023-08-22  0:13 ` [PATCH v3 05/32] ARM: dts: qcom: msm8960: introduce label for PMIC keypad Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 06/32] ARM: dts: qcom: msm8660-surf: use keypad label directly Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 07/32] ARM: dts: qcom: apq8064-nexus7: move sdcc1 node to proper place Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 08/32] ARM: dts: qcom: mdm9615-wp8548-mangoh-green: group include clauses Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 09/32] ARM: dts: qcom: strip prefix from PMIC files Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 10/32] ARM: dts: qcom: apq8064: fix PMIC node labels Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 11/32] ARM: dts: qcom: mdm9615: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 12/32] ARM: dts: qcom: msm8660: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 13/32] ARM: dts: qcom: msm8960: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 14/32] ARM: dts: qcom: msm8960: split PMIC to separate dtsi files Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 15/32] ARM: dts: qcom: apq8064: split PMICs " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 16/32] ARM: dts: qcom: mdm9615: split PMIC " Dmitry Baryshkov
2023-08-26 12:08   ` Konrad Dybcio
2023-08-26 13:43     ` Dmitry Baryshkov
2023-08-26 13:48       ` Konrad Dybcio
2023-08-26 14:03         ` Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 17/32] ARM: dts: qcom: msm8660: " Dmitry Baryshkov
2023-08-26 12:08   ` Konrad Dybcio
2023-08-26 13:49   ` Konrad Dybcio
2023-08-22  0:13 ` [PATCH v3 18/32] ARM: dts: qcom: pm8058: reorder nodes Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 19/32] ARM: dts: qcom: pm8921: " Dmitry Baryshkov
2023-08-26 10:28   ` Konrad Dybcio
2023-08-22  0:13 ` [PATCH v3 20/32] ARM: dts: qcom: pm8018: move reg property Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 21/32] ARM: dts: qcom: pm8921: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 22/32] ARM: dts: qcom: pm8058: use defined IRQ flags Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 23/32] ARM: dts: qcom: pm8921: switch to interrupts-extended Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 24/32] ARM: dts: qcom: pm8018: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 25/32] ARM: dts: qcom: pm8058: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 26/32] ARM: dts: qcom: apq8064: move RPM regulators to board files Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 27/32] ARM: dts: qcom: mdm9615: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 28/32] ARM: dts: qcom: msm8660: " Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 29/32] ARM: dts: qcom: msm8960: drop useless rpm regulators node Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 30/32] ARM: dts: qcom: msm8974: move regulators to board files Dmitry Baryshkov
2023-08-22  0:13 ` [PATCH v3 31/32] ARM: dts: qcom: pm8921: Disable keypad by default Dmitry Baryshkov
2023-08-26 10:27   ` Konrad Dybcio
2023-08-22  0:13 ` [PATCH v3 32/32] ARM: dts: qcom: apq8060-dragonboard: rename mpp ADC channels to adc-channel Dmitry Baryshkov
2023-08-26 10:25   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230822001349.899298-4-dmitry.baryshkov@linaro.org \
    --to=dmitry.baryshkov@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).