Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6512130rwd; Mon, 5 Jun 2023 20:22:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JPJb2gPAoCznO4r9DSu0B0ePRvJ50NUvdlh6FXz7tsv3NOSJxl09ELfHFbTv9RadByaDi X-Received: by 2002:a05:6a20:2d21:b0:116:fc1b:fa3b with SMTP id g33-20020a056a202d2100b00116fc1bfa3bmr923520pzl.9.1686021767936; Mon, 05 Jun 2023 20:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686021767; cv=none; d=google.com; s=arc-20160816; b=RM3w754clQQgt6PiWOCiAcXRDvEdTYkomhdihbMBAWLLFzr0QDTg6W8cjECAVhfjgC 8ETiX/6AsKkbKUaD6cYcrXRbkGV+3Ic0rdME4+3ywth5wpbJX1yfclFK1GQMWdi/ncXW VpV2IDvl2vxogPofGfqW6FRzREzlI3H+OyJSPg3I2GRDwOpKiPOzyRUJje9Xaoijr89p b0XXWymYxldsNahNjaEXFx3iO39EmK9KLh4dUiV0nmLycJI9SyK44UxweAbKfhwOmRE2 I44kh0m4PsGRixBwGza/NRtUM9Juvet6d1aADl7GYrpbXw4uULtBpRnL8JUGFHkQUdGQ vCAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wW68YijPC5M/xCRpMcVO/BAMrMv1lIZeTHggFsWAt3k=; b=QsNKXKLPPujbIWnvGehjy0jl9klYGUdi45pGEa+SsBHkUHjWHJLAjKhiZGWdrT9zXP 4zHaSKzdxnd8iRh/O6lb3qag4Wd7uIzXiKeJ3RO+vVyqLPeOHtl9NH9xXo8A1zAuh4/c KLbRH0V2cN18rwvCWg+0gtHwbQQ1alTgfBOlnftkPWgb7yG1GBVaithNbPDAA4yYJNk9 H8+jExanWiyWYXxz1I+DbUqXi8NvbDo4A8G+0TVHTwg9z/KEpAhebHE1qYQC3vORb4+M L8z6qvCtl2APrngP6ajAY4WdGgktcfF3/WqJC2TdYTHWtu7iDBc1FS4UtKPJv2cMgZuZ mutQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Pq4XeiWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z189-20020a6333c6000000b00542b2cf0dc5si5772479pgz.195.2023.06.05.20.22.35; Mon, 05 Jun 2023 20:22:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Pq4XeiWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233223AbjFFCGU (ORCPT + 99 others); Mon, 5 Jun 2023 22:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbjFFCGT (ORCPT ); Mon, 5 Jun 2023 22:06:19 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1AF311B for ; Mon, 5 Jun 2023 19:06:17 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-25665d2a8bdso2562669a91.0 for ; Mon, 05 Jun 2023 19:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686017177; x=1688609177; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wW68YijPC5M/xCRpMcVO/BAMrMv1lIZeTHggFsWAt3k=; b=Pq4XeiWh+lt9vOCi+qa+rwki0ALN2wovdTXzj/yfLh6mcIwEK7tz36PZoeODDyeVyY 5IVp7VF/3+bVlNhLh2I7bkMRtoDtKdajzIvABZzoFoCc9uCwlxxYum5WqcBFBiiju6uS F7l7pXUDcT9DfV1rSZCb7VWPwbTuKycuoiDcHXKBI8UEY/6xomtSIYdGiGazzXXrLsKC jpXLlWOzarRebIxCt0posCCgYb45rxxubvH69KwTVk4t/Tkbzu6qArecsLw4rGb00r6j Xs9Pm1NTUfG4IQvYUGLGpmT7setkDeEtLQnWWfFYikIw4WfJ58bknXw3awJTrF4O8eet Gc6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686017177; x=1688609177; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wW68YijPC5M/xCRpMcVO/BAMrMv1lIZeTHggFsWAt3k=; b=aUE88S0E8faqBEgS5kNGoHtVswiAcDESScxFlfzdkrfrhaBDNjWgMYKRzyKdSC+IT3 FEl/67jbpBY2YyWZOMT4eR5SLhQ9UqiP1GuDpc0SHBLf50AjCc7owwtIIG2pJNcyky2/ IJ1FTKei7InvhRrvMmINsvLj66kv3WakdJK7CYxfwsXMQkAl098vbvkaFAoUUjmsZMZc +Z9uS2AF5JM1FLlZmEl7oX6d5Csy7Tw5Zh5pS7YBNskYY/9pjw3CIorqcuTzcqUm/cB8 Haw6UiK7/GbnmC1kwbMjICLpDL987rFiAK+QaKvWIFzStn+oTgkdQI9+b1V2QvleGyu6 c9mA== X-Gm-Message-State: AC+VfDz6qSng1ZiHf1fc2i8MhjGFwx5bS4ldVrUSmQGj56mhea4n22hN ve1V8BLCJe5FxhQWNURo/MgqW/HpuFFD10OLyewDkw== X-Received: by 2002:a17:90b:2353:b0:256:f86:fa6e with SMTP id ms19-20020a17090b235300b002560f86fa6emr214511pjb.48.1686017177023; Mon, 05 Jun 2023 19:06:17 -0700 (PDT) MIME-Version: 1.0 References: <20230605060524.1178164-1-yangcong5@huaqin.corp-partner.google.com> <20230605060524.1178164-2-yangcong5@huaqin.corp-partner.google.com> <20230605-anyway-grab-f7a35aa199fb@spud> In-Reply-To: <20230605-anyway-grab-f7a35aa199fb@spud> From: cong yang Date: Tue, 6 Jun 2023 10:06:05 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: input: touchscreen: Add ilitek 9882T touchscreen chip To: Conor Dooley Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com, jikos@kernel.org, benjamin.tissoires@redhat.com, dianders@chromium.org, hsinyi@google.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi,Conor, On Mon, Jun 5, 2023 at 6:20=E2=80=AFPM Conor Dooley wrot= e: > > Hey Cong Yang, > > On Mon, Jun 05, 2023 at 02:05:23PM +0800, Cong Yang wrote: > > Add an ilitek touch screen chip ili9882t. > > Could you add a comment here mentioning the relationship between these > chips? Okay, I will add in V3 version. > On Mon, Jun 05, 2023 at 02:05:23PM +0800, Cong Yang wrote: > > > Signed-off-by: Cong Yang > > --- > > .../bindings/input/elan,ekth6915.yaml | 23 ++++++++++++++++--- > > 1 file changed, 20 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml= b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml > > index 05e6f2df604c..f0e7ffdce605 100644 > > --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml > > +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml > > @@ -15,11 +15,14 @@ description: > > > > properties: > > compatible: > > - items: > > - - const: elan,ekth6915 > > + enum: > > + - elan,ekth6915 > > + - ilitek,ili9882t > > > > reg: > > - const: 0x10 > > + enum: > > + - 0x10 > > + - 0x41 > > Is 0x10 only valid for the elan,ekth6915 & 0x41 for the ilitek one? > If so, please add some enforcement of the values based on the > compatible. I don't think 0x10 is the only address for ekth6915,(nor is 0x41 the only address for ili9882t). It depends on the hardware design. > > > > > interrupts: > > maxItems: 1 > > @@ -29,11 +32,13 @@ properties: > > > > > > vcc33-supply: > > description: The 3.3V supply to the touchscreen. > > + If using ili9882t then this supply will not be needed= . > > > > vccio-supply: > > description: > > The IO supply to the touchscreen. Need not be specified if this = is the > > same as the 3.3V supply. > > + If using ili9882t, the IO supply is required. > > There's no need for these sort of comments, you can rely on the required > sections to describe these relationships. Got it ,thanks. > > Cheers, > Conor. > > > > > required: > > - compatible > > @@ -41,6 +46,18 @@ required: > > - interrupts > > - vcc33-supply > > > > +if: > > + properties: > > + compatible: > > + contains: > > + const: ilitek,ili9882t > > +then: > > + required: > > + - compatible > > + - reg > > + - interrupts > > + - vccio-supply > > + > > additionalProperties: false > > > > examples: > > -- > > 2.25.1