Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp725123pxf; Thu, 1 Apr 2021 11:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLVH5vQmft7/O+flRuOkGNxsN/9QF6pUrYqiOWDg1TfhmCc79KFiZx+SzEwjPFb7Jxb52v X-Received: by 2002:a17:907:3d01:: with SMTP id gm1mr10731427ejc.214.1617303188000; Thu, 01 Apr 2021 11:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617303187; cv=none; d=google.com; s=arc-20160816; b=lJ3ZX9hXl9ePKIInPAgozOGYjze1F7FpPFdzX4RsMa6uyCEuLPJP1QYSW/gpOOFIUQ xmBwz77FoxUHDEKHCxdIy0LMzGS5BmwFUyagUNIGEwvcaK8Q3MWH+kPhoNKhmHo7z1x7 H8tbtx+OiuK0XfE1pSno/zGRtzbByBQccbJhdvLGZbyri35PgVtLFY8sIfecwgon8wYZ KTBv5oul3a2tUBRwT5LYVEw/EINSzZ+636+KdLMAWXvQZkt5iL3R2jV8xB71FTGSL6sx xAN9A8a7f+Bdvv4TKpitjR63dmh5UJxRGhHzwghLi9g1Y2D2kPGgeRFyPmmCMjEru9FM 8t1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=O/sWvpxfiMfCtjO4y+l1ObSK6H0tmgSpHSK7lspRdUc=; b=u3p5pJmqy8plnkcTr84dK6ctfe7P37vmq90dHO0ecMOKb9Jce1KFQqm44ta+IFVo+/ 1cOQXuLJzLueTPnC6Ct4XbNaCt4Sd19dRl6ZIwdG1EHgs6OcYfrMOf9oDs1CShPQ7Tkr T3qONNqcTtWTnq3SV8yv/BES70cAKP++6RywPjciN1v6cJsmHLg/N4qWE7CbxE4ZIrvk gTHdgB4y8DqzNLmC3GNVSj7ewwp6kfJNQybJFSSTTB/it+jOiCKveAdYZ8HTt9De/vd3 usiX8e5VGUMsnGC1gpJfiAK8zMH739pAdz1yCEnqziTNESQf72vjiCaEb7QUvZD4OfBb LiRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=asxlapUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ky21si4789834ejc.641.2021.04.01.11.52.44; Thu, 01 Apr 2021 11:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=asxlapUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241261AbhDASwA (ORCPT + 99 others); Thu, 1 Apr 2021 14:52:00 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:50316 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236919AbhDAShn (ORCPT ); Thu, 1 Apr 2021 14:37:43 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id AA08CB04C59 for ; Thu, 1 Apr 2021 20:37:15 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1617302234; x=1618166235; bh=e51YaMfjswIMeNYrTTvhqA6/Wl7n7fQ/6SR qaEJ8ITg=; b=asxlapUxtjWAmIcXLVFbTSGe1wMuvv8g0my6Mi/2e7KQgo6IZOo eQwR1FFr87D0Xj1yn3FiVJ5tFFqQQFHnHzdg7mHOCErJzpAaYZupAUHdgcUtlM4h u00gQkeicYlFSkv3LVs536WMx4Mqeywzkr6J3S3Z66Trs8vigtYrYGqY= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.441 X-Spam-Level: X-Spam-Status: No, score=-2.441 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, LOTS_OF_MONEY=0.001, MONEY_NOHTML=0.458, NICE_REPLY_A=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Mj4FrEuqbGCG for ; Thu, 1 Apr 2021 20:37:14 +0200 (CEST) Received: from [192.168.50.18] (146-241-168-220.dyn.eolo.it [146.241.168.220]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 56E4BB04C3E; Thu, 1 Apr 2021 20:37:13 +0200 (CEST) Subject: Re: [PATCH 2/3] dt-bindings: touchscreen: Add HY46XX bindings To: Rob Herring , Giulio Benetti Cc: Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210305163834.70924-1-giulio.benetti@benettiengineering.com> <20210305163834.70924-3-giulio.benetti@benettiengineering.com> <20210306194120.GA1075725@robh.at.kernel.org> From: Giulio Benetti Message-ID: <9cd14c69-9c30-a68c-dfd1-396613b5185a@micronovasrl.com> Date: Thu, 1 Apr 2021 20:37:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210306194120.GA1075725@robh.at.kernel.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rob, All, Il 06/03/2021 20:41, Rob Herring ha scritto: > On Fri, Mar 05, 2021 at 05:38:33PM +0100, Giulio Benetti wrote: >> From: Giulio Benetti >> >> This adds device tree bindings for the Hycon HY46XX touchscreen series. >> >> Signed-off-by: Giulio Benetti >> --- >> .../input/touchscreen/hycon,hy46xx.yaml | 130 ++++++++++++++++++ >> MAINTAINERS | 6 + >> 2 files changed, 136 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml >> >> diff --git a/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml b/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml >> new file mode 100644 >> index 000000000000..cddd5e5bae92 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml >> @@ -0,0 +1,130 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/input/touchscreen/hycon-hy46xx.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: hyconon HY46XX series touchscreen controller Bindings >> + >> +description: | >> + There are 6 variants of the chip for various touch panel sizes and coverl len material >> + Glass: 0.3mm--4.0mm >> + PET/PMMA: 0.2mm--2.0mm >> + HY4613(B)-N048 < 6" >> + HY4614(B)-N068 7" .. 10.1" >> + HY4621-NS32 < 5" >> + HY4623-NS48 5.1" .. 7" >> + Glass: 0.3mm--8.0mm >> + PET/PMMA: 0.2mm--4.0mm >> + HY4633(B)-N048 < 6" >> + HY4635(B)-N048 < 7" .. 10.1" >> + >> +maintainers: >> + - Giulio Benetti >> + >> +allOf: >> + - $ref: touchscreen.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - hycon,hycon-hy4613 >> + - hycon,hycon-hy4614 >> + - hycon,hycon-hy4621 >> + - hycon,hycon-hy4623 >> + - hycon,hycon-hy4633 >> + - hycon,hycon-hy4635 >> + >> + reg: >> + maxItems: 1 >> + >> + interrupts: >> + maxItems: 1 >> + >> + reset-gpios: >> + maxItems: 1 >> + >> + vcc-supply: true >> + >> + threshold: > > Needs a vendor prefix here and all the custom properties. Sorry but I can't understand this ^^^, I've checked a lot of other yaml files but couldn't find something related to this. Can you help me by pointing me an example? > > One of the touchscreen properties doesn't already address this? > >> + description: Allows setting the sensitivity in the range from 0 to 255. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 255 >> + >> + proximity-sensor-switch: > > Why a switch rather than enable or disable? I've changed its name into enable. > >> + description: Allows enabling or disabling the Proximity Sensor. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 1 > > Is this a hardware config or something a user would want to change at > runtime? The latter shouldn't be in DT. It's a hardware config that enable the 11th touch point, but I didn't handle it inside the driver, so it's better that I remove it for the moment. > What does not present mean? Unless there is a need for keeping the > default setting, then this could be boolean instead. I've changed all "enable" to boolean and rely on default of the controller. Does this sound ok for you so I can send a v2 patchset? Thank you Best regards -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale ? 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642 > Same questions for the rest of the properties. >> + >> + glove-enable: >> + description: Allows enabling or disabling glove setting. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 1 >> + >> + report-speed: >> + description: Allows setting the report speed(i.e 0x64 => 100Hz). >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 255 >> + >> + power-noise-enable: >> + description: Allows enabling or disabling power noise filter. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 1 >> + >> + filter-data: >> + description: Allows setting the filtering data before reporting touch >> + in the range from 0 to 5. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 5 >> + >> + gain: >> + description: Allows setting the sensitivity distance in the range from 0 to 5. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 5 >> + >> + edge-offset: >> + description: Allows setting the edge compensation in the range from 0 to 16. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 16 >> + >> + touchscreen-size-x: true >> + touchscreen-size-y: true >> + touchscreen-fuzz-x: true >> + touchscreen-fuzz-y: true >> + touchscreen-inverted-x: true >> + touchscreen-inverted-y: true >> + touchscreen-swapped-x-y: true >> + interrupt-controller: true >> + >> +additionalProperties: false >> + >> +required: >> + - compatible >> + - reg >> + - interrupts >> + >> +examples: >> + - | >> + #include >> + #include >> + i2c { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + hycon-hy4633@1c { >> + compatible = "hycon,hy4633"; >> + reg = <0x1c>; >> + interrupt-parent = <&gpio2>; >> + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; >> + reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; >> + }; >> + }; >> + >> +... >> diff --git a/MAINTAINERS b/MAINTAINERS >> index d92f85ca831d..3f83daf6b2bf 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -8245,6 +8245,12 @@ S: Maintained >> F: mm/hwpoison-inject.c >> F: mm/memory-failure.c >> >> +HYCON HY46XX TOUCHSCREEN SUPPORT >> +M: Giulio Benetti >> +L: linux-input@vger.kernel.org >> +S: Maintained >> +F: Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml >> + >> HYGON PROCESSOR SUPPORT >> M: Pu Wen >> L: linux-kernel@vger.kernel.org >> -- >> 2.25.1 >>