Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1064057rdb; Wed, 6 Dec 2023 07:42:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IELK+Nm2JFGEIX5K+y0XP1wlQxAn4R7Td/EgW5sb4V9lD6aS7Uj8cnAy5EyPHglqV6K62v7 X-Received: by 2002:a17:90b:314a:b0:286:9e2f:4755 with SMTP id ip10-20020a17090b314a00b002869e2f4755mr1026524pjb.51.1701877320704; Wed, 06 Dec 2023 07:42:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701877320; cv=none; d=google.com; s=arc-20160816; b=nsfEtXRNqaljssHmD4Bh1Sg42VUn9Y6s9nLbgohGwVGu/yPz6UYFmuUT2fj6Dw4c/T CgG2gL+zExn7q+jmIpkPB74tWrJmp5dHkaQo6h+Ccjc+7XRmUaD9CTzYc+pKstHkKcCQ Wgz8FptfwaDrI0+WilNQsry07U43QDLD1PvA7Uu6goJeYUd2/JHFowSFJnOXgThJAniY Git3nq8QdbmXoraoYPGZf2UqVQMITEjbDFhtuMwJF5Ildc2Ao+7CAOvJVSD31Ly+OgkH uoZnbVC8CKBHa2+y6Eg2PP+lCVr9rzQTR+p70rc8FjPQmKs1Hb+TtmkSjujwSebybKoa PF5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/dGIp/W9HH3KTOi4qX8qI6938wgys625KsPi/ug0Jvs=; fh=5r+Ok+SltDvEiJRxpcRYuedkYalipmJNApT7NjexLIk=; b=AcRWxZ8/b66CHW6QTrMAjQPNdySXBGDWzMzp8LqarJ7GnO3CormrFZwJYp8YYSE6DA 5at4SYLzofvajk6igcbx8UtCZMPh59ypnEhG4wm0QTkDWK5TfS35QQezDDHpIPCXU2O4 SXZBk0eyN/P550woCYxsC+i9o8J20zagviKQEowhuKYmf01f1lySTrQVTpj+4Q8/DqOW zh9xpACJYgiOTOUdoo1YfdZszsNaMMEBRbiKS7HxiZWFv4ZuZJ3wnZDvKNhhT5dcY9Gt dGq61TIahhUKHHEWLxTQKh0sLp1KFfBHoy/zL8HF2K8i97baq+t2rOIoLO5oNmyQ2r31 gCDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ifIjbAQt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x9-20020a17090a970900b00274df6d4c38si27237pjo.89.2023.12.06.07.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:42:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ifIjbAQt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 29223807500F; Wed, 6 Dec 2023 07:40:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379209AbjLFPkZ (ORCPT + 99 others); Wed, 6 Dec 2023 10:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379280AbjLFPkX (ORCPT ); Wed, 6 Dec 2023 10:40:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1778A1A2 for ; Wed, 6 Dec 2023 07:40:29 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 427C5C433C7; Wed, 6 Dec 2023 15:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701877228; bh=AMfzvAO5OXH7nthn1R2FWxGUEIQNak/21Kw8bnyNgfg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ifIjbAQt4c0JQ0Whbh7WRkimSenj+lzCI+0M+g4SFIXKtK/TZcn1q7/wWd8QnpEC1 Gh7l6Z+0y+BjoWzH7rn4IBamREKsAYuMT3ZT9OzUJRYNRMQp0hEtA0oz2Gnuluefou NV9Y7dZgKjlMaCtqRw6tkLSoOY0hSdCDZCrzcitli1IGw4uxHSW7/TiIrPXiCxDITj O2fkNL6gAs0b3/5fyHFgZKPXdd9YWSHNMmNkmuII2Wy95pNamN5OvtxfdNr/ZuQekn zj/OsVAKYMt1ndRpMjPverChTzUGXMyikSKJBNJKFVVWlUOzjuyRmcuQKF1/J1DJ7q mvbq4G0nF1/HQ== Date: Wed, 6 Dec 2023 15:40:21 +0000 From: Conor Dooley To: Shengyang Chen Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, florian.fainelli@broadcom.com, bcm-kernel-feedback-list@broadcom.com, eric@anholt.net, thierry.reding@gmail.com, changhuang.liang@starfivetech.com, keith.zhao@starfivetech.com, jack.zhu@starfivetech.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] dt-bindings: display: panel: raspberrypi: Add compatible property for waveshare 7inch touchscreen panel Message-ID: <20231206-isolating-smoked-b490952029d0@spud> References: <20231124104451.44271-1-shengyang.chen@starfivetech.com> <20231124104451.44271-2-shengyang.chen@starfivetech.com> <20231124-lesser-sinister-7f9cd7b80e35@spud> <2d48e460-e46e-431f-bd7b-e34ebe73a40c@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4u5wDHCnw45IR5T9" Content-Disposition: inline In-Reply-To: <2d48e460-e46e-431f-bd7b-e34ebe73a40c@starfivetech.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 07:40:42 -0800 (PST) --4u5wDHCnw45IR5T9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 06, 2023 at 05:43:48PM +0800, Shengyang Chen wrote: > Hi, Conor >=20 > On 2023/11/24 20:31, Conor Dooley wrote: > > On Fri, Nov 24, 2023 at 06:44:50PM +0800, Shengyang Chen wrote: > >> The waveshare 7inch touchscreen panel is a kind of raspberrypi pi > >> panel > >=20 > > Can you be more specific about what "is a kind of rpi panel" means? > > Are they using identical chips as controllers or something like that? > >=20 >=20 > Wareshare panel has same i2c slave address and registers address with=20 > the original raspberry pi panel. They both use Atmel firmware and they > got same reg id. It can be operated by using the driver of raspberry pi d= river > after some change of the code. So I suppose it may be a kind of raspberry= pi panel=20 > and discribe it in this way. It's my own judgement. Sorry about that. > Maybe just like Dave said, It cloned the behaviour of the raspberri pi pa= nel. > I will change the discribtion in next version to not make other confused. >=20 > By the way, we will try Stefan's method before next version.=20 > The method we used in this patch may be abandoned if Stefan's method is v= erified in our platform. > At that time yaml may also be changed to fit new method. I don't know what Stefan's approach is, but I do not think that a bindings patch should be dropped. The waveshare might be a clone, but it is a distinct device. If the same driver can control both, then the compatible setups that should be permitted are: compatible =3D "raspberrypi,7inch-touchscreen-panel"; and compatible =3D "waveshare,7inch-touchscreen-panel", "raspberrypi,7inch-touc= hscreen-panel"; Cheers, Conor. > >> and it can be drived by panel-raspberrypi-touchscreen.c. > >> Add compatible property for it. > >>=20 > >> Signed-off-by: Keith Zhao > >> Signed-off-by: Shengyang Chen > >> --- > >> .../bindings/display/panel/raspberrypi,7inch-touchscreen.yaml | 4 +++- > >> 1 file changed, 3 insertions(+), 1 deletion(-) > >>=20 > >> diff --git a/Documentation/devicetree/bindings/display/panel/raspberry= pi,7inch-touchscreen.yaml b/Documentation/devicetree/bindings/display/panel= /raspberrypi,7inch-touchscreen.yaml > >> index 22a083f7bc8e..e4e6cb4d4e5b 100644 > >> --- a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inc= h-touchscreen.yaml > >> +++ b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inc= h-touchscreen.yaml > >> @@ -22,7 +22,9 @@ description: |+ > >> =20 > >> properties: > >> compatible: > >> - const: raspberrypi,7inch-touchscreen-panel > >> + enum: > >> + - raspberrypi,7inch-touchscreen-panel > >> + - waveshare,7inch-touchscreen-panel > >> =20 > >> reg: > >> const: 0x45 > >> --=20 > >> 2.17.1 > >>=20 >=20 >=20 > thanks. >=20 > Best Regards, > Shengyang >=20 --4u5wDHCnw45IR5T9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXCV5QAKCRB4tDGHoIJi 0lu+AP9S+mBLWn0c2W0GfWmBKz/Iv+21lMnJlHnXSv1Hh16NNgEA+55r2ib/hc12 310USnVcRIuSzUWHXrASafnfq5Sd6Qc= =NiWe -----END PGP SIGNATURE----- --4u5wDHCnw45IR5T9--