Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1461209rdb; Mon, 2 Oct 2023 10:07:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3YyV2iKDb1cdj8G7LO6bTzVss8KyVcldBclmG8axp3rKUT4tFT13f3SP7iscPbD4LjGw+ X-Received: by 2002:a17:902:d4cc:b0:1b7:e49f:1d with SMTP id o12-20020a170902d4cc00b001b7e49f001dmr13639267plg.62.1696266423058; Mon, 02 Oct 2023 10:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696266423; cv=none; d=google.com; s=arc-20160816; b=JkhzMVx+HcBRPsl1GXdR/h1VTdYnLl7OXacMwBIqQ6XRioku0AMUrD8ze0U7MoFxeY LiPiZLS/BsOFukeNYDRBSjP2RLCofq0c8eDjbK/8eo/bg0lDu3DFWsFSae0twPJtHkv3 H5JNmteuGLlZLVyuSsjJ7tULoZc3EioqY8R4eZsTEOV8O22JYO/YXhzBLUFTphY17ZvV zyURces7V0Gknx/2wnBena/Rp9n+X8PbUpm6NocLEg5rjBTWNb+R4rX/vT0sQ7XGHDvu HwTI8ff72Cx57HNbUcrAcd3jGRNMzXEWGf87SKfrFRGER01Lkf6WG4h1gso4vDUWQLUC uldg== 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=8DgRy9wyELYkrXoesMhy/Irg2NSJ9BDo37kM0qeNRsk=; fh=/mh4MmRV5NdFWJ8GpMQowTCNKNlIhv9l+X0XQoDVC+E=; b=QBxo+U2F9TGf/0mxK23xoR+FICzYB/t03mwegbbbu7o/vDgnDugBSYjS9UOvomDtR7 v40KnxEOKmWTjx58x1uuseo3T91ohcTf/IGartpLna9IJIrphHr8jYulqCWqyClVDdHT g43Z01AmqoMBmXpKtAdrDW7SwzNFNqtQOMf4exPj2PnaGSTaewrC9yRs5IcJURjeoVnC x7v4hhQv0zGtJI4pTxjWHJELWT9p5ey7GzN55MGfgoo0zaS+ySqVLwO1Ul2bO/xSK/7C H5As+grZF2XzsSctyXP1aEO4Zs8ast+HL47wO8pDeZ8JBOjNP5Jp3+4re3oHu2WZqWsY QXcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=jhWeJtKM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l10-20020a170902f68a00b001c446b59c8dsi30924071plg.271.2023.10.02.10.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=jhWeJtKM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id CC23D804DD84; Mon, 2 Oct 2023 03:45:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236501AbjJBKpA (ORCPT + 99 others); Mon, 2 Oct 2023 06:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236429AbjJBKo7 (ORCPT ); Mon, 2 Oct 2023 06:44:59 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BA4FB3 for ; Mon, 2 Oct 2023 03:44:55 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5384975e34cso1861197a12.0 for ; Mon, 02 Oct 2023 03:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696243494; x=1696848294; 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=8DgRy9wyELYkrXoesMhy/Irg2NSJ9BDo37kM0qeNRsk=; b=jhWeJtKMIt6ajuW4m9ZKv7UEqcspMu2FNEpFeVs+uwVcUzLe1GOEI34i7TLgu4GgZ8 70HJCSzov3bx082aF8VyFblPebvzqLayHDWCnB/omElRChLlseTLc0afUn3sz+xcJ+Y0 cLA5DlY/2OSSY3ldUvHisaVmOsGkBLdrMGfdMBJfKVFEU6AY2IhIqF7WR7WuUcC9zIDp pnIdV5PpPpNF8M1WPbCTxBVGBeFxLhPF+QjpOkrcSGEHOgWZeELyYqMsiWKglkD+ttYX QeybnkqP2f8PGhGDXiOuHJGQsLyaHXc6nLmYywcHrJGXyQviLNaKti+19tzIZPq3krNj R3YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696243494; x=1696848294; 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=8DgRy9wyELYkrXoesMhy/Irg2NSJ9BDo37kM0qeNRsk=; b=uvZ39BZDov+Q6F3GkrwVjRF6KexJ7g7DEbfP+fTbE1kOUNKifH5FD39T1dfRzQc0Xv FdMPyIfB14q2sDOWN76U6iqYDAieyI+32RNKub1jtQJc/K/0RxBWyGZyANFu+PPxl5DM oHOtgd8WWe+azV1jzE5Kmkr+kc+Jt/rT96UdBYg4jpUeZYneRFJw8maUWu/PwF+A/5lM BxtaESm+4cMbpdioJAV9ge4l6wsI8r/a0uFpiEmAjnU02xMhFgVlwnIXvq4cF1+FgU2S wQ7zWhEl2P2KNRISQbCTROYyKg6RpnveMGSe8/SDfknHeprrpIIMH5YTiHTRnznl9VLn /xAA== X-Gm-Message-State: AOJu0YxfqVpeMLoOPkMGKuwr+jBa5pvYaFr+caHEJSK0by6+GrIozle5 UirZoAzXoEeK1JIsMxJyxHHVw8PRjHPjbWTmuGEDQA== X-Received: by 2002:a05:6402:68e:b0:523:2e0e:5462 with SMTP id f14-20020a056402068e00b005232e0e5462mr7843842edy.42.1696243493936; Mon, 02 Oct 2023 03:44:53 -0700 (PDT) MIME-Version: 1.0 References: <20230922-unclothed-bottom-5531329f9724@spud> <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> In-Reply-To: <20230928-spectacle-civic-339c0d71d8d7@spud> From: yang tylor Date: Mon, 2 Oct 2023 18:44:41 +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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 03:45:01 -0700 (PDT) On Fri, Sep 29, 2023 at 12:56=E2=80=AFAM Conor Dooley wr= ote: > > 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 ass= ume 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 pane= ls > > > > of this driver. > > > > We would use PID as part of the file name. Because all the support = panels would > > > > have a unique PID associated. Which will make the firmware name lik= e > > > > himax_xxx_{$PID}.bin. The problem is, we need to know PID before fi= rmware 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 suitable > > > for this use case, given you need to determine the name of the file t= o > > > 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. > 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. Thanks, Tylor