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 70CDBC61DA4 for ; Tue, 14 Feb 2023 14:00:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CCC8085927; Tue, 14 Feb 2023 15:00:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Jdotvk5H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2C05F8591B; Tue, 14 Feb 2023 15:00:40 +0100 (CET) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 5F65885927 for ; Tue, 14 Feb 2023 15:00:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thierry.reding@gmail.com Received: by mail-wm1-x32d.google.com with SMTP id f47-20020a05600c492f00b003dc584a7b7eso13733171wmp.3 for ; Tue, 14 Feb 2023 06:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent: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=uHhIuX0DppTR4B4gct5hfobcbS+zb6HpLEm1M3dkMlU=; b=Jdotvk5HbVUyf/4R2DSZfrRFkQyVn+6PcaTcre4S5CVzFD0sutKAUxgQUifxn4o6rY 5GaJDl+3S+jKwFGcpyWlcf+V/RvpNn/E4gG0PdET2HVowQN6OmFyWCJ4KhXQ6of4arqx fXIcgJefxboVawMfXA7UK7mjK6A5Zhz1vjQZb55wUE8o4FmgTWieuTMGbwmLa82pMtoT AfebMZPJunhIV3DxupJOF5/pAJVSWMgDo2rrDabl+51rLvbqUNJIDFnTOp2NV2XYYi9d 3ySN3n08AQ2xdtseZ7saGmdXw9wbWgQPgITd/zf4o4qIl9AhSW/4Qknm7AoJ0w9eQGZt Eksw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent: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=uHhIuX0DppTR4B4gct5hfobcbS+zb6HpLEm1M3dkMlU=; b=oGYZSsuTyNbCT4/kOzPAZrBuhifovM26YxODr1kkU4oX633BcIx/fpkvL8K3OkWFGt 8od+2CiJ7v+jwFCWkTjM1Q/pnSLDEXpTqVUmFsW1TVZ15Wpf3BhlpGQVLHZkpC7umeKC yE1PvH2H+6XkmSWQ/xeFliy9bb8h1sdwmlnvLUJZSXfmt61cUj9bLZk3EzFQGKVJBVw/ IYa44DheWkPQDTahgaIDa7ViehXxb+Cjm+C1AvhBeR8VEop3wNWuJgbrwng8Oe6y5Ecn 2WjvWZVgmwYtdZ3hPHL7xGNMbjJxZ3p1Zoc+eLfz1++oKO3ujxGoOKLgDwr5piz6XRKs 47sg== X-Gm-Message-State: AO0yUKVhPwRyQxa/n+XoUc4I6dq0WFCFjkG9vLpBVnu3ITuWdC30EZkQ gDH97K9DJQCVcHTnYCwCQ/c= X-Google-Smtp-Source: AK7set+lDN6nHec5PZal3CIPKSiFRs0/kUh3x+SdV6Ar6Fd5WbTzHBablJqvFgCsmfacmuzJJMj65w== X-Received: by 2002:a05:600c:a694:b0:3e0:1ab:cf2a with SMTP id ip20-20020a05600ca69400b003e001abcf2amr2147442wmb.39.1676383227588; Tue, 14 Feb 2023 06:00:27 -0800 (PST) Received: from orome (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id q3-20020a1ce903000000b003dfdeb57027sm20281732wmc.38.2023.02.14.06.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 06:00:27 -0800 (PST) Date: Tue, 14 Feb 2023 15:00:25 +0100 From: Thierry Reding To: Svyatoslav Ryhel Cc: Tom Warren , Stephen Warren , Marcel Ziswiler , Allen Martin , Jagan Teki , Lukasz Majewski , Marek Vasut , Ramin Khonsari , Maxim Schwalm , Dmitry Osipenko , u-boot@lists.denx.de Subject: Re: [PATCH v3 00/16] General Tegra improvements Message-ID: References: <20230203092640.40821-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="v/tYuxY3aJ+FN73o" Content-Disposition: inline In-Reply-To: <20230203092640.40821-1-clamor95@gmail.com> User-Agent: Mutt/2.2.9 (2022-11-12) 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 --v/tYuxY3aJ+FN73o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 03, 2023 at 11:26:24AM +0200, Svyatoslav Ryhel wrote: > List of changes in patch set: > - add missing EXTPERIPH clocks for t30 > - swap host1x and disp1 clock parents (as they should be) > - add clk_id_to_pll_id and clock_decode_pair helpers to use > dts deeper (in tegra clocks often go in pair child - parent) > - include PLLD setup in T30 (DISP1 may use it as parent on > some device) > - fix Tegra PWM parent clock inline with linux > - Tegra SLINK: patch to accept any word length (unlike 8bit > aligned which was before) > - provide default USB gadget setup for existing Nvidia boards > - add late init function to be able to configure pre-boot stage > (like uncovering serial number or setting mac address) > - create common pre-dm i2c write for PMIC (used on T30 and T124 > to configure basic PMIC voltages required to boot like cpu and > core voltages) > - expose crypto module for all Tegra SoCs and implement BCT patching > (ability to update bootloader from u-boot on production devices > without need in host PC) >=20 > --- > Changelog from v2 > - fixed T114 TEGRA114_CLK_PLL_E_OUT0 > - adjusted pre-dm i2c write commit description > - added description file for ebtupdate command > - minor improvements of bct.c comments >=20 > Changelog from v1 > - rebased to latest u-boot master=20 > - PLLD setup for T30 moved specifically into T30 area > --- >=20 > Maxim Schwalm (1): > ARM: tegra: provide default USB gadget setup >=20 > Ramin Khonsari (1): > ARM: tegra30: implement BCT patching >=20 > Svyatoslav Ryhel (14): > tegra30: clock: add EXTPERIPH > ARM: t20/t30: swap host1x and disp1 clock parents > ARM: tegra: clock: add clk_id_to_pll_id helper > ARM: tegra: clock: add clock_decode_pair helper > ARM: tegra30: add PLLD to pll setup > ARM: tegra: Fix Tegra PWM parent clock > spi: tegra20_slink: accept any word length > ARM: tegra: add late init support > ARM: tegra: create common pre-dm i2c write > board: tegra124: switch to updated pre-dm i2c write > board: tegra30: switch to updated pre-dm i2c write > ARM: tegra: expose crypto module for all Tegra SoCs > ARM: tegra: crypto: extend crypto functional > ARM: tegra20: implement BCT patching >=20 > arch/arm/dts/tegra114.dtsi | 2 +- > arch/arm/dts/tegra124.dtsi | 2 +- > arch/arm/include/asm/arch-tegra/clock.h | 21 +++++ > arch/arm/include/asm/arch-tegra/crypto.h | 47 ++++++++++ > arch/arm/include/asm/arch-tegra/sys_proto.h | 6 ++ > arch/arm/include/asm/arch-tegra/tegra_i2c.h | 17 ++++ > .../include/asm/arch-tegra30/clock-tables.h | 6 +- > arch/arm/mach-tegra/Kconfig | 14 +++ > arch/arm/mach-tegra/Makefile | 1 + > arch/arm/mach-tegra/board2.c | 2 + > arch/arm/mach-tegra/clock.c | 23 +++++ > arch/arm/mach-tegra/cpu.h | 1 - > arch/arm/mach-tegra/{tegra20 =3D> }/crypto.c | 63 +++++++++---- > arch/arm/mach-tegra/tegra114/clock.c | 39 +++++++- > arch/arm/mach-tegra/tegra124/clock.c | 40 ++++++++- > arch/arm/mach-tegra/tegra124/cpu.c | 4 + > arch/arm/mach-tegra/tegra20/Kconfig | 1 + > arch/arm/mach-tegra/tegra20/Makefile | 7 +- > arch/arm/mach-tegra/tegra20/bct.c | 79 ++++++++++++++++ > arch/arm/mach-tegra/tegra20/bct.h | 42 +++++++++ > arch/arm/mach-tegra/tegra20/clock.c | 43 ++++++++- > arch/arm/mach-tegra/tegra20/crypto.h | 19 ---- > arch/arm/mach-tegra/tegra210/clock.c | 39 +++++++- > arch/arm/mach-tegra/tegra30/Kconfig | 8 -- > arch/arm/mach-tegra/tegra30/Makefile | 1 + > arch/arm/mach-tegra/tegra30/bct.c | 79 ++++++++++++++++ > arch/arm/mach-tegra/tegra30/bct.h | 42 +++++++++ > arch/arm/mach-tegra/tegra30/clock.c | 90 +++++++++++++++++-- > arch/arm/mach-tegra/tegra30/cpu.c | 55 +----------- > board/avionic-design/tec-ng/Makefile | 4 +- > board/avionic-design/tec-ng/tec-ng-spl.c | 34 +++++++ > board/nvidia/beaver/Makefile | 2 + > board/nvidia/beaver/beaver-spl.c | 43 +++++++++ > board/nvidia/cardhu/Makefile | 4 +- > board/nvidia/cardhu/cardhu-spl.c | 43 +++++++++ > board/nvidia/venice2/as3722_init.c | 65 +++++++++----- > board/nvidia/venice2/as3722_init.h | 43 --------- > board/toradex/apalis-tk1/as3722_init.c | 85 ++++++++++-------- > board/toradex/apalis-tk1/as3722_init.h | 40 --------- > board/toradex/apalis_t30/Makefile | 2 + > board/toradex/apalis_t30/apalis_t30-spl.c | 34 +++++++ > board/toradex/colibri_t30/Makefile | 2 + > board/toradex/colibri_t30/colibri_t30-spl.c | 34 +++++++ > configs/beaver_defconfig | 3 - > configs/cei-tk1-som_defconfig | 3 - > configs/dalmore_defconfig | 3 - > configs/jetson-tk1_defconfig | 3 - > configs/nyan-big_defconfig | 3 - > configs/p2371-0000_defconfig | 3 - > configs/p2371-2180_defconfig | 3 - > configs/p2571_defconfig | 3 - > configs/p3450-0000_defconfig | 3 - > configs/venice2_defconfig | 3 - > doc/usage/cmd/ebtupdate.rst | 70 +++++++++++++++ > drivers/pwm/tegra_pwm.c | 10 ++- > drivers/spi/tegra20_slink.c | 19 ++-- > drivers/usb/gadget/Kconfig | 3 + > 57 files changed, 1051 insertions(+), 309 deletions(-) > create mode 100644 arch/arm/include/asm/arch-tegra/crypto.h > rename arch/arm/mach-tegra/{tegra20 =3D> }/crypto.c (68%) > create mode 100644 arch/arm/mach-tegra/tegra20/bct.c > create mode 100644 arch/arm/mach-tegra/tegra20/bct.h > delete mode 100644 arch/arm/mach-tegra/tegra20/crypto.h > create mode 100644 arch/arm/mach-tegra/tegra30/bct.c > create mode 100644 arch/arm/mach-tegra/tegra30/bct.h > create mode 100644 board/avionic-design/tec-ng/tec-ng-spl.c > create mode 100644 board/nvidia/beaver/beaver-spl.c > create mode 100644 board/nvidia/cardhu/cardhu-spl.c > delete mode 100644 board/nvidia/venice2/as3722_init.h > delete mode 100644 board/toradex/apalis-tk1/as3722_init.h > create mode 100644 board/toradex/apalis_t30/apalis_t30-spl.c > create mode 100644 board/toradex/colibri_t30/colibri_t30-spl.c > create mode 100644 doc/usage/cmd/ebtupdate.rst I haven't tested this exhaustively, just merely made sure that it can PXE boot into Linux. Seems to work fine on Beaver and Jetson TK1, so: Tested-by: Thierry Reding --v/tYuxY3aJ+FN73o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmPrk/YACgkQ3SOs138+ s6GCBxAAhOYdZhZUsHwFRFgmpi5snPXB1Qpq4AndXMBgDOkBx/pl5lBiIrHJjf37 58IfMB044kweCEL3fVV2EOk9K3QlBuJWTpfFqQ4HaV3SurONlarrmfWBXh+HG+RH U7kwJrIffzqwRbpYB50ljE3YngAjo13O3nnWw29ghaJNPxSPsbifEh17/wP2PGqd d5QkZfEKwsC22HtONYBn0KzMLckcA6hO6WlJurjY0CK8ubZmgZN42DLuTjvNxSpZ S23sSyhb4ruHfJSg06i11s5bm6w+vUSUxtirYtqdaNgFqwg2EjJWSC8p64x2j0bY b73brpUAoSaUL8lOHnxr+whqth8mEQZBVto+awLf7umpZMDu6Vjj+1+kb+PGUGJC 3vjMtdjeRVQBN7lc6vCo8Et9SAA7dE7WYojJeEgKGWTXgXjKgAW4/D87XhX0ifOW lOZM+GeLNreBxibQZ0yPrs8GSJWm+U4cuncNr/nubNd6Yw7sXwx3u6ZK1tqMYS+o 1HGrBuh5OEZwRJMB2L3zLbC1bTaIAEqJH5TenxEc/aMURex7vHfFzsJPsF6usVab T2mFv3aw/Q7lWCh9pcQvoGBy7HZuqVYIEV4XJYXq39bnd3/1ctBXpxi17gAdIZkD iIZBZ8P2iCUuauFyY9y8FF44J3hKGaresEZ7/MHIwmAfJz1K9jo= =hI5M -----END PGP SIGNATURE----- --v/tYuxY3aJ+FN73o--