public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Johan Hovold <johan+linaro@kernel.org>,
	linux-kernel@vger.kernel.org, patches@lists.linux.dev,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: [PATCH 03/12] dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example
Date: Tue,  7 May 2024 14:07:40 -0700	[thread overview]
Message-ID: <20240507210809.3479953-4-sboyd@kernel.org> (raw)
In-Reply-To: <20240507210809.3479953-1-sboyd@kernel.org>

From: Johan Hovold <johan+linaro@kernel.org>

Clean up the binding example by dropping the unnecessary parent bus
node, using a define for the second register value of the PMIC child and
increasing indentation to four spaces.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231130173757.13011-3-johan+linaro@kernel.org
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
---
 .../spmi/hisilicon,hisi-spmi-controller.yaml        | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml b/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml
index eee7c8d4cf4a..3ccf35de3719 100644
--- a/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml
+++ b/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml
@@ -54,20 +54,17 @@ unevaluatedProperties: false
 
 examples:
   - |
-    bus {
-      #address-cells = <2>;
-      #size-cells = <2>;
+    #include <dt-bindings/spmi/spmi.h>
 
-      spmi: spmi@fff24000 {
+    spmi@fff24000 {
         compatible = "hisilicon,kirin970-spmi-controller";
+        reg = <0xfff24000 0x1000>;
         #address-cells = <2>;
         #size-cells = <0>;
-        reg = <0x0 0xfff24000 0x0 0x1000>;
         hisilicon,spmi-channel = <2>;
 
         pmic@0 {
-          reg = <0 0>;
-          /* pmic properties */
+            reg = <0 SPMI_USID>;
+            /* pmic properties */
         };
-      };
     };
-- 
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/
https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git


  parent reply	other threads:[~2024-05-07 21:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07 21:07 [PATCH 00/12] SPMI patches for the merge window Stephen Boyd
2024-05-07 21:07 ` [PATCH 01/12] spmi: make spmi_bus_type const Stephen Boyd
2024-05-07 21:07 ` [PATCH 02/12] dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding references Stephen Boyd
2024-05-07 21:07 ` Stephen Boyd [this message]
2024-05-07 21:07 ` [PATCH 04/12] spmi: hisi-spmi-controller: Do not override device identifier Stephen Boyd
2024-05-07 21:07 ` [PATCH 05/12] spmi: pmic-arb: Replace three IS_ERR() calls by null pointer checks in spmi_pmic_arb_probe() Stephen Boyd
2024-05-07 21:07 ` [PATCH 06/12] dt-bindings: spmi: Add X1E80100 SPMI PMIC ARB schema Stephen Boyd
2024-05-07 21:07 ` [PATCH 07/12] dt-bindings: spmi: Deprecate qcom,bus-id Stephen Boyd
2024-05-07 21:07 ` [PATCH 08/12] spmi: pmic-arb: Fix some compile warnings about members not being described Stephen Boyd
2024-05-07 21:07 ` [PATCH 09/12] spmi: pmic-arb: Make the APID init a version operation Stephen Boyd
2024-05-07 21:07 ` [PATCH 10/12] spmi: pmic-arb: Make core resources acquiring " Stephen Boyd
2024-05-07 21:07 ` [PATCH 11/12] spmi: pmic-arb: Register controller for bus instead of arbiter Stephen Boyd
2024-05-07 21:07 ` [PATCH 12/12] spmi: pmic-arb: Add multi bus support Stephen Boyd

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=20240507210809.3479953-4-sboyd@kernel.org \
    --to=sboyd@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan+linaro@kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@lists.linux.dev \
    /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