Skip to contentSkip to conversation

dt-bindings: spmi: clean up hisilicon binding

PATCH Applied Johan Hovold 4 participants 10 messages Nov 30, 2023 – Apr 8, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover dt-bindings: spmi: clean up hisilicon binding

When reviewing the various SPMI PMIC bindings, I noticed that several examples were incorrect and misleading and could also use some cleanup.

This series addresses the related hisilicon SPMI controller binding.

Johan

Johan Hovold (2):
dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding
references
dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example

 .../spmi/hisilicon,hisi-spmi-controller.yaml    | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
Signature · 1 line
2.41.0
#1 lore raw

PATCH 1/2 dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding references

Fix up the free text binding references which were not updated when moving the bindings out of staging and which had a leading current directory component, respectively.

Fixes 9bd9e0de1cf5 ("mfd: hi6421-spmi-pmic: move driver from staging")
---
 .../bindings/spmi/hisilicon,hisi-spmi-controller.yaml         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml +2 -2
index f882903769f9..eee7c8d4cf4a 100644
@@ -14,7 +14,7 @@ description: |
   It is a MIPI System Power Management (SPMI) controller.
 
   The PMIC part is provided by
-  ./Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.
+  Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.
 
 allOf:
   - $ref: spmi.yaml#
@@ -48,7 +48,7 @@ patternProperties:
       PMIC properties, which are specific to the used SPMI PMIC device(s).
       When used in combination with HiSilicon 6421v600, the properties
       are documented at
-      drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
+      Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
 
 unevaluatedProperties: false
 
Signature · 1 line
2.41.0
Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding references

Quoted 7 lines · Johan Hovold

Fix up the free text binding references which were not updated when moving the bindings out of staging and which had a leading current directory component, respectively.

Fixes 9bd9e0de1cf5 ("mfd: hi6421-spmi-pmic: move driver from staging")

---

Best regards,
Krzysztof

maintainer Applied
#3 lore raw

Re: [PATCH 1/2] dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding references

In reply to Johan Hovold

Quoting Johan Hovold (2023-11-30 09:37:56)

Quoted 7 lines

Fix up the free text binding references which were not updated when moving the bindings out of staging and which had a leading current directory component, respectively.

Fixes 9bd9e0de1cf5 ("mfd: hi6421-spmi-pmic: move driver from staging")

---

Applied to spmi-next

#4 lore raw

PATCH 2/2 dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example

In reply to Johan Hovold

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.

---
 .../spmi/hisilicon,hisi-spmi-controller.yaml        | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml +5 -8
index eee7c8d4cf4a..3ccf35de3719 100644
@@ -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 */
         };
-      };
     };
Signature · 1 line
2.41.0
maintainer Applied
#6 lore raw

Re: [PATCH 2/2] dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example

In reply to Johan Hovold

Quoting Johan Hovold (2023-11-30 09:37:57)

Quoted 6 lines

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.

---

Applied to spmi-next

#7 lore raw
In reply to Johan Hovold

Hi Stephen,

Quoted 9 lines · Johan Hovold

When reviewing the various SPMI PMIC bindings, I noticed that several examples were incorrect and misleading and could also use some cleanup.

This series addresses the related hisilicon SPMI controller binding.

Johan Hovold (2):
dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding
references
dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example

I noticed that these are not yet in linux-next so sending a reminder.

Johan

#8 lore raw

Hi Stephen,

Quoted 4 lines · Johan Hovold
Quoted 3 lines · Johan Hovold

When reviewing the various SPMI PMIC bindings, I noticed that several examples were incorrect and misleading and could also use some cleanup.

Quoted 8 lines
Quoted 6 lines

This series addresses the related hisilicon SPMI controller binding.

Johan Hovold (2):
dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding
references
dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example

I noticed that these are not yet in linux-next so sending a reminder.

This series never made it into 6.8, but could you pick it up for 6.9?

Johan

#9 lore raw

Hi Stephen,

Quoted 7 lines · Johan Hovold
Quoted 6 lines · Johan Hovold
Quoted 4 lines · Johan Hovold

When reviewing the various SPMI PMIC bindings, I noticed that several examples were incorrect and misleading and could also use some cleanup.

This series addresses the related hisilicon SPMI controller binding.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Johan Hovold (2):
dt-bindings: spmi: hisilicon,hisi-spmi-controller: fix binding
references
dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example

I noticed that these are not yet in linux-next so sending a reminder.

This series never made it into 6.8, but could you pick it up for 6.9?

It's now been three months since I posted this series. Could you please pick it up for 6.9?

Johan