Skip to contentSkip to conversation

dt-bindings: ingenic,i2c: Rework interrupts in example

PATCH Applied Rob Herring 1 participant 2 messages Jan 19, 2022 – Jan 23, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: ingenic,i2c: Rework interrupts in example

In order to determine the number of interrupt cells in examples, the examples will require all 'interrupts' properties to use the same number of cells or have explicit interrupt provider node(s). As the former is simpler, update the Ingenic example to use 2 interrupt cells everywhere.

---
 Documentation/devicetree/bindings/i2c/ingenic,i2c.yaml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Documentation/devicetree/bindings/i2c/ingenic,i2c.yaml +1 -3
index febde6cc5f69..af6d64a6da6e 100644
@@ -69,8 +69,7 @@ examples:
       #size-cells = <0>;
       reg = <0x10054000 0x1000>;
 
-      interrupt-parent = <&intc>;
-      interrupts = <56>;
+      interrupts = <56 IRQ_TYPE_LEVEL_LOW>;
 
       clocks = <&cgu JZ4780_CLK_SMB4>;
       pinctrl-names = "default";
@@ -86,7 +85,6 @@ examples:
         compatible = "nxp,pcf8563";
         reg = <0x51>;
 
-        interrupt-parent = <&gpf>;
         interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
       };
     };
Signature · 1 line
2.32.0
author maintainer Applied
#1 lore raw
Quoted 10 lines · Rob Herring

In order to determine the number of interrupt cells in examples, the examples will require all 'interrupts' properties to use the same number of cells or have explicit interrupt provider node(s). As the former is simpler, update the Ingenic example to use 2 interrupt cells everywhere.

---
 Documentation/devicetree/bindings/i2c/ingenic,i2c.yaml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Applied, thanks!