Message ID | 20230925032208.11698-1-luca.ceresoli@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp995393vqu; Sun, 24 Sep 2023 22:40:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmoSv0k69fcnsGU+RRTjE9ZEKoc78vINKgqzdKqpKaCNhtw4enLRppgBDFBfMcCUBDHLwm X-Received: by 2002:a67:f818:0:b0:450:8e58:2de4 with SMTP id l24-20020a67f818000000b004508e582de4mr3480750vso.7.1695620454809; Sun, 24 Sep 2023 22:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695620454; cv=none; d=google.com; s=arc-20160816; b=IzgQwYSQH3wsqA7y5U03/Rxs1FeKsoqeGr5vZ2bwV/NXSpp+ZoA9mgOcMkOZQ6m6B0 VMq24d+m1/WP0HA7eYasE2vS3u/WcJPikHYRmOo9T0eQ+VRmkhFsbNvsLPiOLv90QjNG eGFmHjAor8jpdm4+wssszR4FpiAxIxzyccWo9VZhXxNUZk+Fy7s6y8Kof4Iw8fQ71Icg 9eHuoxw2LmW4r1COF9ahDZ9ZrixHreyqyrOCzuqZJT/MLWz7wYWlHdWOGtTcj/MEIqcM uN6fONURk8pxmTHP/LgaZ37N4XUZvwWKfeNK4JEwsLW/jS1ZObnA7pEQP+OpbqIE4A8f dkNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eKfAb9dM9HwZutIwv6iuMVTU5vDPqNRcb/JuqRISlpc=; fh=Pyrgu31gOWZRBkKdiw9ODPg7a2kFUUIAvwcc1iHQpG0=; b=caIA4/bmFcnLuCtfIvy26O11KsuhIkJTGWq11K1YaH2lF5drXO1Gu32GDSJ30cy9Gi C9p5hxVNZhRiZSlXZ7Yzd7S4nof/XuAqA/VMe05Oc+fwu75Y4Uj9tmaGEFRCjwJrLdTw WR1y8Tqwr+aCdVc5fcCoDuKMFbX8p+dG2xicvdhzcIf7n2gdY/YWLHtRxO4zzup3IXtD B/fq5EKmmcI+pg2H2CFaq7BdnXa3gkzqywpJQCJP+Z/Mgv7n2ipqwdQrrMZRuEXl3T4u JJcODwOyPGDJPD0lb0XlkBpN6g19TLJQbaH6JCji+z/7BACRurgmfEGuAKtibk91x0EB 6m8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="VYt2ld/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k24-20020a6568d8000000b00573fa0fffcdsi8924069pgt.538.2023.09.24.22.40.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 22:40:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="VYt2ld/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5949E8041FD9; Sun, 24 Sep 2023 20:22:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230304AbjIYDWj (ORCPT <rfc822;ezelljr.billy@gmail.com> + 30 others); Sun, 24 Sep 2023 23:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjIYDWi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 24 Sep 2023 23:22:38 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5440EA3; Sun, 24 Sep 2023 20:22:30 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 06D9FE0003; Mon, 25 Sep 2023 03:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695612148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eKfAb9dM9HwZutIwv6iuMVTU5vDPqNRcb/JuqRISlpc=; b=VYt2ld/QSBksI0sK2Zb46u9XVVfPjTn+ibxWXtoA+pc620ovzyeEntnjzlvCAWCFceT+pG a/p7P0jBbPvahwhzyGOpVnetQEpg0OlyrPnSVZGyQT5Jc7l0zzc0eetc+dpFacxx9LJPJ+ PfkFvFoDlaMhlW+SkV1SMssyrKqrL6d4NFPBddhshLa3nLcJjxtnHAggc7NAmE7Muoa7Mp 9/uGhVP8jRcbYtsciTHcBcd8bcqBMFj04jcspIv5oaALRElxGX5uukVYjy6yBGF/U/EDun 06AfTT3VLpyJ6a214vLYKBZ4hSp9fNQ555dbYhW7VUnDbiWHEmQJGZV9cUymOw== From: Luca Ceresoli <luca.ceresoli@bootlin.com> To: devicetree@vger.kernel.org Cc: Luca Ceresoli <luca.ceresoli@bootlin.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh+dt@kernel.org>, Jeff LaBundy <jeff@labundy.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v2] dt-bindings: input: touchscreen: goodix: clarify irq-gpios misleading text Date: Mon, 25 Sep 2023 05:22:08 +0200 Message-Id: <20230925032208.11698-1-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 24 Sep 2023 20:22:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777986913670399982 X-GMAIL-MSGID: 1777986913670399982 |
Series |
[v2] dt-bindings: input: touchscreen: goodix: clarify irq-gpios misleading text
|
|
Commit Message
Luca Ceresoli
Sept. 25, 2023, 3:22 a.m. UTC
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.
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
Changed in v2:
- reworded to clarify even further
---
.../devicetree/bindings/input/touchscreen/goodix.yaml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On Mon, 25 Sep 2023 05:22:08 +0200, Luca Ceresoli wrote: > 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. > > Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> > > --- > > Changed in v2: > - reworded to clarify even further > --- > .../devicetree/bindings/input/touchscreen/goodix.yaml | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Acked-by: Rob Herring <robh@kernel.org>
Hi Luca, On Mon, Sep 25, 2023 at 05:22:08AM +0200, Luca Ceresoli wrote: > 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. > > Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Reviewed-by: Jeff LaBundy <jeff@labundy.com> > > --- > > Changed in v2: > - reworded to clarify even further > --- > .../devicetree/bindings/input/touchscreen/goodix.yaml | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml > index 3d016b87c8df..2a2d86cfd104 100644 > --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml > +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml > @@ -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: > -- > 2.34.1 > Thanks for considering my feedback; the messaging is clear now. Kind regards, Jeff LaBundy
Hello Rob,
On Mon, 25 Sep 2023 11:25:09 -0500
Rob Herring <robh@kernel.org> wrote:
> Acked-by: Rob Herring <robh@kernel.org>
I can't find this patch in your for-next, is there any blocker I should
handle?
Luca
On 28/11/2023 10:21, Luca Ceresoli wrote: > Hello Rob, > > On Mon, 25 Sep 2023 11:25:09 -0500 > Rob Herring <robh@kernel.org> wrote: > >> Acked-by: Rob Herring <robh@kernel.org> > > 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
Hello Krzysztof, On Tue, 28 Nov 2023 10:22:27 +0100 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 28/11/2023 10:21, Luca Ceresoli wrote: > > Hello Rob, > > > > On Mon, 25 Sep 2023 11:25:09 -0500 > > Rob Herring <robh@kernel.org> wrote: > > > >> Acked-by: Rob Herring <robh@kernel.org> > > > > 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
diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml index 3d016b87c8df..2a2d86cfd104 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml @@ -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: