Skip to contentSkip to conversation

dt-bindings: input: touchscreen: goodix: clarify irq-gpios misleading text

PATCH Superseded Luca Ceresoli 4 participants 6 messages Sep 25, 2023 – Nov 28, 2023

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

PATCH v2 1/1 dt-bindings: input: touchscreen: goodix: clarify irq-gpios misleading text

The irq-gpios description misleading, apparently saying that driving the IRQ GPIO resets the device, which is even more puzzling as there is a reset GPIO as well.

In reality the IRQ pin can be driven during the reset sequence to configure the client address, as it becomes clear after checking both the datasheet and the driver code. Improve the text to clarify that.

Also rephrase to remove reference to the driver, which is not appropriate in the bindings.

---

Changed in v2:
- reworded to clarify even further

---
 .../devicetree/bindings/input/touchscreen/goodix.yaml        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +3 -2
index 3d016b87c8df..2a2d86cfd104 100644
@@ -37,8 +37,9 @@ properties:
     maxItems: 1
 
   irq-gpios:
-    description: GPIO pin used for IRQ. The driver uses the interrupt gpio pin
-      as output to reset the device.
+    description: GPIO pin used for IRQ input. Additionally, this line is
+      sampled by the device on reset deassertion to select the I2C client
+      address, thus it can be driven by the host during the reset sequence.
     maxItems: 1
 
   reset-gpios:
Signature · 1 line
2.34.1
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 13 lines · Luca Ceresoli

The irq-gpios description misleading, apparently saying that driving the IRQ GPIO resets the device, which is even more puzzling as there is a reset GPIO as well.

In reality the IRQ pin can be driven during the reset sequence to configure the client address, as it becomes clear after checking both the datasheet and the driver code. Improve the text to clarify that.

Also rephrase to remove reference to the driver, which is not appropriate in the bindings.

Quoted 8 lines

---

Changed in v2:
- reworded to clarify even further

---
 .../devicetree/bindings/input/touchscreen/goodix.yaml        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Reviewed-by on v2 1/1
#5 lore raw
In reply to Luca Ceresoli

Hi Luca,

Quoted 4 lines · Luca Ceresoli

The irq-gpios description misleading, apparently saying that driving the IRQ GPIO resets the device, which is even more puzzling as there is a reset GPIO as well.

Quoted 8 lines

In reality the IRQ pin can be driven during the reset sequence to configure the client address, as it becomes clear after checking both the datasheet and the driver code. Improve the text to clarify that.

Also rephrase to remove reference to the driver, which is not appropriate in the bindings.

Quoted 28 lines

---

Changed in v2:
- reworded to clarify even further

---
 .../devicetree/bindings/input/touchscreen/goodix.yaml        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +3 -2
index 3d016b87c8df..2a2d86cfd104 100644
@@ -37,8 +37,9 @@ properties:
     maxItems: 1
 
   irq-gpios:
-    description: GPIO pin used for IRQ. The driver uses the interrupt gpio pin
-      as output to reset the device.
+    description: GPIO pin used for IRQ input. Additionally, this line is
+      sampled by the device on reset deassertion to select the I2C client
+      address, thus it can be driven by the host during the reset sequence.
     maxItems: 1
 
   reset-gpios:
Signature · 1 line
2.34.1

Thanks for considering my feedback; the messaging is clear now.

Kind regards,
Jeff LaBundy

#3 lore raw
Quoted 9 lines · Luca Ceresoli

Hello Rob,

Quoted 1 line · On Mon, 25 Sep 2023 11:25:09 -0500 Rob Herring <[email protected]> wrote:

I can't find this patch in your for-next, is there any blocker I should handle?

This was an Ack, not applied from Rob. Intention is that bindings go via subsystem maintainer (here: Dmitry).

Best regards,
Krzysztof

#4 lore raw

Hello Krzysztof,

Quoted 6 lines · On Tue, 28 Nov 2023 10:22:27 +0100 Krzysztof Kozlowski…
Quoted 5 lines · Luca Ceresoli

Hello Rob,

On Mon, 25 Sep 2023 11:25:09 -0500
Rob Herring <[email protected]> wrote:

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I can't find this patch in your for-next, is there any blocker I should handle?

This was an Ack, not applied from Rob. Intention is that bindings go via subsystem maintainer (here: Dmitry).

Thanks for the clarification!

Luca

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com