Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1745173rdh; Tue, 26 Sep 2023 02:07:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDrBSQc24/pcYS0AtkHVvBCqEi4Qdu8g31D9peH8gWI/qU6RsF3ZbQ+40atoq+MCPI0+uS X-Received: by 2002:a17:90b:3588:b0:274:6cc9:ec69 with SMTP id mm8-20020a17090b358800b002746cc9ec69mr7420577pjb.49.1695719252529; Tue, 26 Sep 2023 02:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695719252; cv=none; d=google.com; s=arc-20160816; b=iblmCGaIv72W4jPjsx9IbtgKXe0nj5e67m/fTTUaFliSDma68EmwiTZmmPh7P/WVIH 5EUW1zzpPfiD5JvGHrEmZgcBYP2orVC9P6Rxgm/jNj/4ux/jNBVcLeE+ONGPypldTdor GczYRIn835PaBdnxYQhK/LozeuSsoq5YwjrezeWbXUIt1FwFScAOYQrsFIQTHu4qNDNx oUk1pSLvnWj4CgZx2cNc8CXqF7219+m0jE+MVmOoUxrU89bK/10+MFeMsNh7Du1n25bA ph+QtP3VA/lP7/IiQ8nTzw9IpOHNRGokLFZ2cIC9exph1cEmDBNMUyhnNuQ+fecTMKZl zNBw== 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=FG/XZvk3hacyQ2ppSKA5dgtBb471TsLXsnHEv8M7XF4=; fh=hB04x5JuxMp7VeLz325Mj9leKAs7/OMrNtje7NZuNPs=; b=awFMIbJY6TKplM3vy2bc4pF4TMlbe2QG7pNwkdzz0FxuwUxR7n97ZyhvBWwpGrL4Wl 3dS5QdcvuAXul7T48U8Cd/x8x+c4ORuwPYGG0AdkI+KhEiZh/2RtygAiNtogcOHrG9Ol 6CEro1aVrWOjPjaR5pkgyaPDHnpp5cB3uNcP2m8WnLrRbpDRNI/Bnj+pU+6pcUB21Aqs Ba5rfpogqanCnX/jmAUYI1ZpGGw2iTbvyaQFKdiOLgQvPaAXGXlrrnA4CrEzoVxmKbbC BcinGp2IY3vo2rVm3ZWCtvKRMF9v1/vxKpU5S6pkOcv88++aNWRYuZMzXwI88I2liFSQ xFvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bS58imdO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ob12-20020a17090b390c00b002774ecb2ed2si5387850pjb.143.2023.09.26.02.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 02:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bS58imdO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 7833280688A2; Tue, 26 Sep 2023 02:02:16 -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 S234047AbjIZJCR (ORCPT + 99 others); Tue, 26 Sep 2023 05:02:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233998AbjIZJCQ (ORCPT ); Tue, 26 Sep 2023 05:02:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 048E3DD; Tue, 26 Sep 2023 02:02:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5237AC433C8; Tue, 26 Sep 2023 09:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695718929; bh=FG/XZvk3hacyQ2ppSKA5dgtBb471TsLXsnHEv8M7XF4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bS58imdOvbQ5qdOIgFzc0p+S8qWiJsvYm5RWmonqnsrELN5km7fXzBubfLZOKu/oW Jy67+/UFRibENz+EUggyMW2jNYYwtyZ+y1dWQxRMsQ42sO+3pkigRG4m851+UpFeMG g963EkYEdXypdjx7hHOK5+tOKnRk8wcH7ANdPG7QX/PQB0d5/c1qW3Be5C74F+FzW/ a7EFzZJ8AJC+iAGuR433CgODxegei6QVxLqBcIlO2A++2gXCIATyI0OPazq63Q+sbZ p3XRbn6zAOlH25A/RNFhLKXVarkNZVstFHHQZupdRJ/B8lF/E6/P3O5jJeCWLFu9c/ sOL/+ClYJYHgw== Date: Tue, 26 Sep 2023 10:02:04 +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: <20230926-action-sludge-ec8e51fdd6d4@spud> References: <20230919-70b2f1e368a8face73468dfa@fedora> <20230919-cc4646dbfb953bd34e05658c@fedora> <20230922-unclothed-bottom-5531329f9724@spud> <20230922-removable-footwork-f1d4d96d38dd@spud> <20230925-cod-vacancy-08dc8d88f90e@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+WGjGNb92VtLdF6U" 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 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]); Tue, 26 Sep 2023 02:02:16 -0700 (PDT) --+WGjGNb92VtLdF6U Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: > > > > On Mon, Sep 25, 2023 at 09:44:21AM +0800, yang tylor wrote: > > > On Fri, Sep 22, 2023 at 11:31=E2=80=AFPM Conor Dooley wrote: > > > > > > > > On Fri, Sep 22, 2023 at 05:43:54PM +0800, yang tylor wrote: > > > > > On Fri, Sep 22, 2023 at 5:22=E2=80=AFPM Conor Dooley wrote: > > > > > > > > > > > > On Fri, Sep 22, 2023 at 03:56:25PM +0800, yang tylor wrote: > > > > > > > On Tue, Sep 19, 2023 at 7:09=E2=80=AFPM Conor Dooley wrote: > > > > > > > > On Tue, Sep 19, 2023 at 05:31:29PM +0800, yang tylor wrote: > > > > > > > > > > > > > > > The behavior of "himax,boot_time_fw_upgrade" seems not st= able and > > > > > > > > > should be removed. "himax,fw_in_flash", I use the kernel = config for > > > > > > > > > user to select. > > > > > > > > > > > > > > > > That seems like a bad idea, we want to be able to build one= kernel that > > > > > > > > works for all hardware at the same time. > > > > > > > > > > > > > > > I see, so I should take that back? > > > > > > > I'll explain more about it. > > > > > > > > > > > > Are there particular ICs where the firmware would always be in = flash and > > > > > > others where it would never be? Or is this a choice made by the= board or > > > > > > system designer? > > > > > > > > > > > Most cases it's about the system designer's decision. But some IC= s may be forced > > > > > to use flash because of its architecture(multiple IC inside, need= to > > > > > load firmware to > > > > > multiple IC's sram by master IC). But if there is no limitation on > > > > > this part, most system > > > > > designers will prefer flashless. > > > > > > > > Forgive me if I am not understanding correctly, there are some ICs = that > > > > will need to load the firmware from flash and there are some where = it > > > > will be a decision made by the designer of the board. Is the flash = part > > > > of the IC or is it an external flash chip? > > > > > > > > > > Both are possible, it depends on the IC type. For TDDI, the IC is long > > > and thin, placed on panel PCB, flash will be located at the external > > > flash chip. For the OLED TP, IC is usually placed at FPC and its flash > > > is embedded, thus the IC size is large compared to TDDI. But from the > > > driver's perspective either external flash or embedded flash, the IC > > > itself will load firmware from flash automatically when reset pin is > > > released. Only if firmware is loading from the host storage system, > > > the driver needs to operate the IC in detail. > > > > > > Since there are ICs that can use the external flash or have it loaded > > from the host, it sounds like you do need a property to differentiate > > between those cases. > Yep. >=20 > > Is it sufficient to just set the firmware-name property for these cases? > > If the property exists, then you know you need to load firmware & what > > its name is. If it doesn't, then the firmware either isn't needed or > > will be automatically loaded from the external flash. > 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 pick a different one depending on the compatible? > So we'll look for it when no-flash-flag is specified. In our experience, > forcing a prefix firmware name helps the user to aware what firmware > they are dealing with. --+WGjGNb92VtLdF6U Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRKeCwAKCRB4tDGHoIJi 0lruAP4hZ8nocuGWnEzSIUZrj/kgtBMgEPNP7n43DBHOkQFe2QD9Ho3Jptfn0Ua2 sOQKUiY1nPOeuklGoFnRpPDFDYbEgw4= =k7oS -----END PGP SIGNATURE----- --+WGjGNb92VtLdF6U--