[PATCH v4 5/5] starfive: add mac vendor sub-command

2024-05-09 Thread Heinrich Schuchardt
As boards from multiple vendors (Milk-V, StarFive, Pine64) use the mac command provide a sub-command to set the vendor string. Reported-by: E. Shattow Signed-off-by: Heinrich Schuchardt --- v4: no change v3: new patch --- .../visionfive2/visionfive2-i2c-eeprom.c | 25

[PATCH v4 4/5] configs: visionfive2: enable SPL_YMODEM_SUPPORT

2024-05-09 Thread Heinrich Schuchardt
We can use U-Boot for recovering JH7110 based boards via UART if CONFIG_SPL_YMODEM_SUPPORT=y. * Send u-boot-spl.normal.out via XMODEM. * Send u-boot.itb via YMODEM. Signed-off-by: Heinrich Schuchardt Reviewed-by: E. Shattow --- v4: no change v3: no change v2: no change

[PATCH v4 3/5] doc: Milk-V Mars CM and Milk-V Mars CM Lite

2024-05-09 Thread Heinrich Schuchardt
Provide a man-page describing the usage of U-Boot on the Milk-V Mars CM and Milk-V Mars CM Lite boards. Signed-off-by: Heinrich Schuchardt Reviewed-by: E Shattow --- v4: remove .rst extension from toctree links remove superfluous word 'connected' describing booting from SPI

[PATCH v4 2/5] board: add support for Milk-V Mars CM

2024-05-09 Thread Heinrich Schuchardt
We already support the VisionFive 2 and the Milk-V Mars board by patching the VisionFive 2 device tree. With this patch the same is done for the Milk-V Mars CM. Signed-off-by: Heinrich Schuchardt Tested-by: E. Shattow Reviewed-by: E. Shattow --- v4: no change v3: no change v2:

[PATCH v4 1/5] board: starfive: function to read eMMC size

2024-05-09 Thread Heinrich Schuchardt
The EEPROM provides information about the size of the eMMC. Provide a new function get_mmc_size_from_eeprom() to read it. Signed-off-by: Heinrich Schuchardt Reviewed-by: E. Shattow --- v4: no change v3: no change v2: fix typos in get_mmc_size_from_eeprom() description

[PATCH v4 0/5] board: starfive: add Milk-V Mars CM support

2024-05-09 Thread Heinrich Schuchardt
With this series the Milk-V Mars CM board can be booted. NVMe, SD-card, Ethernet, UART are working but not USB. The first series Milk-V Mars CM Lite board (the version without eMMC) uses incorrect series numbers indicating eMMC presence. For these CONFIG_STARFIVE_NO_EMMC=y must be set to

Re: [PATCH 1/4] remoteproc: k3-dsp: Enable C71x support for AM62A

2024-05-09 Thread Devarsh Thakkar
On 09/05/24 19:50, Hari Nagalla wrote: > AM62A SoC has a single C71x DSP subsystem with analytics engine in > main voltage domain. Extend support to AM62A with compatible strings. > > Signed-off-by: Hari Nagalla Reviewed-by: Devarsh Thakkar Regards Devarsh > --- >

Re: [PATCH v2 26/28] asn1_decoder: remove ASN1 decoder when using MbedTLS

2024-05-09 Thread Ilias Apalodimas
On Tue, 7 May 2024 at 21:03, Raymond Mao wrote: > > When building with MbedTLS, we are using MbedTLS to decode ASN1 data > for x509, pkcs7 and mscode. So we can remove asn1_decoder when > MBEDTLS_LIB_X509 is enabled. > > Signed-off-by: Raymond Mao > --- > Changes in v2 > - Initial patch. > >

Re: [PATCH v4 01/19] doc: uefi: capsules: Add Capsule Update porting section

2024-05-09 Thread Ilias Apalodimas
On Thu, 9 May 2024 at 19:41, Jonathan Humphreys wrote: > > Created a capsule update porting section in the documentation that outlines > the steps a board developer must do when porting from an existing reference > board implementation. > > In particular, added a big warning that new capsule

Re: [PATCH v2 3/6] arch: arm: dts: k3-am68-sk-r5: Sync with J721s2 R5 file

2024-05-09 Thread Manorit Chawdhry
Hi Nishanth, On 07:29-20240509, Nishanth Menon wrote: > On 15:23-20240509, Manorit Chawdhry wrote: > > Currently AM68 SK boots with J721s2 R5 DTS and then later changes to > > AM68 SK DT during runtime. > > > > To split the support of J721s2 and AM68, sync AM68

[PATCH v3 6/6] arm: dts: k3-j721s2|am68: Migrate to OF_UPSTREAM

2024-05-09 Thread Manorit Chawdhry
Use OF_UPSTREAM to pull Linux DT from dts/ tree Signed-off-by: Manorit Chawdhry --- arch/arm/dts/Makefile |4 +- arch/arm/dts/k3-am68-sk-base-board-u-boot.dtsi | 20 +- arch/arm/dts/k3-am68-sk-base-board.dts | 611 ---

[PATCH v3 5/6] configs: am68_sk: Move to separate defconfig for AM68 SK board

2024-05-09 Thread Manorit Chawdhry
Add defconfig for AM68 SK R5 and A72 configuration. This includes and modifies the AM68 EVM defconfigs: j721s2_evm_r5_defconfig -> am68_sk_r5_defconfig j721s2_evm_a72_defconfig -> am68_sk_a72_defconfig Reviewed-by: Neha Malcom Francis Signed-off-by: Manorit Chawdhry ---

[PATCH v3 4/6] arch: arm: dts: k3-j721s2-r5: Introduce k3-j721s2-r5.dtsi

2024-05-09 Thread Manorit Chawdhry
Create an SoC R5 dtsi file that could be used at board level R5 files. This would help in keeping the SoC level changes in sync across board files. Reviewed-by: Neha Malcom Francis Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am68-sk-r5-base-board.dts | 78 +---

[PATCH v3 3/6] arch: arm: dts: k3-am68-sk-r5: Sync with J721s2 R5 file

2024-05-09 Thread Manorit Chawdhry
Currently AM68 SK boots with J721s2 R5 DTS and then later changes to AM68 SK DT during runtime. To split the support of J721s2 and AM68, sync AM68 R5 DT with J721s2 R5 DT as that contains some essential node changes for booting up AM68 using AM68 R5 DT. secure_proxy_sa3 and secure_proxy_mcu node

[PATCH v3 2/6] configs: j721s2_evm_a72_defconfig: Switch to bootstd

2024-05-09 Thread Manorit Chawdhry
From: Neha Malcom Francis Switch to using bootstd. Note that with this change, we will stop using distro_bootcmd and instead depend entirely on bootflow method of starting the system up. Also config_distro_bootcmd.h header file that is no longer needed in j721s2_evm.h. Signed-off-by: Neha

[PATCH v3 1/6] board: ti: j721s2: j721s2.env: Add explicit boot_targets

2024-05-09 Thread Manorit Chawdhry
From: Neha Malcom Francis Add explicit boot_targets to indicate the specific boot sequence to follow. Signed-off-by: Neha Malcom Francis Signed-off-by: Manorit Chawdhry --- board/ti/j721s2/j721s2.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ti/j721s2/j721s2.env

[PATCH v3 0/6] Enable OF_UPSTREAM for J721s2 and AM68

2024-05-09 Thread Manorit Chawdhry
) - Link to v2: https://lore.kernel.org/r/20240509-b4-upstream-j721s2-of-upstream-v2-0-149563cd4...@ti.com --- Manorit Chawdhry (4): arch: arm: dts: k3-am68-sk-r5: Sync with J721s2 R5 file arch: arm: dts: k3-j721s2-r5: Introduce k3-j721s2-r5.dtsi configs: am68_sk: Move to separate

[PATCH v2] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Anand Moon
Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. Following targets is migrated to use OF_UPSTREAM: - rv1126-edgeble-neu2 : Board is an industrial form factor IO board. - sonoff-ihost-rv1126 : Gateway device designed to provide a

Re: [PATCH v2] sysreset: psci: drop reliance on SPL support

2024-05-09 Thread Tom Rini
On Fri, May 10, 2024 at 12:06:00AM +0100, Andre Przywara wrote: > At the moment enabling CONFIG_SYSRESET_PSCI *selects* SPL_ARM_PSCI_FW, > even though this is a platform design property, so nothing any driver > should enforce. Some platforms load the PSCI runtime (TF-A) only in the > SPL, so PSCI

Re: [PATCH 41/81] misc: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:30, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Tom Rini Cc: Simon Glass Cc: Sean Anderson Cc: Eugen Hristev Cc: Mario Six Cc: Philipp

Re: [PATCH] rockchip: rv1108: Remove unneeded local rv1108-cru.h

2024-05-09 Thread Kever Yang
On 2024/5/10 00:42, Fabio Estevam wrote: After the conversion of RV1108 to OF_UPSTREAM, include/dt-bindings/clock/rv1108-cru.h is no longer needed because there is dts/upstream/include/dt-bindings/clock/rv1108-cru.h from upstream Linux. Remove the unneeded rv1108-cru.h file. Reported-by:

Re: [PATCH 74/81] video: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Anatolij Gustschin Cc: Tom Rini Cc: Matthias Brugger Cc: Peter Robinson Cc: Liviu Dudau

Re: [PATCH 70/81] timer: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Tom Rini Cc: Rick Chen Cc: Leo Cc: Patrice Chotard Cc: Eugen Hristev Cc: Michal Simek

Re: [PATCH 68/81] sysreset: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Tom Rini Cc: Michal Simek Cc: Mario Six Cc: Weijie Gao Cc: GSS_MTK_Uboot_upstream Cc:

Re: [PATCH 64/81] sound: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Tom Rini Cc: Simon Glass Cc: Philipp Tomsich Cc: Kever Yang Cc: Thierry Reding Cc:

Re: [PATCH 57/81] reset: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Ryan Chen Cc: Chia-Wei Wang Cc: Aspeed BMC SW team Cc: Joel Stanley Cc: Tom Rini Cc:

Re: [PATCH 54/81] ram: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Ryan Chen Cc: Chia-Wei Wang Cc: Aspeed BMC SW team Cc: Joel Stanley Cc: Tom Rini Cc:

Re: [PATCH 52/81] power: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Jaehoon Chung Cc: Tom Rini Cc: Neil Armstrong Cc: Ryder Lee Cc: Weijie Gao Cc: Chunfeng

Re: [PATCH 51/81] pinctrl: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Ryan Chen Cc: Chia-Wei Wang Cc: Aspeed BMC SW team Cc: Joel Stanley Cc: Tom Rini Cc:

Re: [PATCH 50/81] phy: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Jagan Teki Cc: Andre Przywara Cc: Tom Rini Cc: Stefan Roese Cc: Neil Armstrong Cc:

Re: [PATCH 48/81] pci: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Stefan Roese Cc: Tom Rini Cc: Nobuhiro Iwamatsu Cc: Marek Vasut Cc: Heiko Schocher Cc:

Re: [PATCH 45/81] net: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:31, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Joe Hershberger Cc: Ramon Fried Cc: Tom Rini Cc: Ryan Chen Cc: Chia-Wei Wang Cc: Aspeed

Re: [PATCH 42/81] mmc: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:30, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Peng Fan Cc: Jaehoon Chung Cc: Tom Rini Cc: Ryan Chen Cc: Chia-Wei Wang Cc: Aspeed BMC SW

Re: [PATCH 33/81] gpio: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:30, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Tom Rini Cc: Matthias Brugger Cc: Peter Robinson Cc: Alex Nemirovsky Cc: Ryan Chen Cc:

Re: [PATCH 19/81] clk: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:30, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Lukasz Majewski Cc: Sean Anderson Cc: Tom Rini Cc: Ryan Chen Cc: Chia-Wei Wang Cc: Aspeed

Re: [PATCH 14/81] block: Remove and add needed includes

2024-05-09 Thread Kever Yang
On 2024/5/2 09:30, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini Reviewed-by: Kever Yang Thanks, - Kever --- Cc: Tom Rini Cc: Tobias Waldekranz Cc: Simon Glass Cc: Heinrich Schuchardt Cc: Marek Vasut

[PATCH 2/2] power: regulator: add AXP717 support

2024-05-09 Thread Andre Przywara
The X-Powers AXP717 is a PMIC with four buck converters and a number of LDOs, one of which is actually fixed (so not modelled here). Add the compatible string and the respective regulator ranges to allow drivers to adjust voltages. Signed-off-by: Andre Przywara --- drivers/power/pmic/axp.c

[PATCH 1/2] power: pmic: sunxi: add AXP717 SPL driver

2024-05-09 Thread Andre Przywara
On boards using the AXP717 PMIC, the DRAM rail is often not setup correctly at reset time, so we have to program the PMIC very early in the SPL, before running the DRAM initialisation. Add a simple AXP717 PMIC driver that knows about the buck converters, so that we can set the voltage for the

[PATCH 0/2] power: regulator: add AXP717 support

2024-05-09 Thread Andre Przywara
The X-Powers AXP717 is a PMIC chip, controlled via I2C or RSB. It features four DC/DC converters and a number of linear regulators. Also it contains some charger and USB-C detection circuitry, though we don't use that in U-Boot. The PMIC is used on some newer Allwinner devices, for instance the

[PATCH] sunxi: spl: h616: fix booting from high MMC offset

2024-05-09 Thread Andre Przywara
The BootROM in the Allwinner H616 tries to load the initial boot code from sector 16 (8KB) of an SD card or eMMC device, but also looks at sector 512 (256KB). This helps with GPT formatted cards. A "high" boot offset is also used on previous SoCs, but it's sector 256 (128KB) there instead. Extend

[PATCH v2] sysreset: psci: drop reliance on SPL support

2024-05-09 Thread Andre Przywara
At the moment enabling CONFIG_SYSRESET_PSCI *selects* SPL_ARM_PSCI_FW, even though this is a platform design property, so nothing any driver should enforce. Some platforms load the PSCI runtime (TF-A) only in the SPL, so PSCI is naturally not available during SPL runtime. Spit

Re: [PATCH v4 17/19] doc: board: ti: am62px: document OSPI layout

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:41:21AM -0500, Jonathan Humphreys wrote: > Added OSPI flash layout diagram, as well as example commands to flash > firmware to it. > > Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 14/19] doc: board: ti: am62x: document OSPI layout

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:41:18AM -0500, Jonathan Humphreys wrote: > Added OSPI flash layout diagram, as well as example commands to flash > firmware to it. > > Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 07/19] doc: board: ti: j721e: document OSPI layout

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:41:11AM -0500, Jonathan Humphreys wrote: > Updated OSPI flash layout diagram. > > Signed-off-by: Jonathan Humphreys Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 04/19] doc: board: ti: am64x: document OSPI layout

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:41:08AM -0500, Jonathan Humphreys wrote: > Added OSPI flash layout diagram, as well as example commands to flash > firmware to it. > > Signed-off-by: Jonathan Humphreys Thanks for reworking things to use SVGs here. Reviewed-by: Tom Rini -- Tom signature.asc

Re: [PATCH 4/4] arm: EFI linker script text section alignment

2024-05-09 Thread Ilias Apalodimas
Hi Raymond, Try not to post the same patches without the fixes that were asked [0], at least not without an explanation. On Thu, 9 May 2024 at 17:38, Raymond Mao wrote: > > Add text section alignment to fix sbsign signing warning > 'gaps in the section table may result in different checksums' >

Re: [PATCH 2/4] efi_loader: remove redundant hash includes

2024-05-09 Thread Ilias Apalodimas
On Thu, 9 May 2024 at 17:38, Raymond Mao wrote: > > Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h > and u-boot/sha512.h > > Signed-off-by: Raymond Mao > --- > lib/efi_loader/efi_signature.c | 1 - > lib/efi_loader/efi_tcg2.c | 3 --- > 2 files changed, 4 deletions(-) > >

Re: [PATCH v3 3/5] doc: Milk-V Mars CM and Milk-V Mars CM Lite

2024-05-09 Thread E Shattow
Hi, A couple of nits I missed. Good for PR otherwise. On Thu, May 9, 2024 at 3:12 AM Heinrich Schuchardt wrote: > > Provide a man-page describing the usage of U-Boot on > the Milk-V Mars CM and Milk-V Mars CM Lite boards. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > correct

Re: [PATCH v1] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Jonas Karlman
Hi Anand, On 2024-05-09 18:42, Anand Moon wrote: > Hi Jonas > > On Thu, 9 May 2024 at 21:38, Jonas Karlman wrote: >> >> Hi, >> >> On 2024-05-09 17:26, Anand Moon wrote: >>> Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. >>> >>> Following targets is not migrated to use

[PATCH] rockchip: rv1108: Remove unneeded local rv1108-cru.h

2024-05-09 Thread Fabio Estevam
After the conversion of RV1108 to OF_UPSTREAM, include/dt-bindings/clock/rv1108-cru.h is no longer needed because there is dts/upstream/include/dt-bindings/clock/rv1108-cru.h from upstream Linux. Remove the unneeded rv1108-cru.h file. Reported-by: Jonas Karlman Signed-off-by: Fabio Estevam

Re: [PATCH v1] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Anand Moon
Hi Jonas On Thu, 9 May 2024 at 21:38, Jonas Karlman wrote: > > Hi, > > On 2024-05-09 17:26, Anand Moon wrote: > > Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. > > > > Following targets is not migrated to use OF_UPSTREAM: > Ok, will update the commit message in the future.

[PATCH v4 03/19] configs: am64x: Enable EFI capsule update

2024-05-09 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am64x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index e000549d6d0..c9bdd7b54cc 100644 ---

[PATCH v4 02/19] board: am64x: Define capsule update firmware info

2024-05-09 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM64x SK. Signed-off-by: Jonathan Humphreys --- board/ti/am64x/evm.c| 32 include/configs/am64x_evm.h | 24

[PATCH v4 07/19] doc: board: ti: j721e: document OSPI layout

2024-05-09 Thread Jonathan Humphreys
Updated OSPI flash layout diagram. Signed-off-by: Jonathan Humphreys --- doc/board/ti/img/ospi_sysfw.svg | 1464 +-- doc/board/ti/j721e_evm.rst | 58 +- 2 files changed, 847 insertions(+), 675 deletions(-) diff --git a/doc/board/ti/img/ospi_sysfw.svg

[PATCH v4 12/19] board: am62x: Define capsule update firmware info

2024-05-09 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM62x SK. Signed-off-by: Jonathan Humphreys --- board/ti/am62x/evm.c| 32 include/configs/am62x_evm.h | 24

[PATCH v4 04/19] doc: board: ti: am64x: document OSPI layout

2024-05-09 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys --- doc/board/ti/am64x_evm.rst | 24 + doc/board/ti/img/ospi_sysfw-am64.svg | 802 +++ 2 files changed, 826 insertions(+) create mode

[PATCH v4 14/19] doc: board: ti: am62x: document OSPI layout

2024-05-09 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys --- doc/board/ti/am62x_sk.rst| 24 + doc/board/ti/img/ospi_sysfw2.svg | 802 +++ 2 files changed, 826 insertions(+) create mode 100644

[PATCH v4 19/19] configs: beagleboneai64: Enable EFI capsule update

2024-05-09 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j721e_beagleboneai64_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_beagleboneai64_a72_defconfig b/configs/j721e_beagleboneai64_a72_defconfig index a354876f8c2..ead1d8389c6

[PATCH v4 06/19] configs: j721e: Enable EFI capsule update

2024-05-09 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/j721e_evm_a72_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 3d8e9391987..e2c2ad27ef8 100644 ---

[PATCH v4 01/19] doc: uefi: capsules: Add Capsule Update porting section

2024-05-09 Thread Jonathan Humphreys
Created a capsule update porting section in the documentation that outlines the steps a board developer must do when porting from an existing reference board implementation. In particular, added a big warning that new capsule GUID's need to be defined. Signed-off-by: Jonathan Humphreys ---

[PATCH v4 18/19] board: beagleboneai64: Define capsule update firmware info

2024-05-09 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the BeagleBoneAI64. Note this involved creating BeagleBoneAI64's own beagleboneai64.h board header file instead of reusing j721e_evm's. Signed-off-by:

[PATCH v4 08/19] board: beagleplay: Define capsule update firmware info

2024-05-09 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the BeaglePlay. Note this involved creating BeaglePlay's own beagleplay.h board header file instead of reusing am62_evm's. Signed-off-by: Jonathan Humphreys

[PATCH v4 05/19] board: j721e: Define capsule update firmware info

2024-05-09 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the SK-TDA4VM. Signed-off-by: Jonathan Humphreys --- board/ti/j721e/evm.c| 38 + include/configs/j721e_evm.h | 29

[PATCH v4 10/19] configs: beagleplay: Enable EFI capsule update

2024-05-09 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62x_beagleplay_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig index 933baba9211..ef7d81b5379 100644 ---

[PATCH v4 09/19] configs: beagleplay: Enable DFU for MMC

2024-05-09 Thread Jonathan Humphreys
MMC DFU is required for capsule updates. Signed-off-by: Jonathan Humphreys --- configs/am62x_beagleplay_a53_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am62x_beagleplay_a53_defconfig b/configs/am62x_beagleplay_a53_defconfig index 4f1be1df593..933baba9211 100644 ---

[PATCH v4 00/19] EFI: ti: Enable EFI capsule updates

2024-05-09 Thread Jonathan Humphreys
Enable on disk capsule updates, which includes defining the firmware components (tiboot3, spl, u-boot) and enabling processing of raw capsule updates. This is enabled for several TI SoC based platforms: AM64, AM62, AM62p, BeaglePlay, J7, and BeagleboneAI. This series also includes enabling seral

[PATCH v4 15/19] board: am62px: Define capsule update firmware info

2024-05-09 Thread Jonathan Humphreys
Define the firmware components updatable via EFI capsule update, including defining capsule GUIDs for the various firmware components for the AM62px SK. Signed-off-by: Jonathan Humphreys --- board/ti/am62px/evm.c| 32 include/configs/am62px_evm.h | 24

[PATCH v4 17/19] doc: board: ti: am62px: document OSPI layout

2024-05-09 Thread Jonathan Humphreys
Added OSPI flash layout diagram, as well as example commands to flash firmware to it. Signed-off-by: Jonathan Humphreys --- doc/board/ti/am62px_sk.rst | 24 1 file changed, 24 insertions(+) diff --git a/doc/board/ti/am62px_sk.rst b/doc/board/ti/am62px_sk.rst index

[PATCH v4 11/19] configs: am62x: Enable serial flash DFU

2024-05-09 Thread Jonathan Humphreys
Serial flash DFU is required by capsule updates. Signed-off-by: Jonathan Humphreys --- configs/am62x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig index 6c708dcb052..515f23c2bcc 100644 ---

[PATCH v4 13/19] configs: am62x: Enable EFI capsule update

2024-05-09 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig index 515f23c2bcc..1bc219666c1 100644 ---

[PATCH v4 16/19] configs: am62px: Enable EFI capsule update

2024-05-09 Thread Jonathan Humphreys
Enable on disk, raw capsule update. Signed-off-by: Jonathan Humphreys --- configs/am62px_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62px_evm_a53_defconfig b/configs/am62px_evm_a53_defconfig index 9f40c9a0b3c..7494148c88b 100644 ---

Re: [PATCH 3/4] md5: Use typedef for MD5 context

2024-05-09 Thread Ilias Apalodimas
On Thu, 9 May 2024 at 17:38, Raymond Mao wrote: > > Use of typedef is beneficial for porting with other crypto libs > without changing the API callers. > Secondly, it is for the code consistency with other digest libs. > SHA1, SHA256 and SHA512 are all using typedef for their context. > >

Re: [PATCH 1/4] image: remove redundant hash includes

2024-05-09 Thread Ilias Apalodimas
On Thu, 9 May 2024 at 17:53, Tom Rini wrote: > > On Thu, May 09, 2024 at 07:37:38AM -0700, Raymond Mao wrote: > > > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > > u-boot/sha256.h and u-boot/sha512.h > > > > Signed-off-by: Raymond Mao > > Reviewed-by: Tom Rini > > -- > Tom

Re: [PATCH v1] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Jonas Karlman
Hi, On 2024-05-09 17:26, Anand Moon wrote: > Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. > > Following targets is not migrated to use OF_UPSTREAM: At first I got a little bit confused about the "not migrated", but see now that these are the boards that is migrated. > -

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:36:37AM -0400, Raymond Mao wrote: > Hi Tom, > > On Thu, 9 May 2024 at 11:31, Tom Rini wrote: > > > On Thu, May 09, 2024 at 11:23:11AM -0400, Raymond Mao wrote: > > > Hi Tom, > > > > > > On Thu, 9 May 2024 at 11:11, Tom Rini wrote: > > > > > > > On Thu, May 09, 2024

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-09 Thread Raymond Mao
Hi Tom, On Thu, 9 May 2024 at 11:31, Tom Rini wrote: > On Thu, May 09, 2024 at 11:23:11AM -0400, Raymond Mao wrote: > > Hi Tom, > > > > On Thu, 9 May 2024 at 11:11, Tom Rini wrote: > > > > > On Thu, May 09, 2024 at 11:04:07AM -0400, Raymond Mao wrote: > > > > Hi Tom, > > > > > > > > On Tue, 7

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:23:11AM -0400, Raymond Mao wrote: > Hi Tom, > > On Thu, 9 May 2024 at 11:11, Tom Rini wrote: > > > On Thu, May 09, 2024 at 11:04:07AM -0400, Raymond Mao wrote: > > > Hi Tom, > > > > > > On Tue, 7 May 2024 at 17:16, Tom Rini wrote: > > > > > > > On Tue, May 07, 2024

[PATCH v1] rockchip: rv1126: Migrate to OF_UPSTREAM

2024-05-09 Thread Anand Moon
Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM. Following targets is not migrated to use OF_UPSTREAM: - rv1126-edgeble-neu2 : Board is an industrial form factor IO board. - sonoff-ihost-rv1126 : Gateway device designed to provide a

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-09 Thread Raymond Mao
Hi Tom, On Thu, 9 May 2024 at 11:11, Tom Rini wrote: > On Thu, May 09, 2024 at 11:04:07AM -0400, Raymond Mao wrote: > > Hi Tom, > > > > On Tue, 7 May 2024 at 17:16, Tom Rini wrote: > > > > > On Tue, May 07, 2024 at 10:50:45AM -0700, Raymond Mao wrote: > > > > > > > Port mbedtls with dummy libc

Re: [PATCH v2 07/28] lib: Adapt digest header files to MbedTLS

2024-05-09 Thread Raymond Mao
Hi Ilias, On Wed, 8 May 2024 at 06:30, Ilias Apalodimas wrote: > On Tue, 7 May 2024 at 20:54, Raymond Mao wrote: > > > > Adapt digest header files to support both original libs and MbedTLS > > by switching on/off MBEDTLS_LIB_CRYPTO > > > > FIXME: > > `IS_ENABLED` or `CONFIG_IS_ENABLED` is not

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 11:04:07AM -0400, Raymond Mao wrote: > Hi Tom, > > On Tue, 7 May 2024 at 17:16, Tom Rini wrote: > > > On Tue, May 07, 2024 at 10:50:45AM -0700, Raymond Mao wrote: > > > > > Port mbedtls with dummy libc header files. > > > Add mbedtls default config header file. > > >

Re: [PATCH v2 2/2] arm: dts: k3-j7200-binman: Add support for HSSE1.0 and HSFS1.0

2024-05-09 Thread Andrew Davis
On 4/25/24 5:06 PM, Neha Malcom Francis wrote: J7200 has SR1.0 and SR2.0 having three variants of each GP, HS-FS and HS-SE. Current build does not generate HS-SE SR1.0 and HS-FS SR1.0 so add support for them. SR1.0 silicon for J7200 is rare as it was replaced by SR2.0 before broad-market

Re: [PATCH v2 1/2] arm: dts: k3-j721e-binman: Add support for HSFS1.1

2024-05-09 Thread Andrew Davis
On 4/25/24 5:06 PM, Neha Malcom Francis wrote: J721E has SR1.1 and SR2.0 having three variants of each GP, HS-FS and HS-SE. Current build does not generate HS-FS SR1.1 so add support for them. Reported-by: Suman Anna Signed-off-by: Neha Malcom Francis --- Changes since v1: - removed redundant

Re: [PATCH v2 03/28] mbedtls: add mbedtls into the build system

2024-05-09 Thread Raymond Mao
Hi Tom, On Tue, 7 May 2024 at 17:16, Tom Rini wrote: > On Tue, May 07, 2024 at 10:50:45AM -0700, Raymond Mao wrote: > > > Port mbedtls with dummy libc header files. > > Add mbedtls default config header file. > > Optimize mbedtls default config by disabling unused features to > > reduce the

Re: [PATCH 3/4] md5: Use typedef for MD5 context

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 07:37:40AM -0700, Raymond Mao wrote: > Use of typedef is beneficial for porting with other crypto libs > without changing the API callers. > Secondly, it is for the code consistency with other digest libs. > SHA1, SHA256 and SHA512 are all using typedef for their context.

Re: [PATCH 2/4] efi_loader: remove redundant hash includes

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 07:37:39AM -0700, Raymond Mao wrote: > Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h > and u-boot/sha512.h > > Signed-off-by: Raymond Mao Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] image: remove redundant hash includes

2024-05-09 Thread Tom Rini
On Thu, May 09, 2024 at 07:37:38AM -0700, Raymond Mao wrote: > Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, > u-boot/sha256.h and u-boot/sha512.h > > Signed-off-by: Raymond Mao Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

[PATCH 4/4] arm: EFI linker script text section alignment

2024-05-09 Thread Raymond Mao
Add text section alignment to fix sbsign signing warning 'gaps in the section table may result in different checksums' which causes a failure of efi_image_verify_diges() Signed-off-by: Raymond Mao --- arch/arm/lib/elf_aarch64_efi.lds | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 3/4] md5: Use typedef for MD5 context

2024-05-09 Thread Raymond Mao
Use of typedef is beneficial for porting with other crypto libs without changing the API callers. Secondly, it is for the code consistency with other digest libs. SHA1, SHA256 and SHA512 are all using typedef for their context. Signed-off-by: Raymond Mao --- drivers/crypto/hash/hash_sw.c | 8

[PATCH 2/4] efi_loader: remove redundant hash includes

2024-05-09 Thread Raymond Mao
Remove the redundant includes of u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao --- lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_tcg2.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/lib/efi_loader/efi_signature.c

[PATCH 1/4] image: remove redundant hash includes

2024-05-09 Thread Raymond Mao
Remove the redundant includes of u-boot/md5.h, u-boot/sha1.h, u-boot/sha256.h and u-boot/sha512.h Signed-off-by: Raymond Mao --- boot/image-fit.c | 4 boot/image.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/boot/image-fit.c b/boot/image-fit.c index 89e377563ce..1efc39f4408

[PATCH 0/4] Clean-up patch set for MbedTLS integration

2024-05-09 Thread Raymond Mao
This patch set is picked from the previously posted serie: "[RFC] Integrate MbedTLS v3.6 LTS with U-Boot" They are not directly related to MbedTLS integration, but the prerequisite for a few clean-up, refactoring and minor fixes. Raymond Mao (4): image: remove redundant hash includes

[PATCH 2/4] remoteproc: k3-r5: Add support for R5F core on AM62A SoCs

2024-05-09 Thread Hari Nagalla
AM62A has a R5F core in MCU voltage domain. Extend support for R5F remote proc driver on AM62A with compatible strings. Signed-off-by: Hari Nagalla --- drivers/remoteproc/ti_k3_r5f_rproc.c | 29 ++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git

[PATCH 4/4] board: ti: am62ax: Add support for remote proc load

2024-05-09 Thread Hari Nagalla
Add AM62a remote proc firmware names to environment variables for loading of C7x DSP and R5F processors. Signed-off-by: Hari Nagalla --- board/ti/am62ax/am62ax.env | 4 1 file changed, 4 insertions(+) diff --git a/board/ti/am62ax/am62ax.env b/board/ti/am62ax/am62ax.env index

[PATCH 3/4] configs: am62ax: enable remote proc drivers

2024-05-09 Thread Hari Nagalla
Enable K3-DSP and K3-R5FSS remote proc drivers for am62ax. Signed-off-by: Hari Nagalla --- configs/am62ax_evm_a53_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am62ax_evm_a53_defconfig b/configs/am62ax_evm_a53_defconfig index c4556f5dd2..6b29a4b9cf 100644 ---

[PATCH 1/4] remoteproc: k3-dsp: Enable C71x support for AM62A

2024-05-09 Thread Hari Nagalla
AM62A SoC has a single C71x DSP subsystem with analytics engine in main voltage domain. Extend support to AM62A with compatible strings. Signed-off-by: Hari Nagalla --- drivers/remoteproc/ti_k3_dsp_rproc.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

[PATCH 0/4] Add remoteproc driver for AM62a SoC

2024-05-09 Thread Hari Nagalla
This series adds relevant ip data in remoteproc driver for AM62a devices. Logs: https://paste.sr.ht/~hnagalla/5e20838705c1d688bca81886dad56451b56d3913 Hari Nagalla (4): remoteproc: k3-dsp: Enable C71x support for AM62A remoteproc: k3-r5: Add support for R5F core on AM62A SoCs configs:

Re: U-boot script for RPI with boot partition of ext4 type

2024-05-09 Thread Antoni Jankowski
I realised that it's not a good idea to go with an ext4 boot partition with a RPI, apparently it requires the boot partition to be fat. Following that I managed to prepare an update and flash it onto the mmc, however the struggle at the moment is instructing u-boot to use the updated boot

Re: [PATCH] mach-snapdragon: do carveouts for qcs404 only

2024-05-09 Thread Sam Day
'Ello Sumit, On Wednesday, 8 May 2024 at 4:48 PM, Sumit Garg wrote: > > > On Wed, 8 May 2024 at 18:09, Caleb Connolly caleb.conno...@linaro.org wrote: > > > Hi Sam, > > > > On 08/05/2024 13:40, Sam Day wrote: > > > > > Salutations Sumit, > > > > > > On Wednesday, 8 May 2024 at 11:14 AM,

[PATCH v2 6/6] arm: dts: k3-j721s2|am68: Migrate to OF_UPSTREAM

2024-05-09 Thread Manorit Chawdhry
Use OF_UPSTREAM to pull Linux DT from dts/ tree Signed-off-by: Manorit Chawdhry --- arch/arm/dts/Makefile |4 +- arch/arm/dts/k3-am68-sk-base-board-u-boot.dtsi | 20 +- arch/arm/dts/k3-am68-sk-base-board.dts | 611 ---

  1   2   >