Re: [PATCH v2 12/32] board: dragonboard410c: upstream DT compat

2023-12-21 Thread Sumit Garg
On Tue, 19 Dec 2023 at 21:34, Caleb Connolly wrote: > > Use the root compatible strings from upstream Linux, add missing > '#clock-cells' property to the gcc node. > > Adjust some of the msm8916/apq8016 drivers to use the correct upstream > compatible properties and DT bindings. > > This prepares

Re: [PATCH v2 31/32] board: qcs404-evb: drop board code

2023-12-21 Thread Sumit Garg
Hi Caleb, On Tue, 19 Dec 2023 at 21:34, Caleb Connolly wrote: > > This board is entirely supported by the generic arch code and DTS. The > board code used to handle turning on the vbus regulator, however this is > now handled via DT. > > With this, the board specific defconfig is also no longer

Re: [PATCH 00/13] arm: exynos: Add E850-96 board

2023-12-21 Thread Minkyu Kang
Hi, 2023년 12월 19일 (화) 07:07, Sam Protsenko 님이 작성: > On Tue, Dec 12, 2023 at 9:16 PM Sam Protsenko > wrote: > > > > NOTE: This patch series depends on "pinctrl: exynos: Prepare for other > > SoCs support" series [1]. It should be applied first. > > > > Add Exynos850 SoC and WinLink's E850-96

Re: [PATCH v2 00/32] Qualcomm generic board support

2023-12-21 Thread Sumit Garg
On Thu, 21 Dec 2023 at 21:08, Caleb Connolly wrote: > > > > On 20/12/2023 13:07, Sumit Garg wrote: > > Hi Caleb, > > Hi Sumit, > > [...] > > >> > >> == Upstream DT == > >> > >> All Qualcomm boards have had their devicetree files replaced with the > >> upstream versions. Previous patch series made

[PATCH v2 7/8] dts: meson-gxbb: Switch to using upstream DT

2023-12-21 Thread Sumit Garg
Although there were still some variations in board DTS files based on meson-gxbb SoC but I think those were minor differences from upstream and shouldn't impact boot on these devices. So switch to upstream DT via mirroring amlogic/ directory from devicetree-rebasing/src/arm64/amlogic/ directory.

[PATCH v2 8/8] dts: meson-gxbb: Drop redundant devicetree files

2023-12-21 Thread Sumit Garg
Since meson-gxbb based boards switched to using upstream DT, so drop redundant files from arch/arm/dts directory. Only *-u-boot.dtsi files kept in arch/arm/dts directory for these boards. Signed-off-by: Sumit Garg --- arch/arm/dts/Makefile | 8 -

[PATCH v2 6/8] MAINTAINERS: Add myself as devicetree-rebasing maintainer

2023-12-21 Thread Sumit Garg
Reviewed-by: Simon Glass Signed-off-by: Sumit Garg --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 969514468cb..253092c345c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -951,6 +951,12 @@ F: cmd/cyclic.c F: common/cyclic.c F:

[PATCH v2 5/8] doc: devicetree: Updates for devicetree-rebasing subtree

2023-12-21 Thread Sumit Garg
Encourage SoC/board maintainers to migrate to using devicetree-rebasing subtree and maintain a regular sync with Linux kernel devicetree files and bindings. Along with that add documentation regarding how to run DT bindings schema checks. Signed-off-by: Sumit Garg ---

[PATCH v2 4/8] dts: Add alternative location for upstream DTB builds

2023-12-21 Thread Sumit Garg
Allow platform owners to mirror devicetree files from devitree-rebasing directory into dts/arch/$(ARCH) (special case for dts/arch/arm64). Then build then along with any *-u-boot.dtsi file present in arch/$(ARCH)/dts directory. This will help easy migration for platforms which currently are

[PATCH v2 3/8] scripts/Makefile.lib: Statically define *-u-boot.dtsi files location

2023-12-21 Thread Sumit Garg
Allow u-boot to build DTB from a different directory tree such that *-u-boot.dtsi files can be included from a common location. Currently that location is arch/$(ARCH)/dts/, so statically define that common location. This is needed for platform owners to start building DTB files from

[PATCH v2 2/8] Makefile: Add support for DT bindings schema checks

2023-12-21 Thread Sumit Garg
This adds the build infrastructure for checking DT binding schema documents and validating dtb files using the binding schema. Here we use devicetree-rebasing directory to provide the DT bindings. Dependency: --- The DT schema project must be installed in order to validate the DT schema

[PATCH v2 1/8] CI: Exclude devicetree-rebasing subtree for CONFIG checks

2023-12-21 Thread Sumit Garg
Since devicetree-rebasing is an external repo with its own coding style, exclude it from Azure and gitlab CI CONFIG checks. Signed-off-by: Sumit Garg --- .azure-pipelines.yml | 3 ++- .gitlab-ci.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2 0/8] An effort to bring DT bindings compliance within U-Boot

2023-12-21 Thread Sumit Garg
Changes in v2: -- - Patch #1: excluded gitab CI config check and added commit description. - Patch #3: s/UBOOT_DTSI_LOC/u_boot_dtsi_loc/ - Patch #4: s/DEVICE_TREE_LOC/dt_dir/ and s/U-boot/U-Boot/ - Patch #5: s/U-boot/U-Boot/ - Patch #6 and #7: Picked up review tags Prerequisite

[PATCH v2 9/9] mtd: spi-nor-ids: Add Infineon(Cypress) s28hs02gt ID

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano Infineon(Cypress) S28HS02GT is 1.8V, 2Gb (256MB) NOR Flash memory with Octal interface. It is a dual-die package parts and has same features with existing S28 series. Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v2 8/9] mtd: spi-nor-core: Rework spi_nor_cypress_octal_dtr_enable()

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano Enabling Octal DTR mode in multi-die package parts requires reister setup for each die. That can be done by simple for-loop. write_enable() takes effect to all die at once so we can call it before the loop. Besides we can replace spi_mem_exec_op() calls with

[PATCH v2 7/9] mtd: spi-nor-core: Consolidate post_bfpt_fixup() for Infineon(Cypress) S25 and S28

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano s28hx_t_post_bfpt_fixup() fixes erase opcode, erase size, and page size. s25_post_bfpt_fixup() is doing same thing including multi-die support. We can consolidate s28hx_t_post_bfpt_fixup() and s25_post_bfpt_fixup() into one named s25_s28_post_bfpt_fixup(). In

[PATCH v2 6/9] mtd: spi-nor-core: Consolidate setup() hook for Infineon(Cypress) S25 and S28

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano s28hx_t_setup() only checks sector layout setting. To support multi-die package parts like S28HS02GT, it needs to check device size and assign ready() hook for multi-die package parts. These are covered in s25_setup() so we can consolidate s28hx_t_setup() and s25_setup()

[PATCH v2 5/9] mtd: spi-nor-core: Rework s25_mdp_ready() to support Octal DTR mode

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano s25_mdp_ready() handles status polling for multi-die package parts that requires to read and check status register for each die. To support S28HS02GT(dual-die package with Octal DTR support), rename function and use nor->rdsr_dummy in octal DTR mode. Signed-off-by:

[PATCH v2 4/9] mtd: spi-nor-core: Use CLPEF(0x82) as alternative to CLSR(0x30) for S25 and S28

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano Infineon(Cypress) S28Hx-T family does not support legacy CLSR(0x30) opcode. Instead, it supports CLPEF(0x82) which has the same functionality as CLSR. spansion_sr_ready() is for multi-die package parts including S28HS02GT, so we need to use CLPEF instead of CLSR. This

[PATCH v2 3/9] mtd: spi-nor-core: Rework spansion_read_any_reg() to support Octal DTR mode

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano In Infineon multi-die package parts, we need to use Read Any Register op to read status register in 2nd or further die. Infineon S28HS02GT is dual-die package and supports Octal DTR interface. To support this, spansion_read_any_reg() needs to be reworked. Implementation is

[PATCH v2 2/9] mtd: spi-nor-core: Consolidate non-uniform erase helpers for S25 and S28

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano s25_erase_non_uniform() and s28hx_t_erase_uniform() support hybrid sector layout (32 x 4KB sectors overlaid at bottom address) and doing same thing. Consolidate them into single helper named s25_s28_erase_non_uniform(). Signed-off-by: Takahiro Kuwano ---

[PATCH v2 1/9] mtd: spi-nor-core: Clean up macros for Infineon(Cypress) S25 and S28

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano Some macro definitions used in Infineon(Cypress) S25 and S28 series are redundant and some have inconsistent prefix. This patch removes redundant ones and renames some to have same prefix as others. Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi/spi-nor-core.c | 26

[PATCH v2 0/9] mtd: spi-nor: Add support for Infineon S28HS02GT

2023-12-21 Thread tkuw584924
From: Takahiro Kuwano Infineon S28HS02GT is 1.8V, 2Gb (256MB) NOR Flash memory with Octal interface. It is a dual-die package parts and has same features with existing S28 series. The goal of this series of patches is to add S28HS02GT support. Before adding device ID to the table, some reworks

Re: [PATCH 0/8] An effort to bring DT bindings compliance within U-boot

2023-12-21 Thread Sumit Garg
On Thu, 21 Dec 2023 at 20:48, Simon Glass wrote: > > Hi, > > On Thu, Dec 21, 2023 at 3:03 PM Tom Rini wrote: > > > > On Thu, Dec 14, 2023 at 07:20:55PM +0530, Sumit Garg wrote: > > > > > Prerquisite > > > --- > > > > > > This patch series requires devicetree-rebasing git repo to be added

Re: [PATCH v3 00/22] Complete decoupling of bootm logic from commands

2023-12-21 Thread Tom Rini
On Fri, 15 Dec 2023 20:14:04 -0700, Simon Glass wrote: > This series continues refactoring the bootm code to allow it to be used > with CONFIG_COMMAND disabled. The OS-handling code is refactored and > a new bootm_run() function is created to run through the bootm stages. > This completes the

[PATCH v2 1/1] fw_env: autodetect NAND erase size and env sectors

2023-12-21 Thread Anthony Loiseau
From: Anthony Loiseau As already done for NOR chips, if device ESIZE and ENVSECTORS static configurations are both zero, then autodetect them at runtime. Cc: Joe Hershberger cc: Stefan Agner cc: Rasmus Villemoes Signed-off-by: Anthony Loiseau --- tools/env/README | 3 +++

[PATCH v2 0/1] fw_env: auto-detect NAND characteristics

2023-12-21 Thread Anthony Loiseau
From: Anthony Loiseau Hello, Here is a patch proposal which modifies fw_env so NAND chip erase size as well as environment sector counts are guessed at runtime if they are both statically configured as zero. This actually extends a previous similar behavior which was NOR-specific, useful when a

[PATCH v3] pci: Enable dm_pci_map_bar() for 64-bit BARs

2023-12-21 Thread Moritz Fischer
Allow dm_pci_map_bar() usage on systems with CONFIG_SYS_PCI_64BIT. Reviewed-by: Philip Oberfichtner Reviewed-by: Simon Glass Signed-off-by: Moritz Fischer --- Changes from V2: - Turned IS_ENABLED() into #if defined to allow building on platforms that don't define CONFIG_SYS_PCI_64BIT

Re: [PATCH v2 RESEND] pci: Enable dm_pci_map_bar() for 64-bit BARs

2023-12-21 Thread Moritz Fischer
Tom, On Thu, Dec 21, 2023 at 9:53 AM Tom Rini wrote: > > On Sun, Dec 17, 2023 at 12:52:09AM +, Moritz Fischer wrote: > > > Allow dm_pci_map_bar() usage on systems with CONFIG_SYS_PCI_64BIT. > > > > Reviewed-by: Philip Oberfichtner > > Reviewed-by: Simon Glass > > Signed-off-by: Moritz

Re: [PATCH] lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure

2023-12-21 Thread Tom Rini
On Thu, Dec 14, 2023 at 05:54:17PM +0100, Csókás Bence wrote: > Signed-off-by: Csókás Bence > Reviewed-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] board/keymile/kmcent2: fix update-nor indentation

2023-12-21 Thread Tom Rini
On Tue, Dec 12, 2023 at 03:39:27PM +0100, Tomas Alvarez Vanoli wrote: > variable was indented as part of the value of the previous variable. > > Signed-off-by: Tomas Alvarez Vanoli > Signed-off-by: Holger Brunck Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 3/3] iommu: add qcom-hyp-smmu

2023-12-21 Thread Tom Rini
On Mon, Dec 11, 2023 at 06:41:42PM +, Caleb Connolly wrote: > Add a basic implementation of the ARM SMMU. This driver is intended for > use on Qualcomm platforms where the SMMU has been configured by a previous > bootloader, cannot be turned off, and doesn't support BYPASS streams. > It keeps

Re: [PATCH 2/3] iommu: add a connect op

2023-12-21 Thread Tom Rini
On Mon, Dec 11, 2023 at 06:41:41PM +, Caleb Connolly wrote: > Add an optional iommu callback to be invoked before a device probes. > This can be used to configure the IOMMU in preparation for the device > (e.g. by allocating a context bank) > > Signed-off-by: Caleb Connolly Applied to

Re: [PATCH 1/3] iommu: fix compilation when CONFIG_PCI disabled

2023-12-21 Thread Tom Rini
On Mon, Dec 11, 2023 at 06:41:40PM +, Caleb Connolly wrote: > The dev_pci_iommu_enable() function is only available when CONFIG_PCI is > enabled, replace the runtime check with a preprocessor one to fix > compilation with pci disabled. > > Signed-off-by: Caleb Connolly Applied to

Re: [PATCH v1] configs: verdin-am62: Disable SPL FIT Overlay

2023-12-21 Thread Tom Rini
On Mon, Dec 11, 2023 at 02:45:20PM +0100, Francesco Dolcini wrote: > From: Francesco Dolcini > > Disable CONFIG_SPL_LOAD_FIT_APPLY_OVERLAY, this is not required nor used > on verdin am62, disable it to save precious binary size. > > Update defconfig using savedefconfig, this adds

Re: [PATCH] boot: add support for fdt_fixup command in environment

2023-12-21 Thread Tom Rini
On Mon, Dec 11, 2023 at 12:03:17PM +0100, Matthias Schiffer wrote: > The "fdt" command is convenient for making small changes to the OS FDT, > especially during development. This is easy when the kernel and FDT are > loaded separately, but can be cumbersome for FIT images, requiring to > unpack

Re: [PATCH] include: env: ti: ti_common: Run main_cpsw0_qsgmii_phyinit conditionally

2023-12-21 Thread Tom Rini
On Mon, Dec 11, 2023 at 04:12:09PM +0530, Siddharth Vadapalli wrote: > From: Manorit Chawdhry > > The main_cpsw0_qsgmii_phyinit command is defined only for certain TI > SoCs which have the do_main_cpsw0_qsgmii_phyinit variable set. > > Add a check to ensure that the main_cpsw0_qsgmii_phyinit

Re: [PATCH v2] fs: Fix SPL build if FS_LOADER is enabled

2023-12-21 Thread Tom Rini
On Thu, Nov 16, 2023 at 10:46:12PM +0530, Mayuresh Chitale wrote: > If FS_LOADER is enabled for the SPL then the build fails with the error: > > fs/fs.o:(.data.rel.fstypes+0x128): > undefined reference to `smh_fs_set_blk_dev' > fs/fs.o:(.data.rel.fstypes+0x140): > undefined reference to

Re: [PATCH 00/26] sync am65x device tree with Linux v6.7-rc1

2023-12-21 Thread Tom Rini
On Thu, Dec 21, 2023 at 11:43:46AM -0600, Bryan Brattlof wrote: > Hello Everyone! > > This series gets the am65x booting again along with syncing the device > tree files with v6.7-rc1 Linux. > > The bulk of these patches unify the WKUP SPL board file with the arm64 > files to make future syncs

Re: [PATCH v3 4/6] siemens: board: clean up draco products vs common

2023-12-21 Thread Tom Rini
On Mon, Dec 18, 2023 at 09:59:13AM +0100, Enrico Leto wrote: > The common folder was initialially created for the common parts of the > products based on draco-am355x board family. These are the product > lines 'pxm2', 'rut' and the base line named 'draco'! > > Adding the new capricorn-imx8

Re: [PATCH v2 RESEND] pci: Enable dm_pci_map_bar() for 64-bit BARs

2023-12-21 Thread Tom Rini
On Sun, Dec 17, 2023 at 12:52:09AM +, Moritz Fischer wrote: > Allow dm_pci_map_bar() usage on systems with CONFIG_SYS_PCI_64BIT. > > Reviewed-by: Philip Oberfichtner > Reviewed-by: Simon Glass > Signed-off-by: Moritz Fischer This causes a failure to build on qemu_arm and a number of

[PATCH 20/26] arm: dts: k3-am654: remove duplicate mdio

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mdio node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 17/26] arm: dts: k3-am654: remove duplicate wkup_i2c0

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate wkup_i2c0 node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 25 - 1 file changed, 25 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 01/26] configs: am65x_evm_r5: enable driver for fixed regulators

2023-12-21 Thread Bryan Brattlof
Some of the regulators we need to successfully boot are fixed regulators. Enable the driver to properly probe them. Signed-off-by: Bryan Brattlof --- configs/am65x_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am65x_evm_r5_defconfig

[PATCH 26/26] arm: dts: k3-am654: convert bootph-pre-ram to bootph-all

2023-12-21 Thread Bryan Brattlof
Many nodes are reused between WKUP SPL, MAIN SPL, and U-Boot. Using bootph-pre-ram is causing these nodes to be present in SPL builds but pruned away during the U-Boot build. Convert these nodes to bootph-all so they will remain no matter which dtb build is happening. Signed-off-by: Bryan

[PATCH 09/26] arm: dts: k3-am654: remove duplicate timer

2023-12-21 Thread Bryan Brattlof
timer1 is really just the mcu_timer0 node redefined for the WKUP SPL. Remove the timer1 and replace it with the mcu_timer0 from the Linux device tree we imported into U-Boot. Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 12

[PATCH 02/26] configs: am65x_evm_a53: disable CONSOLE_MUX

2023-12-21 Thread Bryan Brattlof
We do not have a need to share a single console with the evaluation board and disabling this option reduces the complexity of configuring the consoles. Disable CONSOLE_MUX Signed-off-by: Bryan Brattlof --- configs/am65x_evm_a53_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 13/26] arm: dts: k3-am654: remove duplicate mcu_uart0 node

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified we now have a duplicate mcu_uart0 node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 16/26] arm: dts: k3-am654: remove duplicate sdhci1 pinmux node

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate sdhci1 pinmux node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git

[PATCH 15/26] arm: dts: k3-am654: remove duplicate sdhci0 pinmux node

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate sdhci0 pinmux node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git

[PATCH 21/26] arm: dts: k3-am654: remove duplicate vtt pinmux

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate vtt_pinmux node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 2 +- arch/arm/dts/k3-am654-r5-base-board.dts | 10 -- 2 files changed, 1 insertion(+), 11

[PATCH 03/26] arm: dts: k3-am654-r5: Merge board file and U-Boot overlay

2023-12-21 Thread Bryan Brattlof
The R5 board file for U-Boot should be the same as the board file copied from Linux with a few alterations to work with the R5's view of the SoC. First we need to unify the R5 board file and it's U-Boot overlay before we can unify the Linux board file with this one. Signed-off-by: Bryan Brattlof

[PATCH 25/26] arm: dts: k3-am65: remove duplicate mcu secure proxy node

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu secure proxy node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git

[PATCH 14/26] arm: dts: k3-am654: remove duplicate main_uart0

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate main_uart0 node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 17 - 1 file changed, 17 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 07/26] arm: dts: k3-am654: remove duplicate vtt_supply

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified we now have a duplicate vtt_supply node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 06/26] arm: dts: k3-am654: include a53 board dtb for r5 build

2023-12-21 Thread Bryan Brattlof
To make things as organized as possible, start from the Libux board dtbs and apply all properties needed for U-Boot in our *-u-boot.dtsi file for the MAIN SPL and U-Boot builds. We can then include these files for the WKUP SPL build making further edits to the needed properties and nodes for the

[PATCH 24/26] arm: dts: k3-am654: move dummy_clock to root node

2023-12-21 Thread Bryan Brattlof
The dummy_clock node is used to help the drivers probe the IO needed to setup consoles and boot media to load firmware into the SoC. This dummy_clock isn't a device that exists nor does it exist in the mcu domain. So move it from cbass_mcu to the root node to avoid any confusion. Signed-off-by:

[PATCH 10/26] arm: dts: k3-am654: remove duplicate mcu_ringacc

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu_ringacc node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 22/26] arm: dts: k3-am654: remove duplicate root properties

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we have duplicate properties in the root node. Remove them Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 19/26] arm: dts: k3-am654: remove usb0

2023-12-21 Thread Bryan Brattlof
The pinmux for usb0 is missing from the Linux board dtb file. Remove it until we can introduce it in Linux Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 12 arch/arm/dts/k3-am654-r5-base-board.dts | 29 2 files changed, 41

[PATCH 23/26] arm: dts: k3-am654: remove un-needed aliases

2023-12-21 Thread Bryan Brattlof
These aliases are not needed in U-Boot. Remove them Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts b/arch/arm/dts/k3-am654-r5-base-board.dts index 4d543d430a4b0..b84fdb5d86482

[PATCH 04/26] arm: dts: k3-am654: pull in dtb update from Linux

2023-12-21 Thread Bryan Brattlof
Pull in dtb updates for the am654 base board from v6.7-rc1 of Linux Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am65-main.dtsi | 342 ++- arch/arm/dts/k3-am65-mcu.dtsi| 156 ++-- arch/arm/dts/k3-am65-wakeup.dtsi | 10 +-

[PATCH 12/26] arm: dts: k3-am654: add needed regs to udmap nodes

2023-12-21 Thread Bryan Brattlof
Ethernet is one of a few IPs in U-Boot that depend on DMA to operate. However there are a few missing registers ranges in the udmap nodes need to properly setup DMA for the am65x. A fix has been added to the Linux kernel[0] to add these ranges however they have not made it to a Linux tag. To keep

[PATCH 00/26] sync am65x device tree with Linux v6.7-rc1

2023-12-21 Thread Bryan Brattlof
Hello Everyone! This series gets the am65x booting again along with syncing the device tree files with v6.7-rc1 Linux. The bulk of these patches unify the WKUP SPL board file with the arm64 files to make future syncs from Linux much easier. In the end the DTBs should look a lot like what the

[PATCH 18/26] arm: dts: k3-am654: remove duplicate ospi0 node

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate ospi0 node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 37 - 1 file changed, 37 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 11/26] arm: dts: k3-am654: remove duplicate mcu_udmap

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu_udmap node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 05/26] arm: dts: k3-am654: copy bootph properties to a53 dts

2023-12-21 Thread Bryan Brattlof
In order to unify the R5 board dtb file with the Linux board dtb file, we will need to copy all bootph-pre-ram properties to the *-u-boot.dtsi overlay. Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 168 +++

[PATCH 08/26] arm: dts: k3-am654: remove duplicate wkup_uart0

2023-12-21 Thread Bryan Brattlof
With the Linux and U-Boot board files unified, we now have a duplicate wkup_uart0 node. Remove it Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 12 1 file changed, 12 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH V3 6/6] nvmem: layouts: add U-Boot env layout

2023-12-21 Thread Rafał Miłecki
From: Rafał Miłecki Move all generic (NVMEM devices independent) code from NVMEM device driver to NVMEM layout driver. Then add a simple NVMEM layout code on top of it. Thanks to proper layout it's possible to support U-Boot env data stored on any kind of NVMEM device. For backward

[PATCH V3 5/6] nvmem: u-boot-env: improve coding style

2023-12-21 Thread Rafał Miłecki
From: Rafał Miłecki 1. Prefer kzalloc() over kcalloc() See memory-allocation.rst which says: "to be on the safe side it's best to use routines that set memory to zero, like kzalloc()" 2. Drop dev_err() for u_boot_env_add_cells() fail It can fail only on -ENOMEM. We don't want to print

[PATCH V3 4/6] nvmem: u-boot-env: use nvmem device helpers

2023-12-21 Thread Rafał Miłecki
From: Rafał Miłecki Use nvmem_dev_size() and nvmem_device_read() to make this driver less mtd dependent. Signed-off-by: Rafał Miłecki Reviewed-by: Miquel Raynal --- V2: Don't introduce memleak when handling nvmem_device_read() failures V3: Split PATCH 3/3 into two drivers/nvmem/u-boot-env.c

[PATCH V3 3/6] nvmem: u-boot-env: use nvmem_add_one_cell() nvmem subsystem helper

2023-12-21 Thread Rafał Miłecki
From: Rafał Miłecki Simplify adding NVMEM cells. Signed-off-by: Rafał Miłecki Reviewed-by: Miquel Raynal --- V3: Split PATCH 3/3 into two drivers/nvmem/u-boot-env.c | 55 +++--- 1 file changed, 21 insertions(+), 34 deletions(-) diff --git

[PATCH V3 2/6] nvmem: core: add nvmem_dev_size() helper

2023-12-21 Thread Rafał Miłecki
From: Rafał Miłecki This is required by layouts that need to read whole NVMEM content. It's especially useful for NVMEM devices without hardcoded layout (like U-Boot environment data block). Signed-off-by: Rafał Miłecki Reviewed-by: Miquel Raynal --- drivers/nvmem/core.c | 13

[PATCH V3 1/6] dt-bindings: nvmem: layouts: add U-Boot environment variables layout

2023-12-21 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot env data is a way of storing firmware variables. It's a format that can be used of top of various storage devices. Its binding should be an NVMEM layout instead of a standalone device. This patch adds layout binding which allows using it on top of MTD NVMEM device as

Re: [v2 01/16] qe: Add to linux/immap_qe.h

2023-12-21 Thread Tom Rini
On Thu, 14 Dec 2023 13:16:43 -0500, Tom Rini wrote: > Given how we define QE_MURAM_SIZE today, this header needs to have > added to it. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] global: Restrict use of '#include '

2023-12-21 Thread Tom Rini
On Thu, 14 Dec 2023 07:16:54 -0500, Tom Rini wrote: > In general terms, we -include include/linux/kconfig.h and so normal > U-Boot code does not need to also #include it. However, for code which > is shared with userspace we may need to add it so that either our full > config is available or so

RE: [PATCH v7 2/2] schemas: Add some common reserved-memory usages

2023-12-21 Thread Chiu, Chasel
Hi Ard, Please see my reply below inline and let me know your thoughts. Thanks, Chasel > -Original Message- > From: Ard Biesheuvel > Sent: Thursday, December 21, 2023 6:31 AM > To: Chiu, Chasel > Cc: Simon Glass ; devicet...@vger.kernel.org; Mark Rutland > ; Rob Herring ; Tan, Lean

Re: [PATCH v2 03/32] mmc: msm_sdhci: use modern clock handling

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Use the clk_* helper functions and the correct property name for clocks. Signed-off-by: Caleb Connolly --- drivers/mmc/msm_sdhci.c | 69 - 1 file changed, 46 insertions(+), 23 deletions(-) diff --git

Re: [PATCH v2 06/32] serial: msm: add debug UART

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Introduce support for early debugging. Signed-off-by: Caleb Connolly --- drivers/serial/Kconfig | 8 drivers/serial/serial_msm.c | 32 2 files changed, 40 insertions(+) diff --git

Re: [PATCH v2 32/32] MAINTAINERS: Qualcomm: add some missing paths

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Add drivers and DTS files, as well as regex matches for qcom/qualcomm/snapdragon. Signed-off-by: Caleb Connolly --- MAINTAINERS | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH v2 31/32] board: qcs404-evb: drop board code

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: This board is entirely supported by the generic arch code and DTS. The board code used to handle turning on the vbus regulator, however this is now handled via DT. With this, the board specific defconfig is also no longer needed, so drop it as well.

Re: [PATCH v2 30/32] dts: qcs404-evb: replace with upstream DT

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Drop the U-Boot specific DTS in favour of upstream. We'll only include the -4000 variant as that is what U-Boot already supported. Signed-off-by: Caleb Connolly --- arch/arm/dts/Makefile|2 +- arch/arm/dts/pms405.dtsi

Re: [PATCH v2 29/32] dt-bindings: import headers for qcs404

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import the headers needed for QCS404-evb. Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/qcom,turingcc-qcs404.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/dt-bindings/clock/qcom,turingcc-qcs404.h

Re: [PATCH v2 28/32] dts: msm8996: replace with upstream DTS

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Drop the U-Boot specific dragonboard820c.dts file in favour of the upstream apq8096-db820c.dts and an additional -u-boot.dtsi with the U-Boot specific additions. Signed-off-by: Caleb Connolly --- arch/arm/dts/Makefile |2 +-

Re: fw_env: auto-detect NAND characteristics

2023-12-21 Thread Fabio Estevam
Hi Anthony, On Thu, Dec 21, 2023 at 1:18 PM Anthony Loiseau wrote: > > Hello, > > Please find attached a patch proposal which modifies fw_env so NAND chip Your patch did not come. Could you please send it via git send-email? Also, run ./scripts/get_maintainer.pl 0001-your.patch and Cc the

Re: [PATCH v2 27/32] dts: dragonboard820c: use correct bindings for clocks

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Don't use hardcoded clock IDs, use the IDs from the dt-bindings to be compatible with upstream. Signed-off-by: Caleb Connolly --- arch/arm/dts/dragonboard820c.dts | 5 +++-- drivers/clk/qcom/clock-apq8096.c | 5 +++-- 2 files changed, 6

Re: [PATCH v2 26/32] dts: msm8996: import PMIC dtsi files

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import PM8994 and PMI8994 DTSI files in preparation for switching MSM8996 boards to upstream DTS. Signed-off-by: Caleb Connolly --- arch/arm/dts/pm8994.dtsi | 152 ++ arch/arm/dts/pmi8994.dtsi | 65

Re: [PATCH v2 25/32] dt-bindings: import headers for MSM8996

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import dt-binding headers for MSM8996/APQ8096 from Linux. Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/qcom,gcc-msm8996.h | 360 + include/dt-bindings/clock/qcom,mmcc-msm8996.h | 295 +

Re: [PATCH v2 24/32] dts: msm8916: replace with upstream DTS

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Drop the U-Boot specific dragonboard410c.dts in favour of the upstream msm8916-sbc.dts. No additional changes are needed to this DTS for U-Boot support. Signed-off-by: Caleb Connolly --- arch/arm/dts/Makefile |2 +-

Re: [PATCH v2 23/32] dts: msm8916: import PMIC dtsi files

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import the supporting pm8916.dtsi and msm8916-pm8916.dtsi files from upstream in preparation for switching boards over. Same as patch 19, with the commit id: Reviewed-by: Neil Armstrong

Re: [PATCH v2 22/32] dt-bindings: import headers for MSM8916

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import the dt-bindings headers in preparation for switching to upstream DTS for MSM8916. Signed-off-by: Caleb Connolly --- include/dt-bindings/arm/coresight-cti-dt.h | 37 + include/dt-bindings/clock/qcom,rpmcc.h | 174

Re: [PATCH v2 21/32] dts: sdm845: replace with upstream DTS

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import sdm845.dtsi from upstream, as well as the upstream DTS files for the db845c and Samsung starqltechn. Delete the old board files. Signed-off-by: Caleb Connolly --- arch/arm/dts/Makefile |4 +-

Re: [PATCH v2 20/32] dts: sdm845: import supporting dtsi files

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import the PM8998 and PMI8998 PMIC DTSI files from Linux 6.7-rc3 as well as the common audio codec in preperation for replacing board DTS files with upstream. Signed-off-by: Caleb Connolly --- arch/arm/dts/pm8998.dtsi | 130

Re: [PATCH v2 19/32] dt-bindings: import headers for SDM845

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Import the DT bindings headers that are used by SDM845 from Linux 6.7-rc3 I think adding the commit you took the bindings from would be also good Signed-off-by: Caleb Connolly --- include/dt-bindings/clock/qcom,camcc-sdm845.h | 116 ++

Re: [PATCH v2 18/32] doc: board/qualcomm: document generic targets

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Replace the board specific docs with a generic board.rst file which documents the build/boot process for the sdm845 and qcs404 boards now that the only differences are the DTB in use. At the same time, create a debugging page to document some useful

Re: [PATCH v2 17/32] mach-snapdragon: generate fdtfile automatically

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: With just a few basic rules, we can generate the $fdtfile environment variable to match the format used in Linux. This uses the root compatible property inside u-boot, with specific handling for the Dragonboard845c which is a special case, and for the

Re: [PATCH v2 15/32] mach-snapdragon: generalise board support

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Historically, Qualcomm boards have relied on heavy hardcoding in U-Boot, in many cases to the specific SoC but also to the board itself (e.g. memory map). This has been largely resolved by modernising the Qualcomm drivers in U-Boot, however the board

Re: [PATCH v2 09/32] gpio: qcom_pmic: add a quirk to skip GPIO configuration

2023-12-21 Thread Caleb Connolly
On 21/12/2023 16:19, Neil Armstrong wrote: > On 19/12/2023 17:04, Caleb Connolly wrote: >> Some platforms hard reset when attempting to configure PMIC GPIOs. Add >> support for quirks specified in match data with a single quirk to skip >> this configuration. We rely on the GPIO already be

Re: [PATCH v2 14/32] board: dragonboard820c: use LINUX_KERNEL_IMAGE_HEADER

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: db820c predated support for prepending the kernel image header automatically, drop it's custom linker script and head.S in favour of this generic support. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/Kconfig | 1 +

Re: [PATCH v2 13/32] board: dragonboard410c: import board code from mach-snapdragon

2023-12-21 Thread Neil Armstrong
On 19/12/2023 17:04, Caleb Connolly wrote: Some of the db410c board support code was written to be generic and placed in mach-snapdragon. However, as the db410c is the only board using this, move the code out of mach-snapdragon. This makes is more obvious what code is relevant for which targets

  1   2   >