Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BC7DC6FA99 for ; Sun, 12 Mar 2023 20:47:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231418AbjCLUr5 (ORCPT ); Sun, 12 Mar 2023 16:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjCLUrx (ORCPT ); Sun, 12 Mar 2023 16:47:53 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 973733B229 for ; Sun, 12 Mar 2023 13:47:50 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id k10so40894647edk.13 for ; Sun, 12 Mar 2023 13:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678654069; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u22alB8uF/MS8UPXdbSnd7ZPrfnLaMOLZCtjFbg2V6Y=; b=HssqLwEOKEbMThaJsnLwmZ38Xjw3cPvbBlEXDnao9b3AHt2O9/5VhkKSX694LtP4NQ fccQek58uhkR5UEc+Wr60VUOKhiFH+kRwm0lN1aOC6BzfGTLi86KAaUbdza97j68fdMu MRderlNFhI8KHoWnEiknCoIbuk4DBKW5/cKEcTU0U9wbOCRQfuHOpoFPTGnO6MPgakcJ bkdglZqZ+crTRuq81O+XgufzkJ8SXLB4D1lGSpyo0j2Wc7Mdw3ptcDiTIidM0E3vJJgP vFrvtVAIB5JT0WD5YX9DHYPKtiqD2uaUayOgVRwDQcy/IjmZjr7XlU18SshqkOaazdyW 2mCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678654069; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u22alB8uF/MS8UPXdbSnd7ZPrfnLaMOLZCtjFbg2V6Y=; b=xU3DyhS+ucFo9BaNc6/wV9DaTx28HLtruRUMcLMt75qh7c84CeLHAAmACdMEuAAArQ axz9ex9fKJjArk7MlomjU6O4g0JKl/j/+KZPXx82x9uQeap8ErKtVry491rUNDeEfp2a h73gcshKOgRNJ4dHPDC5YUZCGeTfqS95o74qaDEkIWhI8/t0XZxnd0LGAfkIgwbjwodn RC7qekbHy74KX0czqE/vlNJoeeoPtyzBr8+37YjP2hOWnOAe+4R4Zgs5ljTw6v/PcpkI niez6eOeLkKJDsjMsnNR6FG4d3V6S5JIv7u5ofU92bFv1wco0K3VhreqKzE0xR8q8Xcu cH2w== X-Gm-Message-State: AO0yUKWB5jC1cd/DYlHxaU7XThCjKmBMPzBgwOtzfmFQK5HIb5QTg9ZG vRpRnIuACXaGAZFLvUeIBfkyrQ== X-Google-Smtp-Source: AK7set8j1GEtvMUfsPHK5nbXb7L5QDMpQx68DJ00oQ5FfD5O29my4p27eLzJWkD4zete2mFObe6uSg== X-Received: by 2002:a17:906:5284:b0:915:fbba:2e0b with SMTP id c4-20020a170906528400b00915fbba2e0bmr19770139ejm.58.1678654068729; Sun, 12 Mar 2023 13:47:48 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:d9f6:3e61:beeb:295a? ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id g8-20020a1709065d0800b008def483cf79sm2548293ejt.168.2023.03.12.13.47.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Mar 2023 13:47:48 -0700 (PDT) Message-ID: Date: Sun, 12 Mar 2023 21:47:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 1/5] dt-bindings: input: touchscreen: add bindings for focaltech,fts Content-Language: en-US To: Joel Selvaraj , Caleb Connolly , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Henrik Rydberg , Arnd Bergmann , Robert Jarzmik , Jeff LaBundy , Neil Armstrong , Markuss Broks , Jean Delvare , Max Krummenacher , Job Noorman , Alistair Francis , Chris Morgan Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20230312093249.1846993-1-joelselvaraj.oss@gmail.com> <20230312093249.1846993-2-joelselvaraj.oss@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230312093249.1846993-2-joelselvaraj.oss@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/2023 10:32, Joel Selvaraj wrote: > Add devicetree bindings for the Focaltech FTS touchscreen drivers. > > Signed-off-by: Joel Selvaraj > Signed-off-by: Caleb Connolly > --- > .../input/touchscreen/focaltech,fts.yaml | 81 +++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml b/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml > new file mode 100644 > index 000000000000..07fe595cc9ed > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml I have doubts you will cover here all possible FTS controllers, so filename should be more specific, e.g. choose the oldest device compatible. > @@ -0,0 +1,81 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/focaltech,fts.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Focaltech FTS I2C Touchscreen Controller > + > +maintainers: > + - Joel Selvaraj > + - Caleb Connolly > + > +allOf: > + - $ref: touchscreen.yaml# > + > +properties: > + compatible: > + enum: > + - focaltech,fts5452 > + - focaltech,fts8719 Missing blank line > + reg: > + const: 0x38 > + > + interrupts: > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + > + avdd-supply: > + description: a phandle for the regulator supplying analog power (2.6V to 3.3V). Drop "a phandle for the" > + > + vddio-supply: > + description: a phandle for the regulator supplying IO power (1.8V). Ditto > + > + focaltech,max-touch-number: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: max number of fingers supported Why this is not implied from compatible? IOW, why this differs between boards? If this property stays, then anyway "focaltech,max-touch", not number. There is no such unit suffix as number. > + minimum: 2 > + maximum: 10 > + > + touchscreen-size-x: true > + touchscreen-size-y: true Drop these two > + > +additionalProperties: false and then use unevaluatedProperties: false so all properties from common schema apply. Unless these are not really valid for the *device*? > + > +required: > + - compatible > + - reg > + - reset-gpios > + - focaltech,max-touch-number > + - touchscreen-size-x > + - touchscreen-size-y > + > +examples: > + - | > + #include > + #include > + &i2c5 { i2c > + status="okay"; Drop status Anyway this should pop warnings... Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). > + > + touchscreen: focaltech@38 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Also, drop label touchscreen. > + compatible = "focaltech,fts8719"; > + reg = <0x38>; > + interrupt-parent = <&tlmm>; > + interrupts = <31 IRQ_TYPE_EDGE_RISING>; > + Best regards, Krzysztof