Skip to contentSkip to conversation

dt-bindings: power/supply: qcom,pmi8998-charger: Drop incorrect "#interrupt-cells" from example

PATCH Applied Rob Herring (Arm) 3 participants 3 messages Sep 26, 2024 – Oct 16, 2024

Subsystems (3)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: power/supply: qcom,pmi8998-charger: Drop incorrect "#interrupt-cells" from example

Enabling dtc interrupt_provider check reveals the example is missing the "interrupt-controller" property as it is a dependency of "#interrupt-cells". However, the PMIC parent node is not an interrupt controller at all, so the "#interrupt-cells" is erroneous.

---
v2:
- Drop "#interrupt-cells" rather than add "interrupt-controller"

---
 .../devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml   | 1 -
 1 file changed, 1 deletion(-)
Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml +0 -1
index 277c47e048b6..a0f9d49ff8fb 100644
@@ -60,7 +60,6 @@ examples:
     pmic {
       #address-cells = <1>;
       #size-cells = <0>;
-      #interrupt-cells = <4>;
 
       charger@1000 {
         compatible = "qcom,pmi8998-charger";
Signature · 1 line
2.45.2
Reviewed-by on v2 1/1
#1 lore raw
Quoted 9 lines · Rob Herring (Arm)

Enabling dtc interrupt_provider check reveals the example is missing the "interrupt-controller" property as it is a dependency of "#interrupt-cells". However, the PMIC parent node is not an interrupt controller at all, so the "#interrupt-cells" is erroneous.

---
v2:
- Drop "#interrupt-cells" rather than add "interrupt-controller"

Best regards,
Krzysztof

#2 lore raw
In reply to Rob Herring (Arm)
Quoted 6 lines · Rob Herring (Arm)

Enabling dtc interrupt_provider check reveals the example is missing the "interrupt-controller" property as it is a dependency of "#interrupt-cells". However, the PMIC parent node is not an interrupt controller at all, so the "#interrupt-cells" is erroneous.

Applied, thanks!

[1/1] dt-bindings: power/supply: qcom,pmi8998-charger: Drop incorrect "#interrupt-cells" from example

      commit: 5d121065a6993e5ab4ccc0c9629241f256d11ad0

Best regards,

Signature · 1 line
Sebastian Reichel <[email protected]>