Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67D52C4332F for ; Sat, 24 Dec 2022 16:51:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 75E23849CD; Sat, 24 Dec 2022 17:51:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="si2Hprqf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CB75984FBF; Sat, 24 Dec 2022 17:51:33 +0100 (CET) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A383D8091A for ; Sat, 24 Dec 2022 17:51:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2b.google.com with SMTP id h10so4975717qvq.7 for ; Sat, 24 Dec 2022 08:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KA6sYes07regt6YOLlBWzYk1pZEu5Gk9pcefywVpPvU=; b=si2HprqfFPwBv21GMd1VO+ZdCJhEx1aFK1FG5M6VhoTkn/cC19Tb2Fs0Z34kUHMtzJ rKtI2Gtc2UFomn2QzTbA/1YKKY/RN+sznlcf1zzf+dA92jrqPjfkcmwjD8YEReupQzz0 RTBTMgIFKNGmU3j155HU1bn4zDZ9apZuZQox4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KA6sYes07regt6YOLlBWzYk1pZEu5Gk9pcefywVpPvU=; b=2ihrxyY2VG+/nuLEhpWDIigs1C6pDh+B97k4ToHMxhT4HN+hf9azPfAsx5wYZRK5mM JIR9EHoAIMFuOYB2Oz/gsVx2RxZHYzybKg/qX/6UIjYZjz6hcNEg31iPG4bxF/XHpHH4 KWpBwypcdRAe1WTk7Nm1r3UCu/KEgAEVtPEUzSnguliEtB0w67oRCpP7Mw22VJuiLWsW BBo1OYQaBt6z+DfAIbZ8Yd/vG3N0OtB8pKbZTI1rnUsF0WMlXtIjbd7Fyr33KSBFBZM8 eutKT0ePSS2VAyHOES6u0Tl9cEj6k37K1W7LgzJ+sV2M1XFiTo0JrRB1bTQ+pDJHRfQM FQ3A== X-Gm-Message-State: AFqh2kovExsQd8EKH27n88l/YJ9UYPbceCDLMTOIR784Wl7+0cxn5ED6 txWtJ4MdYJaLepRJMF/SldOapA== X-Google-Smtp-Source: AMrXdXuEmsPQzPk+DSdgoMicUE1T537FHIypSsG16yldIt0p/j/YLe4stHmnyFxEDWazrlfACghGOA== X-Received: by 2002:ad4:5f07:0:b0:4e8:595c:8009 with SMTP id fo7-20020ad45f07000000b004e8595c8009mr26717579qvb.24.1671900689299; Sat, 24 Dec 2022 08:51:29 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-cc76-8437-1672-f49a.res6.spectrum.com. [2603:6081:7b00:6400:cc76:8437:1672:f49a]) by smtp.gmail.com with ESMTPSA id s197-20020a37a9ce000000b006eed75805a2sm4323480qke.126.2022.12.24.08.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Dec 2022 08:51:28 -0800 (PST) Date: Sat, 24 Dec 2022 11:51:26 -0500 From: Tom Rini To: Paul Barker Cc: Rob Herring , u-boot@lists.denx.de, Simon Glass , Heinrich Schuchardt , Ilias Apalodimas , Jagan Teki Subject: Re: [PATCH v5 3/3] arm: dts: am335x-sancloud-bbe-lite: UEFI SPI export Message-ID: <20221224165126.GJ3787616@bill-the-cat> References: <20221123175006.4080122-1-paul.barker@sancloud.com> <20221123175006.4080122-4-paul.barker@sancloud.com> <20221220155518.GA583248-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e4VvnsOC19jqaUVM" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --e4VvnsOC19jqaUVM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 24, 2022 at 12:03:52PM +0000, Paul Barker wrote: > On 20/12/2022 15:55, Rob Herring wrote: > > On Wed, Nov 23, 2022 at 05:50:06PM +0000, Paul Barker wrote: > >> Add properties to the Authenta SPI flash device node to enable access = by > >> a UEFI application using a fixed GUID. > >> > >> Signed-off-by: Paul Barker > >> --- > >> arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi | 13 ++++++++++--- > >> arch/arm/dts/am335x-sancloud-bbe-lite.dts | 2 +- > >> 2 files changed, 11 insertions(+), 4 deletions(-) > >> > >> diff --git a/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi b/arch/= arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi > >> index 01c105ebb383..6c4ff67f9a4b 100644 > >> --- a/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi > >> +++ b/arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi > >> @@ -38,7 +38,14 @@ > >> =20 > >> &spi0 { > >> u-boot,dm-pre-reloc; > >> - channel@0 { > >> - u-boot,dm-pre-reloc; > >> - }; > >> +}; > >> + > >> +&authenta_flash { > >> + u-boot,dm-pre-reloc; > >> + > >> + u-boot,uefi-spi-vendor =3D "micron"; > >> + u-boot,uefi-spi-part-number =3D "mt25ql128abb"; > >=20 > > Looks like a compatible string. Yet, the flash node compatible string,= =20 > > micron,spi-authenta, is not documented (though in use for spidev). So= =20 > > use a compatible string for the flash that is specific to the flash=20 > > model. I assume there is some reason the specific model is needed? >=20 > For context, the UEFI Platform Initialization (PI) spec defines > EFI_SPI_PART, EFI_SPI_PERIPHERAL and EFI_SPI_IO_PROTOCOL structures. > I'm referencing v1.7 Errata A. See https://uefi.org/specifications for > downloads. >=20 > The EFI_SPI_PART structure has "Vendor" and "PartNumber" fields. We need > something to put in those fields and the device tree is the best place > to store the data. These properties are in the `-u-boot.dtsi` file so > they won't be submitted to the Linux kernel. Well, IMHO, this doesn't belong in U-Boot only for forever. Just like other bindings/properties that we're working on getting merged upstream and so that there is really Just One Device Tree, this should go upstream I believe. This might be another case of starts in -u-boot.dtsi while things get sorted out. --=20 Tom --e4VvnsOC19jqaUVM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOnLgsACgkQFHw5/5Y0 tyycxQwAtQKrG4nl49pV6pCKYlXpMDof1UNZ6P8xdOiD82iuRVUfsXFDNyxZzF9d qZJz7l9AjX6YBCwz5XVtGm5YgrQuTuQp1V5SkfZrEPhpaSHvkDZ8fT/1jlGJ3gbq REG0Uxm0xyWKhdlqiQSWrhhISDswQIc5O5Uys+f9e/IRviiHa4s1Zl/pigGhRWQN L/uk/bwlw5ZokX6BzIIebweggDupsnC+V+gjeJ+kfiP+RSXKQM2T0dRgLkOPijJN pZUdA6smFc6IT8pL2iyjR3xkCUK98B4mUKDLz3gmBiR7Q1+l6TTecKjs+BscION+ VBwJCTDLJxFcKPrT86QBk7kGoBpVic/v/Ot9ja2aNgQgQA9CqoTrgehQUzuJ6qDP e9SorUgvSTEXwOU2eTceNOnf0r7xNvxDITFyRmPTsSZe/urYGyleIYmXfHWZ4mA6 3f45RXfSZWdyKfc0DeUakQtdEgnXx7ERNi3R5wlC/hL1b/zP/0XF4Q5QG26an8qp FbuVXyKa =LlNT -----END PGP SIGNATURE----- --e4VvnsOC19jqaUVM--