Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2338089rdb; Tue, 10 Oct 2023 00:16:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqrn2tdHLgv9a8kXcuvgIkuhgAPkWqqf1FjGselSLf6A7TEcVOE5M5lodtt45qTShC/GVw X-Received: by 2002:a05:6808:1310:b0:3a9:e8e2:5799 with SMTP id y16-20020a056808131000b003a9e8e25799mr22605466oiv.14.1696922167791; Tue, 10 Oct 2023 00:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696922167; cv=none; d=google.com; s=arc-20160816; b=dtlWbFVYmEkTaxm/+a1oNEfJeyHj0bGzQkto5abPl52f1gAR6XpNRgHhyaFIJbHwMM tuZZ8Y5l9690iyMSsJuDRXWsDryUeTjAIXb53dYKYiKxeUGDMfTRg6DCECPIh3HF8jgR kp8zxTUL0gV0GbOAh3ocPQnlew6PV+vy963qZk4pPuswYts8qF3Ya/tnBVVBaqqKNRG+ L5+d/JzOLNzK/sDypk/IERaqmfUmGfHRNLkf9xsQaQJ29FcQZSNjoKxJagUD6nMYJtXK TyZIsDlVy6buF97Uh/IY2dmE7CPJu++nNFIkFr4jt7VB7B3AcvGnpEOBHvziayjUfQzS 4XOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:subject:cc :to:from:date:mime-version:dkim-signature; bh=SWNhwB9xX+AIGst/dz41McHRtLFLngoPhPXaZJs1igY=; fh=/wVN8n78A19zITV2ORkboEZeSCgTjDG0gP5ttSl3214=; b=JxqpELxcI1/V+kk3QKUFe05lZIPwhtTW6k7F93mCSvdrbFe0BPh3y3e7TTBy8wx8w1 PHCRtQvyqwYO3VP0EAXzxtk43uOvR7lrnOAIVGo4LUj3ffkBmXYiX+Tdf6CAC5G9+v5/ GiCrkkYHi1LrbyK4ONMhBEYWeTJPC/Ol5xnyGc1r59eqYF3yKJOUPr7rpabl3qR/n6Ip Jj+5e8jTPPwL55B+pBvgS0jS5rK8I0Xjms0tPWh8cDv056VKTwwZ7c4Ba/0+jHYQawN8 ZUf84f87+nASnamqJvTY3VdHJUifrfxT5cVKezb1BMmCuATv6AT4vxQOx8wSKjAr7rDw SMUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QVdUreOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d16-20020a631d50000000b005694b757228si410472pgm.688.2023.10.10.00.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 00:16:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QVdUreOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 3911D8028555; Tue, 10 Oct 2023 00:16:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442418AbjJJHPR (ORCPT + 99 others); Tue, 10 Oct 2023 03:15:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442324AbjJJHPP (ORCPT ); Tue, 10 Oct 2023 03:15:15 -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 99EBCB6; Tue, 10 Oct 2023 00:15:12 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id B4231E0002; Tue, 10 Oct 2023 07:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696922111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SWNhwB9xX+AIGst/dz41McHRtLFLngoPhPXaZJs1igY=; b=QVdUreOdVIVCO7bF9WiWDvI72HiHRnyRMxT/mK7QIj5IA56Qys2e/rln3Smot1MH+EydwU eZ4oQG0liGgBCUHUrKsFU3S3FDbDZYkEKz22Vz1SPgzGrlrNAQUVAyMnyIrRUSqtbTOeJP xkYA4PFiVck+r+C6yTzJY2bsNLyMIMgeAnvC2T8pFu6U6ElP22nGHLrBRjXc3fzVYb88GS TpRFO7Nu/NI+Os4YAhHX31fitVQTZeVCYcKkCRjkrBwNkFXXTrlOQWOkAZZ/eV4wj2HWdv KSQgvQT6TtiOnwNIA4p09UBLL36ZBgJr5EQJ78enm5/ahtDqnat4P/FFXjf9MA== MIME-Version: 1.0 Date: Tue, 10 Oct 2023 09:15:08 +0200 From: kamel.bouhara@bootlin.com To: Krzysztof Kozlowski Cc: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mark.satterthwaite@touchnetix.com, pedro.torruella@touchnetix.com, bartp@baasheep.co.uk, hannah.rossiter@touchnetix.com, Thomas Petazzoni , Gregory Clement , bsp-development.geo@leica-geosystems.com Subject: Re: [PATCH v2 2/3] dt-bindings: input: Add bindings for TouchNetix axiom touchscreen Message-ID: <79160a2ebe3fd35fe7f9b93e30cf89fa@bootlin.com> X-Sender: kamel.bouhara@bootlin.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: kamel.bouhara@bootlin.com X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 00:16:02 -0700 (PDT) X-Spam-Level: ** Hello Krzysztof, Le 2023-10-09 17:05, Krzysztof Kozlowski a écrit : > On 09/10/2023 15:44, Kamel Bouhara wrote: >> Add the TouchNetix axiom I2C touchscreen device tree bindings >> documentation. > > A nit, subject: drop second/last, redundant "bindings for". The > "dt-bindings" prefix is already stating that these are bindings. > OK. >> Signed-off-by: Kamel Bouhara >> --- >> .../touchscreen/touchnetix,axiom-ax54a.yaml | 51 >> +++++++++++++++++++ >> MAINTAINERS | 6 +++ >> 2 files changed, 57 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom-ax54a.yaml >> >> diff --git >> a/Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom-ax54a.yaml >> b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom-ax54a.yaml >> new file mode 100644 >> index 000000000000..41201d7112a6 >> --- /dev/null >> +++ >> b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom-ax54a.yaml >> @@ -0,0 +1,51 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: >> http://devicetree.org/schemas/input/touchscreen/touchnetix,axiom-ax54a.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: TouchNetix Axiom series touchscreen controller >> + >> +maintainers: >> + - Kamel Bouhara >> + >> +properties: >> + compatible: >> + const: touchnetix,axiom-ax54a >> + >> + reg: >> + const: 0x66 >> + >> + interrupts: >> + maxItems: 1 >> + >> + irq-gpios: >> + maxItems: 1 > > Why these are GPIOs? Interrupts are usually just interrupts... You need > to clearly describe this. > I've been using this for some specific acpi stuff hence it need to be removed. > >> + >> + reset-gpios: >> + maxItems: 1 >> + >> +additionalProperties: false > > This goes after required: block. > >> + >> +required: >> + - compatible >> + - reg >> + >> +examples: >> + - | >> + #include >> + #include >> + i2c { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + axiom@66 { > > Node names should be generic. See also an explanation and list of > examples (not exhaustive) in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > Ack. > > >> + compatible = "touchnetix,axiom-ax54a"; >> + reg = <0x66>; >> + interrupt-parent = <&gpio2>; >> + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; >> + irq-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; > > Eh? This looks really wrong. OK let's clean that as well. Thanks > > > Best regards, > Krzysztof