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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A8FAC433EF for ; Wed, 17 Nov 2021 22:30:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B8E3661882 for ; Wed, 17 Nov 2021 22:30:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B8E3661882 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 824A282AB1; Wed, 17 Nov 2021 23:30:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="t01Jgihz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34F7382AB1; Wed, 17 Nov 2021 23:29:58 +0100 (CET) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 B928A82A53 for ; Wed, 17 Nov 2021 23:29:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x832.google.com with SMTP id t34so4189268qtc.7 for ; Wed, 17 Nov 2021 14:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m9ATvyKXg5It8Au0sGoNC3ZskIcPI6aqxXXwp+WmkdY=; b=t01JgihzhiBNP8DrogDqLKsCQHhkful0U6gvCxKogYe8fnuhQWZ18avMpvy7xgDDsj UWb6G9xhvjHaMB2bmnGVA0W0eBb/wfEeX/oINWhYIKIB916VADMmMVX4WIv4NW/VX+QK uqyoFOgm9SIGawY2eSEOgdcK6stOwSBC8AdW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m9ATvyKXg5It8Au0sGoNC3ZskIcPI6aqxXXwp+WmkdY=; b=6rSJrtKMNHV+TIMTVC0d/SuNtJjJHATyR/L4C1zVUyGE8azy2fworHhA1DuKjrhNQ/ 2k+jl8TNClzZhc2D4Hn3APTzFjvM6knY2k4zQMozYVEmhJia6oca0NJWWWqQxjzMS1rC 4UxQ0zrsO+ujXXlyzMqGKA+lqSAafaoOHz6kXU3Y8AX3XbOK7peCIs3/qWCvqMfg7IzS sTkBTHTKJXgKhc/NdMBQ/j9KK3e2NeIX27wdDvgfyhoriQdOQqoy5dzDrlO5iFnhoiQm sXGmcMeAOR7xdvKnTJg/cKE12ujYs+4MZchw0JZKmS0M1AjxwNLY0rXnzlZkkp4sEXOO x51Q== X-Gm-Message-State: AOAM532X1Dz5xBcUfuqZSn/W0wo+DuorNUY7ziju8IjNdBDE1qPIY0E9 1slwP0LkxzvcpQUoNJQYzBo95A== X-Google-Smtp-Source: ABdhPJx13PnbxIrC/MwU9WGwqBuOByTckNqwIe56EkJ94VslQW1gTra/lj6NLbiWaAYrhXb62YyL+w== X-Received: by 2002:a05:622a:246:: with SMTP id c6mr21142286qtx.100.1637188192394; Wed, 17 Nov 2021 14:29:52 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-a8a6-c29d-3d45-57ea.res6.spectrum.com. [2603:6081:7b01:cbda:a8a6:c29d:3d45:57ea]) by smtp.gmail.com with ESMTPSA id h11sm741798qko.18.2021.11.17.14.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 14:29:51 -0800 (PST) Date: Wed, 17 Nov 2021 17:29:50 -0500 From: Tom Rini To: Mathew McBride Cc: u-boot@lists.denx.de, Priyanka Jain Subject: Re: [PATCH v2 2/2] board: traverse: add initial Ten64 support Message-ID: <20211117222950.GE24579@bill-the-cat> References: <20211110044639.7070-1-matt@traverse.com.au> <20211110044639.7070-3-matt@traverse.com.au> <20211111182046.GU24579@bill-the-cat> <017630d6-ca34-4121-b5a7-c306948dae1b@www.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4Ue0e0VusUZDyg9h" Content-Disposition: inline In-Reply-To: <017630d6-ca34-4121-b5a7-c306948dae1b@www.fastmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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.2 at phobos.denx.de X-Virus-Status: Clean --4Ue0e0VusUZDyg9h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 18, 2021 at 09:09:44AM +1100, Mathew McBride wrote: > Hi Tom, >=20 > On Fri, Nov 12, 2021, at 5:20 AM, Tom Rini wrote: > > On Wed, Nov 10, 2021 at 04:46:39AM +0000, Mathew McBride wrote: > >=20 > > > Signed-off-by: Mathew McBride > > > --- > > > arch/arm/Kconfig | 16 ++ > > > arch/arm/dts/Makefile | 2 + > > > arch/arm/dts/fsl-ls1088a-ten64.dts | 377 +++++++++++++++++++++++++ > >=20 > > What is the status of this dts with upstream Linux? > It's been in Linux since v5.15, though there is going to be some flux bet= ween U-Boot and Linux for a short while as some devices will be introduced = into one or the other other first. > e.g traverse,ten64-controller does not and will not have a Linux (kernel)= counterpart but I'll try and get it added to the dt yaml's for validation. >=20 > (The upstream DTS intentionally left out some I2C devices that don't have= Linux drivers or formal DT bindings yet) Bindings need to be upstreamed and reviewed, and the dts here kept in sync with the kernel, as it will be dropped in for updates. You also should at this point be able to get nodes (so long as there is a binding of course) that aren't strictly used in the kernel in the dts that's in the kernel. > > [snip] > >=20 > >=20 > > > +#define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd" > > > +#define SD_BOOTCOMMAND "run distro_bootcmd" > >=20 > > You should just set CONFIG_USE_BOOTCOMMAND and then CONFIG_BOOTCOMMAND > > will be "run distro_bootcmd". Thanks! > This actually comes about from fsl_setenv_bootcmd: > https://elixir.bootlin.com/u-boot/latest/source/arch/arm/cpu/armv8/fsl-la= yerscape/soc.c#L800 > Which gets hooked into board_late_init > https://elixir.bootlin.com/u-boot/latest/source/arch/arm/cpu/armv8/fsl-la= yerscape/soc.c#L961 >=20 > The main reason I understand that exists is because the secure boot (FSL = trust architecture) setup differs a depending on where the board has booted= from: > https://elixir.bootlin.com/u-boot/latest/source/include/configs/ls1088ard= b.h#L448 > (There is also a similar issue with mcinitcmd which does affect us) >=20 > Since trust architecture isn't supported on our board yet, it just collap= ses down to "run distro_bootcmd" regardless of where the board started from. >=20 > I guess this behaviour could be hidden behind a Kconfig so it's opt-in? Thanks for explaining. That's...interesting. And something that might be able to be cleaned up a bit in -next now that we've added some more flexibility to how environment is constructed at build time. But, not a job for someone submitting a board that follows the best practices of the rest of the family, even if those best practices aren't always so great. --=20 Tom --4Ue0e0VusUZDyg9h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGVglQACgkQFHw5/5Y0 tyzewwv/e9yutRaFs/0XcGiXRKpTdgbakbr8UQf868jWSHFNdqU3MXWQcscs82j+ 60pbKiaWE5wu3Je/927xzZ7gdEM98ccyZAdLo9BQFQXCIzet6b0CjOR78DsVjmC7 K2sfH7btcjr/Qo6duaKGNQ7ebuBBBiUSG8C2J2LEBRbPKtJDOCW2nfl2zu/YyNvf 3usHPtcd8eqddnhsp4RKVLBuhVPAMMfnZC0klZ+whrrLKkHx4yjBLlIfSTXQO5PH faIqpfDP/wsZB+N2AAfnv3kE8iB5ltoy3QPsM3oPGetXeDhNSNvrJHXNED3nFdlu lI33n6d0coAIzds6DQp9vgsLPFpi56yDPTtqIC/2f6c3Sb4YaHqSXwRyfxxlMn0M nqsXbZagJ3H9FkhR7wWNzwyCgGlY/Q6tfRSAlvOA8nmQxBpsYycz2JFeKwB+wk/T a7iAnM2dVPcKoEDBmAQDutzW8lq9MqR/2bPqgNPWsneTnQa+s78ezLoT5eIKwpQY Q8Q6huZc =iQMK -----END PGP SIGNATURE----- --4Ue0e0VusUZDyg9h--