Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp386984rdg; Thu, 12 Oct 2023 08:25:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKSDku1jBEVJlPraRCQ5I+5Nrtez3i+AyWDVQI/DcTJjy/LjGzogCS3nSDxfY42nHoosy9 X-Received: by 2002:a05:6a00:158c:b0:690:b7a1:ac51 with SMTP id u12-20020a056a00158c00b00690b7a1ac51mr30488794pfk.31.1697124319360; Thu, 12 Oct 2023 08:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697124319; cv=none; d=google.com; s=arc-20160816; b=xKTBMTt4cRhAAolNgvREZTxH7Zi2DZvrAYKuKtECaFmUnbs82M5LC5rftLB3hLDygA GoPmd2HKeBdGwZ1LQTP2/hlH4ZfHdB9Iqygk6+cAJUv6F8JCelkWJiS9MU8Jv+EOsJsT 9xl2GRsHkA2ITTJwAR0hUZ9MjGR77yJq0rPJ7UlIfrZWxXK50cetiBIdjmoKRefRO49k R0UY6TXq0Gjpxz8Tyvnx113yWkDvtTybEXfC8x4Afz/OVMD4oheNA/neBT2EqrwLSLbY f0pqJXIeu+Av+v1F6q497/XssCsgvLZPB+rmwbZLR4qAZpxOnEgneELPXf2v7vBSFhiI z10g== 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=83X8vwyuMDNJoFOMhmHBfZVx+PzZsuq1UNVIJ2zaqRk=; fh=hB04x5JuxMp7VeLz325Mj9leKAs7/OMrNtje7NZuNPs=; b=gxcGliZEfKJuoiKXbPMjvosQE651ON4ZS4zIkkkkrYObz5A1uP5+TjhdZG3Yhg9zg9 LRF0wbSHvC/kgrOxeCj9mAiiyZc4ALQnZ3ZqYXvbY9aUWJBn2zvA+H2I7iRy5dh6HcJA LTC1OAAg4jHT6ou8sCQzZOuwrT/paxCXj5RdIp7Z//tvh018Pt3gLQkgupVtZ9lX5fvi QHM/mXOx11jgGCmq4H2W++Q7qJ4SovbIiW1xKCOA75eOpOn5DjRh05GrSt/XitnnY2CU KLfIgQyh4YGrbRH4bNHaRW3ocP5AtwZ7G53bvF7ARxmzAQhMnngADd7VkfeH2tJhQnL3 b/tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UrKOgGpd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g8-20020a635648000000b0058974d3c292si2344398pgm.191.2023.10.12.08.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UrKOgGpd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 57463819D1D6; Thu, 12 Oct 2023 08:25:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379229AbjJLPY4 (ORCPT + 99 others); Thu, 12 Oct 2023 11:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231680AbjJLPYz (ORCPT ); Thu, 12 Oct 2023 11:24:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EEFB8; Thu, 12 Oct 2023 08:24:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A12DCC433C8; Thu, 12 Oct 2023 15:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697124293; bh=OKJBCSFkKCqs3p1kxIpfznOr5Kx+Ln+CvKc1ryKM064=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UrKOgGpdKTucaQSIszwtfLNSHpoeaQtp3JPhkD+wupEYTpBRIYUneRfPJ9v+kaMTE 1u5QNNHxQtivYltZ60D27w+BsTMO0gAiOGJOgK2f86r8JinpO97Weu8Hwz3vaa/OhS Qjmqf+md6xdZvnsMtmAmPY953hqJYY0rEmSnpmMQIMUJjGW0YO/sYTdvn6dmgF3wEO C0g+GYZR1MlaF1UYjWF87e0nTl5pdOWbLPKBm01s8fLC/P0Zz0Y0Vgy+/hPD5N9jCi nXLhNlRn9hcWqTV8TgyFcYWPa9S+C56UmvQq/dNx26eOXJ4B1BoxgZ/3fmhWBAoGfc XSuuf4bZ1fK2w== Date: Thu, 12 Oct 2023 16:24:48 +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: <20231012-pope-denatured-c1898bc1e44b@spud> References: <20230925-cod-vacancy-08dc8d88f90e@wendy> <20230926-action-sludge-ec8e51fdd6d4@spud> <20230926-reverence-unlit-d0027225cc43@spud> <20230928-spectacle-civic-339c0d71d8d7@spud> <20231009-pentagram-clamshell-b14ff00743fd@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TueJpgnC2xZsHFU1" Content-Disposition: inline In-Reply-To: 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 12 Oct 2023 08:25:15 -0700 (PDT) --TueJpgnC2xZsHFU1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 12, 2023 at 10:30:03AM +0800, yang tylor wrote: > On Tue, Oct 10, 2023 at 1:52=E2=80=AFAM Conor Dooley w= rote: > > > > 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.bi= n) in the driver code. > > > > > > > > > > > > > > > > How do you intend generating the name of the firmware file?= I assume the > > > > > > > > same firmware doesn't work on every IC, so you'll need to p= ick a > > > > > > > > different one depending on the compatible? > > > > > > > > > > > > > > > If considering a firmware library line-up for all the incomin= g panels > > > > > > > of this driver. > > > > > > > We would use PID as part of the file name. Because all the su= pport panels would > > > > > > > have a unique PID associated. Which will make the firmware na= me like > > > > > > > himax_xxx_{$PID}.bin. The problem is, we need to know PID bef= ore firmware load > > > > > > > at no flash condition. Thus PID information is required in dt= s when > > > > > > > no-flash-flag > > > > > > > is specified. > > > > > > > > > > > > Firstly, where does the "xxx" come from? > > > > > > And you're making it sound more like having firmware-name is su= itable > > > > > > 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 pl= an 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 organ= ized > > > > > names with PID info. > > > > > I prefer the 2nd solution, but it needs more properties in dts. 1= st > > > > > 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 firmw= are > > > > 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 firmw= are > > > dedicated to its PID. > > > > > > > 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= each 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. >=20 > Hmm... So the more formal way is? > If I add a sub-note inside this spi-device block, such as "panel" and > add PID inside. > Will it be more appropriate? > ... > spi { > ... > hx_spi@0 { > ... > panel { > himax,pid =3D ... And this now looks exactly like compatible =3D "vendor,part" now, no? --TueJpgnC2xZsHFU1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSgPwAAKCRB4tDGHoIJi 0lVfAQC3Xdwum2IZViQ9BSMgWnqGIXLpMcp0mG/Bi4W2QnlqxAD9E1PoiPAHieT8 HzDqyvik4FLQxj0E0m444srRUWHwKQU= =dlR1 -----END PGP SIGNATURE----- --TueJpgnC2xZsHFU1--