Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp27286rdg; Wed, 11 Oct 2023 19:30:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENN/IfOXOGdqzYX8IOUELdCIBYQ0MNj0kxg4OOflVh7BgO4rTHjor1VzcHt0Gwy9lBaq3A X-Received: by 2002:a17:903:191:b0:1c9:d011:582f with SMTP id z17-20020a170903019100b001c9d011582fmr3511173plg.37.1697077836530; Wed, 11 Oct 2023 19:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697077836; cv=none; d=google.com; s=arc-20160816; b=SRO8/E6Yk29q75ycF9BGtLaMcAHbYtENw2L8fYcLvwBpmhWd35ocqhtIaWqTEuwCpg i6s3IVciZ4jH1qvNEK3Y8d4HhT6CLR6v8FnYM82G/ZnuEhduypYvailaCkNF0CcmegC/ 8gvLpgrAu38PMMpf04aSAyEDUp1C8bSRzip0MlrV1lV79Cu6Mc1xzPzsOe0M6davhqbU FYioCSxYcmFFs+neGQ/fCDLQTItPbTytQ/2uIBPYul78E5oVEVTlMNBWxq6iEp8Im1mq W2IyFLPNzQcVpL37yVXiY25bDJq78js6yUHboVAl8MSaSYyMR4SXvaJPds5XiJVu2L2b pTQQ== 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=7M55ocZS76xNGmS/lTIzjnpml9AAnWYYFgmJYm8DS+U=; fh=/mh4MmRV5NdFWJ8GpMQowTCNKNlIhv9l+X0XQoDVC+E=; b=a0xPxIRfVk6eUJmpBaYEp9dDMld544x2GTxXjfvVoK3mN0BvHbyaV8bIy1lsRL+O5s fG1jpzaQRu0YbYIRtnOR+P9JDYw7KDLZQFpHEgM1hEIg4pu5PIabqASUj7HPjuclZOuK o1GJFPOvkN1mwStLXAv5d6Eo5nfjuUkzA5iJq+7PqVb8U6AB363ua9U/Rb9hmcC5Ikhc OOrCcsHuuKo+xb2b9yJxULfCcv2oSdKQ3uCfNZttPbCw8mDcOlnKHYOGfD0cpVJOppiZ DOmFQU80h2EvYpNz4H3veL3ZCXQEonACe72dgFSB/rxk/K8cwsrIYqcqQ5OAu2KHOgNY GgCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1MVD9ZzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h18-20020a170902eed200b001b801044467si1029325plb.3.2023.10.11.19.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 19:30:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1MVD9ZzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E261B812E016; Wed, 11 Oct 2023 19:30:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235266AbjJLCaU (ORCPT + 99 others); Wed, 11 Oct 2023 22:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232321AbjJLCaT (ORCPT ); Wed, 11 Oct 2023 22:30:19 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B8BA9 for ; Wed, 11 Oct 2023 19:30:17 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53dfc28a2afso863645a12.1 for ; Wed, 11 Oct 2023 19:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697077816; x=1697682616; darn=vger.kernel.org; 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=7M55ocZS76xNGmS/lTIzjnpml9AAnWYYFgmJYm8DS+U=; b=1MVD9ZzRNSE5DWr0ZEnXFkzr7jURSFVbXcrRlUvY8uGXxITW/0phQY4VCGUQ97VtzJ fqXs5RlVkP6INfS2YzVVMs/jsJTfdRCmdWRee6A2Y6BbqTWjVwpINo5ONSbWMuC+U7Op 9tQ7Q4ovESi0csaRLJ5LZYU3yPlN8muHV1GRNGJkIg2ScGCfncaAecnpmehFZHV8UT+b wWu/HYVL4kXffc0hflbEjNC1VZZRZeQerbmS/Ws5LA9obYe8XxO8anS1550/tb9OruC4 mMhTyp3BQFMUn9AX++eAPqsgBgID/Up3+bdaK624fpSrDqfHcJRVL7B7OTBwRfJx/hwS u/TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697077816; x=1697682616; 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=7M55ocZS76xNGmS/lTIzjnpml9AAnWYYFgmJYm8DS+U=; b=XL5i43w/+s3BBNbY8VVc+jL76lF3745bzozOOKEErfL3xPITePSW/NzEU20UKA+Fbw +G1ExdTAbdUmktIrtj3fphWAmyneYMwJ9kCcmluh46kSpShLkXJ4hk/2TiaHV+Mw8gGX Kzz5mySwSkyUs4PRwHw3g1WhiJJ0fGuGfpztIdAntVr8qeycjvmjlU0tN0KGFzUeQjw/ E2IKOpN+1ZmgssbwAdl7Xbc5Kpr2X8jeIQgIQ28bkVuWQU2DGFpTgxfaWkaithBS87RZ JdJ3Ig6rfnyaMGT60U+89LKmXEsjHytbvG9/xVfNwulHi9LNViKbCaNGFhmpRJB3PTXN nBew== X-Gm-Message-State: AOJu0Yy109nJjMzAdZ497qnaPv25Qf9iR/s/zD26EamVz3MbdSWbM+nb 7r6zhElZ15yOXw1/gksWUPTSYYp4e9w89Owh2xtoLw== X-Received: by 2002:aa7:d94e:0:b0:527:fa8d:d40b with SMTP id l14-20020aa7d94e000000b00527fa8dd40bmr19306337eds.26.1697077815724; Wed, 11 Oct 2023 19:30:15 -0700 (PDT) MIME-Version: 1.0 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> <20231009-pentagram-clamshell-b14ff00743fd@spud> In-Reply-To: <20231009-pentagram-clamshell-b14ff00743fd@spud> From: yang tylor Date: Thu, 12 Oct 2023 10:30:03 +0800 Message-ID: Subject: Re: [PATCH V2 1/2] dt-bindings: input: Introduce Himax HID-over-SPI device To: Conor Dooley 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 11 Oct 2023 19:30:34 -0700 (PDT) On Tue, Oct 10, 2023 at 1:52=E2=80=AFAM Conor Dooley wro= te: > > 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)= 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 pic= k a > > > > > > > different one depending on the compatible? > > > > > > > > > > > > > If considering a firmware library line-up for all the incoming = panels > > > > > > of this driver. > > > > > > We would use PID as part of the file name. Because all the supp= ort panels would > > > > > > have a unique PID associated. Which will make the firmware name= like > > > > > > himax_xxx_{$PID}.bin. The problem is, we need to know PID befor= e firmware load > > > > > > at no flash condition. Thus PID information is required in dts = 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 suit= able > > > > > for this use case, given you need to determine the name of the fi= le 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 organiz= ed > > > > 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 firmwar= e > > > 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 t= hat > > may attach to it. The differences between panels are handled in firmwar= e > > 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 e= ach 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. 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 ... }; } } Thanks, Tylor