Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2052949rdb; Mon, 9 Oct 2023 10:52:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHt9mTPVS9vjY4I+HLDtRocBjzKDz3UjbI+4gMynNnwYNCY87/dSyfHf9boWdplh95Snbe X-Received: by 2002:a05:6a20:938c:b0:14e:2208:d62f with SMTP id x12-20020a056a20938c00b0014e2208d62fmr21141782pzh.22.1696873966266; Mon, 09 Oct 2023 10:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696873966; cv=none; d=google.com; s=arc-20160816; b=zmuTxLABJNzR0zF7no2suxCdrUg7KNIswOD60Ngc12ecD6M3TmlDFIQi+IEOiyDJHh Uqg2LMOib9+2R7uPPXfoB4uS16WXs1NIw9f0kyCOO2e+5ZwwVgWlwFchmd03A/nBejxz Kwkd6qNCx0Rimw46DdFgqDQKSmIxY2piTq6gsCvdH5WiHt0M9AAFzTURYtfNse5tl2k1 1jqU/+W9niIdX7/Apwh1N4ehz1mUo0SQlzGvItjOxl0pB3hiqIH/HnXTipA2F2iser6N Y0wB+qsFuRkb5QEnsktUBGjVpl2UT2TE1vqB/T4OFPYy0RlIRstGMtlgLJcD6/TMHDV5 8eLw== 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=jv0dU3fsdHsbVPnlVzVxEKCZMhIo9zt4EsoFzbqbI1E=; fh=hB04x5JuxMp7VeLz325Mj9leKAs7/OMrNtje7NZuNPs=; b=u2B/fEPMzRHMn9BEhr8SGiLxz1gLkDxJuh3inZa1c83NOaYTXQ0kizChnqEWOXOx2p wcREd211zzDStmsM246zkCyQcwzUOSiGrpD7+SqLVeMPXvCBbZdCbrBM29OgDQQhfxlY Z31wxUc/Ru1yGcMGjyF5cuP2yLpzAgvvR3o/hwZ9+davjZ223a/Nu4p6zWncO4aJxVxn eCMICnRz7SX9UqnNsbxvpqLPDsS/tIU7CSs4lZRTRgRr7XjaTk6mFHs3KTQo2VlOcaoW bf/n90lSK+omlVAObGi0DAyXIiR6JommczKqUOjxgaAIB4Z+xgg4eAVgIFLe+PBvWUWO 1gyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wc3N/MYO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b00589336ba9f7si9982403pgw.822.2023.10.09.10.52.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wc3N/MYO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 50D688039FF3; Mon, 9 Oct 2023 10:52:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377071AbjJIRwe (ORCPT + 99 others); Mon, 9 Oct 2023 13:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345624AbjJIRwd (ORCPT ); Mon, 9 Oct 2023 13:52:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C57991; Mon, 9 Oct 2023 10:52:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B953C433C7; Mon, 9 Oct 2023 17:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696873951; bh=yP/scKtcI6OBBotY/FATY0k1OHLk/ySM8TF7CIdRg08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wc3N/MYOxqwOL9eWWR4ar7f+Nl52Pw+OQRfHKD88OVoSlVWv2eEbE18pawMPvGTNS PIeAMCD8CViMEDT2sMBZUiso2CP19P2E27ltwwc0EOXnXm+f5Tpgevo+uG3PeJtH+o AWjZ1SWpOKLA6J7qJQ3oAtmJq5e1eGsZvh/MazS0iOuZd7F9y9YqNrw0K1ChD0c7J5 DudWnoM/+1NmBrj7AvKKk5LZIllba4PkvHiT9/LyF0nEyWhWVAr7Ysr/QBMkdwx5NT C/Zo7h60CBj66xgMQdH0F6fexAbiO1jdDfL9WHYFAWwwc38Gq3wbzFz+BFGjXzV5js 5wLL+IqB+8B3g== Date: Mon, 9 Oct 2023 18:52:26 +0100 From: Conor Dooley To: yang tylor Cc: Conor Dooley , dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, poyuan_chang@himax.corp-partner.google.com, hbarnor@chromium.org, "jingyliang@chromium.org" , wuxy23@lenovo.com, luolm1@lenovo.com, hung poyu Subject: Re: [PATCH V2 1/2] dt-bindings: input: Introduce Himax HID-over-SPI device Message-ID: <20231009-pentagram-clamshell-b14ff00743fd@spud> References: <20230922-removable-footwork-f1d4d96d38dd@spud> <20230925-cod-vacancy-08dc8d88f90e@wendy> <20230926-action-sludge-ec8e51fdd6d4@spud> <20230926-reverence-unlit-d0027225cc43@spud> <20230928-spectacle-civic-339c0d71d8d7@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="M6raEjnX9WsFCxfg" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 10:52:43 -0700 (PDT) X-Spam-Level: ** --M6raEjnX9WsFCxfg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 02, 2023 at 06:44:41PM +0800, yang tylor wrote: > On Fri, Sep 29, 2023 at 12:56=E2=80=AFAM Conor Dooley = wrote: > > > > On Thu, Sep 28, 2023 at 10:12:41AM +0800, yang tylor wrote: > > > On Tue, Sep 26, 2023 at 8:53=E2=80=AFPM Conor Dooley wrote: > > > > On Tue, Sep 26, 2023 at 05:52:39PM +0800, yang tylor wrote: > > > > > On Tue, Sep 26, 2023 at 5:02=E2=80=AFPM Conor Dooley wrote: > > > > > > On Mon, Sep 25, 2023 at 06:16:29PM +0800, yang tylor wrote: > > > > > > > On Mon, Sep 25, 2023 at 4:41=E2=80=AFPM Conor Dooley wrote: > > > > > > > We have a default prefix firmware name(like himax_xxxx.bin) i= n the driver code. > > > > > > > > > > > > How do you intend generating the name of the firmware file? I a= ssume the > > > > > > same firmware doesn't work on every IC, so you'll need to pick a > > > > > > different one depending on the compatible? > > > > > > > > > > > If considering a firmware library line-up for all the incoming pa= nels > > > > > of this driver. > > > > > We would use PID as part of the file name. Because all the suppor= t panels would > > > > > have a unique PID associated. Which will make the firmware name l= ike > > > > > himax_xxx_{$PID}.bin. The problem is, we need to know PID before = firmware load > > > > > at no flash condition. Thus PID information is required in dts wh= en > > > > > no-flash-flag > > > > > is specified. > > > > > > > > Firstly, where does the "xxx" come from? > > > > And you're making it sound more like having firmware-name is suitab= le > > > > for this use case, given you need to determine the name of the file= to > > > > use based on something that is hardware specific but is not > > > > dynamically detectable. > > > Current driver patch uses a prefix name "himax_i2chid" which comes > > > from the previous project > > > and seems not suitable for this condition, so I use "xxx" and plan to > > > replace it in the next version. > > > For finding firmware, I think both solutions are reasonable. > > > - provide firmware name directly: implies no-flash and use user > > > specified firmware, no PID info. > > > - provide no-flash-flag and PID info: loading firmware from organized > > > names with PID info. > > > I prefer the 2nd solution, but it needs more properties in dts. 1st > > > has less properties and more > > > intuitive. > > > > > > I don't know which one is more acceptable by the community, as you > > > know I'm a newbie here. > > > > To be honest, I am not all that sure either! Does the panel id have > > value in its own right, or is that only used to determine the firmware > > filename? > Currently, PID stands for Panel/Project ID and is used for determining > the firmware filename only. We haven't come up with any new attribute that > may attach to it. The differences between panels are handled in firmware > dedicated to its PID. >=20 > > Also, if it does have value in its own right, rather than a "pid", > > should the panel be a child node of this hid device with its own > > compatible? > It may need a child node if we find it necessary to add attributes to eac= h PID. > But currently we have no idea about it. To be honest, it seems to me like you are using "PID" in place of a compatible for the panel, since it needs to be provided via DT anyway. --M6raEjnX9WsFCxfg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSQ92gAKCRB4tDGHoIJi 0sbAAQDvFnawcZKqA8CN5euZeU93hvrmcUykdZUeXZ3RsTGPegEAqXY+uqJz22vN qIYSeon1HUa/OyfQTuriEEM5vLbg6Q0= =mZhs -----END PGP SIGNATURE----- --M6raEjnX9WsFCxfg--