Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1843172rdh; Tue, 26 Sep 2023 05:26:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEA6VUM152qjfTyB1RKIcKCjzyQPH3X/HY6draSn7uolSRBdq7AxkCxtAeFb+HcDiUGziE0 X-Received: by 2002:a25:fc24:0:b0:d0c:b780:4c13 with SMTP id v36-20020a25fc24000000b00d0cb7804c13mr8490897ybd.25.1695731202862; Tue, 26 Sep 2023 05:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695731202; cv=none; d=google.com; s=arc-20160816; b=IVH63T74DbOCf+2l/8iwTlyR7CGMCYipNlBzUMkXagBKmsS8Vh+/Mg98uHOrG+CT4Y KUXKa9RrsJXsiojLDLolAfip7ChLojQKpaMqRIoTORA7E9831X7H48RYnyKdT7ZoGzvY dOTdeJuqdpGBH5MwuvgA5SQLAzoR9GUxZQkab8hnRoSz6dk+edhVafJ2pKu1lr3osHi1 OLMbi5mEho3oocz3tXL6BQbJBObwOiokIpqNwS1WTdhtYGXIQh0fzFuLWQWic9ruGQ7N j8JxJyUARJ3RyIOiPCj0nGFOUoj2raKsdyYVX2zBEzGrJ8umGki4uSiI/qPqYiRbb1yO 0ADg== 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=ahIZ7yuPJ9MJX7623BAJCLqe/mYzgXMdeYKDpf77qm8=; fh=/mh4MmRV5NdFWJ8GpMQowTCNKNlIhv9l+X0XQoDVC+E=; b=muYGo/tm+IitqcJFVCjEaLxvh1iw36qULhrxGvU2xsaQ+yDEGfL6JJb6GAqIKkS8E+ ttHPkR9kLtxq7R+GH+fJ39CPR5XJy0Gm0kmaE0Ah6DfNDciSa0Em63ICxif8eMg2gh38 rNpqkNyqF9gYt0qSju4tDzqqRGrRmvh158alnZlrODWgTZlq83bwRn6Vz4O+yb7TwuLz oRjIwAYv6Kc4czQnqOAFzEBdFkSBTQyqrnCemX0WRkhkHcWPDVIpQu5YqCj9xRTjSPdB ixM3A+U5KVLUMMfx2mST2sFVMXPDwLPPsJQQxtjiYQGQzskmbObFrGrxkVElv2qxkcXs ATuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RRhw4MIa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e20-20020a656794000000b00565218f25c4si12054886pgr.858.2023.09.26.05.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 05:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RRhw4MIa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id A156381228B9; Tue, 26 Sep 2023 02:53:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbjIZJxC (ORCPT + 99 others); Tue, 26 Sep 2023 05:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjIZJw7 (ORCPT ); Tue, 26 Sep 2023 05:52:59 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30FB0FB for ; Tue, 26 Sep 2023 02:52:51 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9a645e54806so1016328866b.0 for ; Tue, 26 Sep 2023 02:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695721969; x=1696326769; 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=ahIZ7yuPJ9MJX7623BAJCLqe/mYzgXMdeYKDpf77qm8=; b=RRhw4MIaNsa7lpqZyR9xZUVzhdYDe8cp/HzuvyGGewabDF1ac147Q68zo5rFeOPmB0 ac3z4ePJTw9I6hgCiJjRr6spT+Ps53snysfSHJe1JxaDEuKqLYxD+TRWVAlxGC5joHT+ zC6II+VEHwhKKjxsuJoHa6VLor1zYVx6HEdZi56+v60O/+CycFtWJUH5eg3806JdhNhV S2+GLws9ER0tgsIibRzwraERtKODPYpRwlVTR2OoSjREvAQXagaDv8YE1VhmFV4QNdqw KrJFDQbE9sdFxfwo2sTL4tgvslT4eonCHaRGNVknJDMWA4zVGJwnZ8CHnNyjYcjgkvI4 CEAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695721969; x=1696326769; 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=ahIZ7yuPJ9MJX7623BAJCLqe/mYzgXMdeYKDpf77qm8=; b=OUCV1VdMmqey3GkuzCmHSrF0ajpo0cmLCev67ZoFGRjRKny0Q7nzlN2/wBLvxYLyET qCk/h9CnDUWt5jyal79vC9lGgZ6yAsNr93Fo62tLA5/3Ds63LPipf0Rc/OEHvXeo51lz gjEKn29sAt85iwTiwp2pBfYbqX7ulP+2bmTwwojESgdjGdCXQKcsPlMk7tdwsXsfFI5w a/Dv/sY94fZGOy4Av8gwjiXd/80/q4d1KRROd7laBMZWw8d7JuKU05Awl/4TkxN8KjsA xKNxtaT6Auv4xrVXV8GGZB54QPYyzWdxjV+i+ZhVuYLv8z5fc85VkVisG5SvYGjypMr/ BCxA== X-Gm-Message-State: AOJu0Yy8lbVDubAiAlu8IszT2vXRQLyOYp6GIolejp3USShJC06T+lzm qgJzvD6kCIK6SxBzPBJT7vQ+C0xFqrbmVADWs5R/8Q== X-Received: by 2002:a17:906:18b1:b0:9ae:6d0:84f7 with SMTP id c17-20020a17090618b100b009ae06d084f7mr6942913ejf.32.1695721969517; Tue, 26 Sep 2023 02:52:49 -0700 (PDT) MIME-Version: 1.0 References: <20230919-70b2f1e368a8face73468dfa@fedora> <20230919-cc4646dbfb953bd34e05658c@fedora> <20230922-unclothed-bottom-5531329f9724@spud> <20230922-removable-footwork-f1d4d96d38dd@spud> <20230925-cod-vacancy-08dc8d88f90e@wendy> <20230926-action-sludge-ec8e51fdd6d4@spud> In-Reply-To: <20230926-action-sludge-ec8e51fdd6d4@spud> From: yang tylor Date: Tue, 26 Sep 2023 17:52:39 +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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 26 Sep 2023 02:53:02 -0700 (PDT) On Tue, Sep 26, 2023 at 5:02=E2=80=AFPM Conor Dooley wro= te: > > 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 wrot= e: > > > > > > > > > > > > > > > > > The behavior of "himax,boot_time_fw_upgrade" seems not = stable and > > > > > > > > > > should be removed. "himax,fw_in_flash", I use the kerne= l config for > > > > > > > > > > user to select. > > > > > > > > > > > > > > > > > > That seems like a bad idea, we want to be able to build o= ne 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 i= n flash and > > > > > > > others where it would never be? Or is this a choice made by t= he board or > > > > > > > system designer? > > > > > > > > > > > > > Most cases it's about the system designer's decision. But some = ICs may be forced > > > > > > to use flash because of its architecture(multiple IC inside, ne= ed 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 IC= s that > > > > > will need to load the firmware from flash and there are some wher= e it > > > > > will be a decision made by the designer of the board. Is the flas= h 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 l= ong > > > > and thin, placed on panel PCB, flash will be located at the externa= l > > > > flash chip. For the OLED TP, IC is usually placed at FPC and its fl= ash > > > > is embedded, thus the IC size is large compared to TDDI. But from t= he > > > > driver's perspective either external flash or embedded flash, the I= C > > > > itself will load firmware from flash automatically when reset pin i= s > > > > 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. > > > > > Is it sufficient to just set the firmware-name property for these cas= es? > > > If the property exists, then you know you need to load firmware & wha= t > > > 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 driv= er 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? > 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 support panels w= ould have a unique PID associated. Which will make the firmware name like himax_xxx_{$PID}.bin. The problem is, we need to know PID before firmware l= oad at no flash condition. Thus PID information is required in dts when no-flash-flag is specified. > > 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. If a more simple solution for no-flash condition is needed, as you mentione= d, specifying a firmware name in dts would be the best. Otherwise, a no-flash-flag and PID information needs to be added in dts. Thanks, Tylor