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 B7798C61D97 for ; Sun, 29 Jan 2023 18:41:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 61A2185745; Sun, 29 Jan 2023 19:41:46 +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="FiU/r9Vh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2B96C85742; Sun, 29 Jan 2023 19:41:45 +0100 (CET) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 52F688558B for ; Sun, 29 Jan 2023 19:41:42 +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=clamor95@gmail.com Received: by mail-wr1-x42a.google.com with SMTP id r2so9186910wrv.7 for ; Sun, 29 Jan 2023 10:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gmi00XsSh6qPeJiYnkUViFEZseD3Tk/00I25p0So4lA=; b=FiU/r9VhwovlUdRCrtRETkUUxkQ8twXc6g05f/TfyZTshhYuTiBXlR5kbfLonmeP4V kLg1eKMXBroVijyJbDrJaW6o2LumQMkOdw9xj6RnlT5DICf0fUh/kRteJLcF7n15qnJw 90eBjym+fcRhkIKa81DBxO8PEqfpYWLPqEaf95pHCAKMv/io+34G1hgg9Kn5kfp2/DFL FF4LVnamJr37h4bf+qEUxADx0MF07/qGtiysSSUspusl4A9z2tWPPzv6f8DgUsHf/uy2 ymdk4N8ha+wV8flGnBZiCOxcrbfu9A/FV4DMvLv4MNgAdtwwLe110KQziJmwIrE6+oTY 21PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gmi00XsSh6qPeJiYnkUViFEZseD3Tk/00I25p0So4lA=; b=Fq56AwLtQa6eax2PgyjLMme8KcC4O8ZGOnPnl2/DW4SCETRG2Jbzq2yXjZinSEEXUj yj9UlgqfLoUhh8PoDN5hUwxktJ6F7Kh0rHxJYFQXugmpgeyCxCHK9QcN9AuoVyaBhgAx bukAPBbLMqrNMmtQTLi3o7fuO64vN4W1qqmYoEE18SvPB285tgk2UiPHNl6zYWvdrGpJ qI5+F0bNQq7CekUuHSDtKKyZHdbKHWZLY0hNYDs2VrHGzNysNK8FfYuIi5BoU1Cm10WW 2okGNNyieQKfI862b/ZCzLFbhXE8zygfhfba7sjT96IYg5BVzIvg8DD7VquXWSA1C4Tr KuZg== X-Gm-Message-State: AO0yUKXYcIBOpIU2iUB+bAP2Wd24ZowIAHJRJ2sTDv931rg3DkOrlWOW 1xRUWTvZ/b5/APelGsiW9xE= X-Google-Smtp-Source: AK7set+sENvH86HQ3EXttnJKCYtses0s6Vjk4x0C5mGfX0yLtnKeOmquHyQITi6wU1t91RKnrr3WqA== X-Received: by 2002:a5d:420a:0:b0:2bf:e39d:c8a7 with SMTP id n10-20020a5d420a000000b002bfe39dc8a7mr3929898wrq.44.1675017701745; Sun, 29 Jan 2023 10:41:41 -0800 (PST) Received: from xeon.. ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id y8-20020adfdf08000000b002bfb31bda06sm10321010wrl.76.2023.01.29.10.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 10:41:41 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Alban Bedel , Stephen Warren , Marcel Ziswiler , Allen Martin , Jagan Teki , Lukasz Majewski , Marek Vasut , Svyatoslav Ryhel , Ramin Khonsari , Thierry Reding , Maxim Schwalm , Dmitry Osipenko Cc: u-boot@lists.denx.de Subject: [PATCH v1 00/16] General Tegra improvements Date: Sun, 29 Jan 2023 20:41:07 +0200 Message-Id: <20230129184123.36001-1-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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) Maxim Schwalm (1): ARM: tegra: provide default USB gadget setup Ramin Khonsari (1): ARM: tegra30: implement BCT patching 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 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 | 15 ++++ arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/board2.c | 2 + arch/arm/mach-tegra/clock.c | 26 ++++++ arch/arm/mach-tegra/cpu.h | 1 - arch/arm/mach-tegra/{tegra20 => }/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 | 78 +++++++++++++++++ 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 | 78 +++++++++++++++++ arch/arm/mach-tegra/tegra30/bct.h | 42 +++++++++ arch/arm/mach-tegra/tegra30/clock.c | 49 +++++++++-- 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 - drivers/pwm/tegra_pwm.c | 10 ++- drivers/spi/tegra20_slink.c | 19 +++-- drivers/usb/gadget/Kconfig | 3 + 56 files changed, 942 insertions(+), 309 deletions(-) create mode 100644 arch/arm/include/asm/arch-tegra/crypto.h rename arch/arm/mach-tegra/{tegra20 => }/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 -- 2.37.2