Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1296208rdh; Mon, 25 Sep 2023 08:33:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZvaTWiXjMDygFPN+yPCMblatdMjyysm+tuVlbOG4hp0QNvHTJYMtxE3O2/LvLvHvtTOXm X-Received: by 2002:a17:902:f7d2:b0:1bc:2d43:c747 with SMTP id h18-20020a170902f7d200b001bc2d43c747mr6590520plw.38.1695655995446; Mon, 25 Sep 2023 08:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695655995; cv=none; d=google.com; s=arc-20160816; b=lO0JXJFy8yZuekLL/yT0q5+z1LVJ0yigfC0Nrt0BoiX2XqfrRQPmnw6Rsw/HYhXHxf WOZYUKQxgkbRkIo7Ss4CrnE20m97KPt0hVVCn2OMdYHWIOBIr82+Peq6iR1FUSH8qThy Q2PxX9wYDzGLGu2q2PXV9VL5CTpK+fSStMg8VdGNpmulqlJbx6tunfhplrRgHDAxx0ca kveaf2NpqtFceAbRozmEGzvFRaFvthIKxzjiQllnxmOn3Y35XNHK4pXthGdwLsejgIcI qY1GDXL1YPpMfO1h61RlzqGKdfSCMz+HG5I+OLULN/aY4q936DQLjQgjyVoFpR0ppaaL 8P8Q== 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=M4FMJWIhYvnrv0MR1fm5coTXmKfLOpUqIxDLXXuRcX0=; fh=tqlHLT6nzxbNBMIQhL/Gocoqz4EV4/VfiPRcw1yM19o=; b=o3epaArLBpM2X70bZeLRlecgaZGkpHsDN17lW6bzxe4rzLk8PNhghjZOnyElW/bbjN vqfjZW2vYiMUXb+cpeujHmRW1h0gXKapiquqNsw5RToCUF90K3GjS16YMpWVv1XX+U9A YsdLGHuiCeGQrunei98ts0IyozRGxcYZRE6C7X0v4OZ7P9O8rxhlHXhKXJplmH7N9hpv /1bR25yUQpGXl9rV/GJb8J40CHS+Xbb6/Xcuz5av28bwjo2liBWCff4z1DG//6av6lzJ fWQY7P0jmkIeMp/J2a08kTCfmvJkzCt3V+7MB/3qLPHYqhIgoowd640/vAEQZhwOcRbK qGYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LaFuJ+KT; 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 i11-20020a17090332cb00b001b55070e154si10906394plr.96.2023.09.25.08.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 08:33:15 -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=LaFuJ+KT; 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 ADA8B8092C85; Mon, 25 Sep 2023 03:17:11 -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 S230171AbjIYKQv (ORCPT + 99 others); Mon, 25 Sep 2023 06:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbjIYKQu (ORCPT ); Mon, 25 Sep 2023 06:16:50 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E05C5C2 for ; Mon, 25 Sep 2023 03:16:42 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9a58dbd5daeso751826566b.2 for ; Mon, 25 Sep 2023 03:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695637001; x=1696241801; 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=M4FMJWIhYvnrv0MR1fm5coTXmKfLOpUqIxDLXXuRcX0=; b=LaFuJ+KTHXYmEa6P6Y0u6Y4mXQ+QW62KTVvpXOxpKIRakrkOEnC9n0+cZMFw10rN91 Fibw+hyf1aX7l8CKPS5M5w2Vfsz0pEH6I3BuacBaFdIEJyrISb+t4IKhjT6hS3rhxHii vaqtr+PKVp827CNsG6H07irisOqpWVXPDPO3+JmM0T/QucE+1Cyg7HvrLt6VKvdadv+y FokcuDovh/rm/rYkaasJxTJjcHYhofkoSHsIsh+9DsfnU+FCuWykgGpEiBO1iE6kK0KT 1soiaZr3wHkXEoi7foYXMEkdhSw5a5b7BDF9ypasqwx3bT7GhOX7UamXv9lZjKITK75Q iM0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695637001; x=1696241801; 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=M4FMJWIhYvnrv0MR1fm5coTXmKfLOpUqIxDLXXuRcX0=; b=kTh0XMHw00cXXtWO8J0aN8mokmFLbYQR12UYxmY6pteLqifbaxh2X5YFwpx0xJncd1 GyuiTpNqHcNWFwREFxoMxHfhpkwfAkOp75+gPW1ufLajyR+YFShxMuapvqtynLpL4WjR m+INW36D3NCUIQXpLEpl4tViB2fakPcn1M+e6trV7xtkVwIB9SDqw2aC0MxeSZKOFKiT zieEvzQ4T7mcawRAlbW3YmnNQA7KlCqdIiKVmvmbbbXPPVJOELUjfM0ye8X15XLIVSGb 4V+z626pPemcl+dFhDi1UwqcQ6eXXVWPfRc/80B6Zdo8Q/qQNKaOAGd54Yxq3LNqighC w1fg== X-Gm-Message-State: AOJu0YzJbUTgNlBWHP0hfpoXfD3+6EWW/MiuAYOJsQH+xdNmJMRXNcZW S8GoZEbc65smFqZmb2m0s7gIiTqV3M8q1lUe7FDCaw== X-Received: by 2002:a17:907:3f9f:b0:9a9:e858:e72f with SMTP id hr31-20020a1709073f9f00b009a9e858e72fmr7291556ejc.45.1695637001285; Mon, 25 Sep 2023 03:16:41 -0700 (PDT) MIME-Version: 1.0 References: <20230919024943.3088916-1-tylor_yang@himax.corp-partner.google.com> <20230919024943.3088916-2-tylor_yang@himax.corp-partner.google.com> <20230919-70b2f1e368a8face73468dfa@fedora> <20230919-cc4646dbfb953bd34e05658c@fedora> <20230922-unclothed-bottom-5531329f9724@spud> <20230922-removable-footwork-f1d4d96d38dd@spud> <20230925-cod-vacancy-08dc8d88f90e@wendy> In-Reply-To: <20230925-cod-vacancy-08dc8d88f90e@wendy> From: yang tylor Date: Mon, 25 Sep 2023 18:16:29 +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]); Mon, 25 Sep 2023 03:17:11 -0700 (PDT) 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 stab= le and > > > > > > > > should be removed. "himax,fw_in_flash", I use the kernel co= nfig for > > > > > > > > user to select. > > > > > > > > > > > > > > That seems like a bad idea, we want to be able to build one k= ernel 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 fl= ash and > > > > > others where it would never be? Or is this a choice made by the b= oard 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, need t= o > > > > 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 th= at > > > 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 pa= rt > > > 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. > 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 c= ode. 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. Thanks, Tylor