[PATCH] drivers: mmc: Reset watchdog when accessing mmc device

2022-07-13 Thread qianfanguijin
From: qianfan Zhao watchdog will reset when 'mmc read' or 'ext4load' a large file from mmc device. Reset watchdog when accessing mmc device. Signed-off-by: qianfan Zhao --- drivers/mmc/mmc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[PULL] Pull request for u-boot next / v2022.10 = u-boot-stm32-20220712

2022-07-13 Thread Patrick DELAUNAY
I Tom, Please pull the STM32 related fixes for u-boot/next, v2022.10: u-boot-stm32-20220712 - Alignment with Linux kernel device tree v5.19 for stm32mp15 and stm32mp13 - Add OP-TEE nodes for stm32mp13x, aligned with upstreamed OP-TEE - Introduce of_to_plat ops in stm32_sdmmc2 driver -

[PATCH 06/14] imx: kontron-sl-mx8mm: lpddr4_timing.c: Add spaces for proper alignment

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf Fix the spaces and alignment for easier tracking of changes and comparing with configs generated by the tools. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/lpddr4_timing.c | 2076 1 file changed, 1038 insertions(+), 1038

[PATCH 13/14] imx: kontron-sl-mx8mm: Simplify code in spl.c

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf Refactor the code a bit without any functional changes. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/spl.c | 25 + 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/board/kontron/sl-mx8mm/spl.c

[PATCH 12/14] imx: kontron-sl-mx8mm: Use voltage rail names from schematic for PMIC regulator-names

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf Improve the naming of the regulators to contain the voltage rail names from the schematic. Suggested-by: Heiko Thiery Signed-off-by: Frieder Schrempf --- arch/arm/dts/imx8mm-kontron-n801x-som.dtsi | 22 +++--- 1 file changed, 11 insertions(+), 11

[PATCH 11/14] imx: kontron-sl-mx8mm: Use the VSELECT signal to switch SD card IO voltage

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf It turns out that it is not necessary to declare the VSELECT signal as GPIO and let the PMIC driver set it to a fixed high level. This switches the voltage between 3.3V and 1.8V by setting the PMIC register for LDO5 accordingly. Instead we can do it like other boards

[PATCH 09/14] imx: kontron-sl-mx8mm: Prepare for other i.MX8MM SoM types

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf This sets an env variable 'som_type' from the board code. It can later be used by environment scripts, e. g. to select the proper devicetree for the board. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/sl-mx8mm.c | 6 ++ 1 file changed, 6 insertions(+)

[PATCH 2/3] fdt: Start a test for the fdt command

2022-07-13 Thread Simon Glass
Add a basic test of the 'fdt addr' command, to kick things off. This includes a new convenience function to run a command from a printf() string. Signed-off-by: Simon Glass --- common/cli.c | 15 + include/command.h | 10 +++ include/test/suites.h | 1 + test/cmd/Makefile

[PATCH 1/3] addrmap: Support on sandbox

2022-07-13 Thread Simon Glass
Update this feature so that it works on sandbox, using a basic identity mapping. This allows us to run the 'ut addrmap' test. Also fix up the test to use the correct macros to access the linker list, so that the 'ut addrmap' command actually works. Signed-off-by: Simon Glass ---

[PATCH 3/3] doc: Make a start on docs for fdt command

2022-07-13 Thread Simon Glass
Add some information about the 'fdt addr' subcommand, to get things started. Signed-off-by: Simon Glass --- doc/usage/cmd/fdt.rst | 69 +++ doc/usage/index.rst | 1 + 2 files changed, 70 insertions(+) create mode 100644 doc/usage/cmd/fdt.rst diff

Re: [PATCH v6 05/13] stm32mp1: dk2: Add image information for capsule updates

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: Enabling capsule update functionality on the platform requires populating information on the images that are to be updated using the functionality. Do so for the DK2 board. Signed-off-by: Sughosh Ganu --- Changes since V5: None

[PATCH] armv8: mach-k3: correct define checking for AM625/AM642 memory maps

2022-07-13 Thread Matt Ranostay
Using CONFIG_IS_ENABLED breaks accessing memory map structure when doing a A53 SPL build for AM625 and AM642 platforms. This is due to 'abc if CONFIG_SPL_BUILD is defined and CONFIG_SPL_FOO is set to 'y'' in which there is no CONFIG_SPL_SOC_K3_AM625/CONFIG_SPL_SOC_K3_AM642 defined in the

Re: [v3 1/4] doc: Add statistics page for v2022.07

2022-07-13 Thread Heinrich Schuchardt
On 7/12/22 23:34, Tom Rini wrote: Our statistics pages have always been generated by gitdm. After patching gitdm to generate an acceptable Sphinx output for tables, include that and some other basic formatting here. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Reviewed-by: Heinrich

Re: [PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Alexander Dahl
Hei hei, On Wed, Jul 13, 2022 at 02:50:14PM +0200, Michal Simek wrote: > > > On 7/13/22 14:33, Alexander Dahl wrote: > > From: Alexander Dahl > > > WARNING: please write a paragraph that describes the config symbol fully > > We don't allow patches with empty commit message. In general I

[PATCH 08/14] imx: kontron-sl-mx8mm: Use new LPDDR4 config parameters

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf These parameters are needed for stable performance on new hardware with Nanya LPDDR4 chips. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/lpddr4_timing.c | 184 +++-- board/kontron/sl-mx8mm/spl.c | 8 +- 2 files changed, 55

[PATCH 07/14] imx: kontron-sl-mx8mm: Remove 100mt DDR setpoint

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf The new stable configuration is missing the 100mt setpoint, remove it before updating the config to make sure the changes are separated cleanly. Signed-off-by: Frieder Schrempf --- arch/arm/dts/imx8mm-kontron-n801x-som.dtsi | 4 --

[PATCH 05/14] imx: kontron-sl-mx8mm: Enable bootaux command

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf Enable the bootaux command in order to be able to load a binary into the M4 core when needed. Signed-off-by: Frieder Schrempf --- configs/kontron-sl-mx8mm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron-sl-mx8mm_defconfig

[PATCH 02/14] imx: kontron-sl-mx8mm: Add redundant environment

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf Enable the redundant environment feature to allow falling back in case of storage corruption. Signed-off-by: Frieder Schrempf --- configs/kontron-sl-mx8mm_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH 03/14] imx: kontron-sl-mx8mm: Enable environment in MMC

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf In case we boot from SD card or eMMC, we also want to load the environment from the according boot device. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/sl-mx8mm.c | 31 ++ configs/kontron-sl-mx8mm_defconfig | 1 + 2 files

[PATCH 04/14] imx: kontron-sl-mx8mm: Migrate to use CONFIG_EXTRA_ENV_TEXT

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf Move the environment from the board header to a separate text file and also drop those variables that are already set in env_default.h from the Kconfig options. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/sl-mx8mm.env | 7 +++

Re: [PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 14:33, Alexander Dahl wrote: From: Alexander Dahl WARNING: please write a paragraph that describes the config symbol fully We don't allow patches with empty commit message. Signed-off-by: Alexander Dahl --- README | 4

Re: [PATCH v6 03/13] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored

[PATCH 01/14] imx: kontron-sl-mx8mm: Remove LVDS board type and devicetrees

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf The display isn't and won't be used in U-Boot. Also the display setup is not yet supported in mainline Linux, so even for cases where the U-Boot devicetree is passed to the kernel there is currently no use for this configuration. Selecting the proper configuration in the

[PATCH 00/14] imx: kontron-sl-mx8mm: Improvements and OSM board support

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf This set contains several improvements for the kontron-sl-mx8mm board configuration (patches 1 to 13) and support for a new SoM (patch 14, including baseboard) that complies to the Open Standard Module (OSM) 1.0 hardware specification, size S

PRAM and reserved memory for Linux

2022-07-13 Thread Joakim Tjernlund
I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space but now u-boot complains when booting: ERROR: reserving fdt memory region failed (addr=703ff000 size=1000) The error is caused by arch_lmb_reserve() in arm which seem to reserve command line and board info ? If I remove

Re: [PATCH 3/3] fdt: introduce apply_all command

2022-07-13 Thread Andre Przywara
On Tue, 12 Jul 2022 04:58:35 -0600 Simon Glass wrote: Hi Simon, many thanks for having a look! > On Tue, 5 Jul 2022 at 11:14, Andre Przywara wrote: > > > > Explicitly specifying the exact filenames of devicetree overlays files > > on a U-Boot command line can be quite tedious for users,

Re: [PATCH v2 01/10] i2c: stm32: add support for the st, stm32mp13 SOC

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 10:20:14 +0200, Patrick Delaunay wrote: > The stm32mp13 soc differs from the stm32mp15 in terms of > clear register offset for controlling the FMP (Fast Mode Plus). > > Applied to stm32/master, thanks! [01/10] i2c: stm32: add support for the st,stm32mp13 SOC commit:

Re: [PATCH 1/4] ARM: dts: stm32mp15: alignment with v5.19

2022-07-13 Thread Patrick Delaunay
On Tue, 5 Jul 2022 16:55:54 +0200, Patrick Delaunay wrote: > Device tree alignment with Linux kernel v5.19-rc1 > > - ARM: dts: stm32: Add alternate pinmux for ethernet0 pins > - ARM: dts: stm32: Add alternate pinmux for mco2 pins > - ARM: dts: stm32: fix pinctrl node name warnings (MPU soc) > -

Re: [PATCH v2 1/3] mmc: stm32_sdmmc2: cosmetic: rename stm32_sdmmc_bind

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 10:01:45 +0200, Patrick Delaunay wrote: > Rename stm32_sdmmc_bind to stm32_sdmmc2_bind as all other functions > in SDMMCv2 driver > > series-changes: 2 > - fix typo in commit message (/oter function/other functions/) > > > [...] Applied to stm32/master, thanks! [1/3] mmc:

Re: [PATCH 1/2] ARM: dts: stm32mp13: add OP-TEE nodes

2022-07-13 Thread Patrick Delaunay
On Wed, 6 Jul 2022 18:20:24 +0200, Patrick Delaunay wrote: > Add the node for OP-TEE firmware with the associated reserved memory nodes > > Applied to stm32/master, thanks! [1/2] ARM: dts: stm32mp13: add OP-TEE nodes commit: 0b69ce6a816c39502941deb90543e23619e02896 [2/2] ARM: dts:

[PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Alexander Dahl
From: Alexander Dahl After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for boards setting this in include/configs/… Two FPGA drivers consider this definition. Signed-off-by: Alexander Dahl --- README | 3 ---

[PATCH v2 0/2] fpga: Convert some options to Kconfig

2022-07-13 Thread Alexander Dahl
Hei hei, rebased this on recent master. One patch dropped. See changelog below. Greets Alex (implicit) v1 -> v2: - dropped patch 3, same kconfig symbol addressed with commit 60d45642fe0673514aced37e6cc95d4f0fe02a19 ("fpga: Remove CONFIG_FPGA_COUNT") Cc: Wolfgang Wegner Cc: Michal

[PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Alexander Dahl
From: Alexander Dahl Signed-off-by: Alexander Dahl --- README | 4 configs/astro_mcf5373l_defconfig | 1 + drivers/fpga/Kconfig | 6 ++ include/configs/astro_mcf5373l.h | 1 - scripts/config_whitelist.txt | 1 - 5 files changed, 7

Re: [PATCH v6 02/13] FWU: Add FWU metadata structure and driver for accessing metadata

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and a driver model uclass which provides functions to access the

Re: [PATCH v6 06/13] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partitions.

Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig

2022-07-13 Thread Pali Rohár
On Tuesday 12 July 2022 19:15:45 Tom Rini wrote: > On Wed, Jul 13, 2022 at 01:11:35AM +0200, Pali Rohár wrote: > > On Tuesday 12 July 2022 18:58:31 Tom Rini wrote: > [snip] > > > It really isn't, that's why the plain text environment stuff is a good > > > step in the right direction. What I'm not

RE: [EXT] [PATCH] doc: imx: habv4: Add Secure Boot guide for i.MX8M SPL targets

2022-07-13 Thread Utkarsh Gupta
Hi Marek, The Secure/Encrypted boot guides for 8M exist in NXP BSP at https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx?h=lf_v2022 .04. Looks like they need to be up streamed. @Peng Fan/@Ye Li - FYI Regards, Utkarsh G. > -Original Message- > From: Marek Vasut > Sent:

[PATCH] [Meson] add magicbox m16s config, dts and doc

2022-07-13 Thread Zhang Ning
MagicBox M16S or MagicBox 3Pro is welcome Tv box in China, which is developed by Alibaba at 2016. No schemtics, no vendor source code right now thus no fip blobs to create mainline u-boot. Need to use chainloader to boot a mainline u-boot, then mainline kernel. from pre-installed u-boot log,

[PATCH 0/3] Test and docs for fdt command

2022-07-13 Thread Simon Glass
This was required by Marek to provide a starting point for documentation and a test for a new subcommand. Simon Glass (3): addrmap: Support on sandbox fdt: Start a test for the fdt command doc: Make a start on docs for fdt command board/sandbox/sandbox.c | 9 +++ common/cli.c

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 14:32, Alexander Dahl wrote: From: Alexander Dahl After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for boards setting this in include/configs/… Two FPGA drivers consider this definition. 2? board/astro/mcf5373l/fpga.c

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Alexander Dahl
Hello Michal, On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: > > > On 7/13/22 14:32, Alexander Dahl wrote: > > From: Alexander Dahl > > > > After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the > > whitelist") downstream builds failed for boards setting this in > >

Re: [PATCH v6 07/13] FWU: STM32MP1: Add support to read boot index from backup register

2022-07-13 Thread Patrick DELAUNAY
Hi, On 7/4/22 07:16, Sughosh Ganu wrote: The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to

[PATCH 14/14] imx: kontron-sl-mx8mm: Add support for Kontron Electronics SoM SL i.MX8MM OSM-S

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf This adds support for the Kontron Electronics SoM SL i.MX8MM OSM-S and the matching baseboard BL i.MX8MM OSM-S. The SoM hardware complies to the Open Standard Module (OSM) 1.0 specification, size S (https://sget.org/standards/osm). The existing board configuration for

[PATCH 10/14] imx: kontron-sl-mx8mm: Adjust board and SoM model strings

2022-07-13 Thread Frieder Schrempf
From: Frieder Schrempf The official naming includes "SL" (SoM-Line) or "BL" (Board-Line). The legacy identifiers are kept in brackets and are still used in file names and compatible strings. Signed-off-by: Frieder Schrempf --- arch/arm/dts/imx8mm-kontron-n801x-s.dts| 2 +-

Re: u-boot and IPv6

2022-07-13 Thread Chris Packham
On Tue, Jul 12, 2022 at 7:40 PM Chris Packham wrote: > > Hi Sean and Dhananjay, > > Adding U-Boot ML to the Cc > > On Tue, Jul 12, 2022, 08:45 Sean Edmond wrote: >> >> Hi Chris, >> >> I’m looking to add IPv6 to our version of u-boot. >> >> I found your patch series which looks like a solid

Re: [PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-07-13 Thread Patrick Delaunay
On Thu, 30 Jun 2022 16:19:48 +0200, Johann Neuhauser wrote: > PA13 and PA14 are used for USB power control and can't be used > to enforce fastboot or stm32prog mode by pressing a button. > > Defining CONFIG_FASTBOOT/CONFIG_CMD_STM32PROG without this patch applied > results in fastboot/stm32prog

[PATCH 3/3] net: emaclite: fix handling for IP packets with specific lengths

2022-07-13 Thread Samuel Obuch
The maximum length is capped similarly to the emaclite_send function. Avoid integer underflow for values of ip->ip_len < 30, the minimum length of an IP packet is 21 bytes. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

net: emaclite: Fixes, enable driver for other archs

2022-07-13 Thread Samuel Obuch
These patches solve a few issues with the driver observed on a RISC-V platform.

[PATCH 1/3] net: emaclite: fix broken build

2022-07-13 Thread Samuel Obuch
Function ioremap_nocache seems to be defined only for mips and microblaze architectures. Therefore, the function call in the emaclite driver causes this driver to be unusable with other architectures, for example riscv. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 4 1

[PATCH 2/3] net: emaclite: fix xemaclite_alignedread/write functions

2022-07-13 Thread Samuel Obuch
Use __raw_read* and __raw_write* functions to ensure read/write is passed to the memory-mapped regions, as non-volatile accesses may get optimised out. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: PRAM and reserved memory for Linux

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 10:08:38AM +, Joakim Tjernlund wrote: > I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space but > now u-boot complains when booting: > ERROR: reserving fdt memory region failed (addr=703ff000 size=1000) > The error is caused by arch_lmb_reserve()

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-07-13 Thread Marek Vasut
On 7/13/22 17:28, Simon Glass wrote: Hi Marek, On Tue, 12 Jul 2022 at 05:47, Marek Vasut wrote: On 7/12/22 12:58, Simon Glass wrote: Hi Marek, On Fri, 8 Jul 2022 at 15:50, Marek Vasut wrote: The fdt command currently handles stringlists as strings in 'fdt get value' subcommand. Since

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-07-13 Thread Simon Glass
Hi Marek, On Wed, 13 Jul 2022 at 09:30, Marek Vasut wrote: > > On 7/13/22 17:28, Simon Glass wrote: > > Hi Marek, > > > > On Tue, 12 Jul 2022 at 05:47, Marek Vasut wrote: > >> > >> On 7/12/22 12:58, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On Fri, 8 Jul 2022 at 15:50, Marek Vasut wrote:

Re: [PATCH 3/3] fdt: introduce apply_all command

2022-07-13 Thread Simon Glass
Hi Andre, On Wed, 13 Jul 2022 at 07:18, Andre Przywara wrote: > > On Tue, 12 Jul 2022 04:58:35 -0600 > Simon Glass wrote: > > Hi Simon, > > many thanks for having a look! > > > On Tue, 5 Jul 2022 at 11:14, Andre Przywara wrote: > > > > > > Explicitly specifying the exact filenames of

Re: [PATCH] arm: dts: k3-am64-ddr fix typo causing DDR4 register corruption

2022-07-13 Thread Tom Rini
On Tue, Jul 12, 2022 at 07:59:04PM -0500, Anand Gadiyar wrote: > The entry for DDRSS_PI_321_DATA was accidentally repeated leading to the > last few PI registers being incorrectly programmed. > > Fix this. > > Reported-by: Bin Liu > Signed-off-by: Vignesh Raghavendra > Signed-off-by: Anand

Re: [PULL] Pull request for u-boot next / v2022.10 = u-boot-stm32-20220712

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 09:57:48AM +0200, Patrick DELAUNAY wrote: > I Tom, > > Please pull the STM32 related fixes for u-boot/next, v2022.10: > u-boot-stm32-20220712 > > - Alignment with Linux kernel device tree v5.19 for stm32mp15 and stm32mp13 > - Add OP-TEE nodes for stm32mp13x, aligned with

Re: [PATCH 1/2] dm: core: Add functions to read 8/16-bit integers

2022-07-13 Thread Stefan Herbrechtsmeier
Hi Simon, Am 13.07.2022 um 17:28 schrieb Simon Glass: Hi Stefan, On Tue, 12 Jul 2022 at 12:31, Stefan Herbrechtsmeier wrote: Hi Simon, Am 12.07.2022 um 12:58 schrieb Simon Glass: Hi Stefan, On Tue, 14 Jun 2022 at 07:22, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Add

[PATCH 1/3] sunxi: mmc: ignore card detect in SPL

2022-07-13 Thread Andre Przywara
The sunxi MMC code does not use the DM in the SPL, as we don't have a device tree available that early, also no space for it. This also means we cannot access the card-detect GPIO information from there, so we have Kconfig symbols called CONFIG_MMCx_CD_PIN, which each board has to define. This is

[PATCH 3/3] sunxi: remove CONFIG_MMC?_CD_PIN

2022-07-13 Thread Andre Przywara
For legacy reasons we were defining the card detect GPIO for all sunxi boards in each board's defconfig. There is actually no need for a card-detect check in the SPL code (which consequently has been removed already), and also in U-Boot proper we have DM code to query the CD GPIO name from the

[PATCH 0/3] sunxi: remove CONFIG_MMC?_CD_PIN

2022-07-13 Thread Andre Przywara
Since the dawn of time we had CONFIG_MMC?_CD_PIN defines for each Allwinner board, which held the name for the respective MMC card detect GPIO. These days we don't use that in U-Boot proper anymore (and rely on DT for that, instead), so it's just for the SPL loading. However the card detect is

[PATCH 2/3] sunxi: mmc: group non-DM specific functions

2022-07-13 Thread Andre Przywara
As the SPL code for sunxi boards does not use the driver model, we have two mmc_ops structures, one for DM, one for non-DM. The actual hardware access code is shared, with the respective callback functions using that common code. To make this more obvious and easier to read, reorder the functions

Re: [PATCH 1/7] doc: Migrate CodingStyle wiki page to Sphinx

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. The changes here are for formatting or slight rewording so that it reads well when linking to other Sphinx documents. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: -

Re: [PATCH 2/7] doc: Migrate DesignPrinciples wiki page to Sphinx

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: Move the current DesignPrinciples wiki page to doc/develop/designprinciples.rst. The changes here are for formatting or slight rewording so that it reads well when linking to other Sphinx documents. Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Alexander Dahl
Hello Michal, On Wed, Jul 13, 2022 at 03:20:44PM +0200, Alexander Dahl wrote: > Hello Michal, > > On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: > > > > > > On 7/13/22 14:32, Alexander Dahl wrote: > > > From: Alexander Dahl > > > > > > After commit 8cca60a2cbf2 ("Kconfig:

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 16:07, Alexander Dahl wrote: Hello Michal, On Wed, Jul 13, 2022 at 03:20:44PM +0200, Alexander Dahl wrote: Hello Michal, On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: On 7/13/22 14:32, Alexander Dahl wrote: From: Alexander Dahl After commit 8cca60a2cbf2

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 03:20:46PM +0200, Alexander Dahl wrote: > Hello Michal, > > On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: [snip] > > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig > > > index 76719517f5..53d91676e0 100644 > > > --- a/drivers/fpga/Kconfig > > >

Re: [PATCH] armv8: mach-k3: correct define checking for AM625/AM642 memory maps

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 04:49:36AM -0700, Matt Ranostay wrote: > Using CONFIG_IS_ENABLED breaks accessing memory map structure when > doing a A53 SPL build for AM625 and AM642 platforms. This is due to > 'abc if CONFIG_SPL_BUILD is defined and CONFIG_SPL_FOO is set to 'y'' > in which there is no

Re: [PATCH v2 2/2] fpga: Convert SYS_FPGA_PROG_FEEDBACK to Kconfig

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 03:11:09PM +0200, Alexander Dahl wrote: > Hei hei, > > On Wed, Jul 13, 2022 at 02:50:14PM +0200, Michal Simek wrote: > > > > > > On 7/13/22 14:33, Alexander Dahl wrote: > > > From: Alexander Dahl > > > > > > WARNING: please write a paragraph that describes the config

[PATCH 3/3] sunxi: fel: drop redundant "control register" save/restore

2022-07-13 Thread Andre Przywara
For some reasons shrouded in mystery, the code saving the FEL state was saving the SCTLR register twice, with the second copy trying to justify itself by using its ancient "control register" alias name. Drop the redundant second copy, both from the fel_stash data structure, and also the code

Re: [PATCH 1/4] gpio: fix incorrect depends on for SPL_GPIO_HOG

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 09:44, Quentin Schulz wrote: > > From: Quentin Schulz > > Since commit 83061dbd1c89 ("Rename GPIO_SUPPORT to GPIO"), > SPL_GPIO_SUPPORT has been renamed to SPL_GPIO, meaning that SPL_GPIO_HOG > can never be enabled. > > Let's fix this by using the proper name for the

Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

2022-07-13 Thread Simon Glass
Hi Tom, On Tue, 12 Jul 2022 at 15:38, Tom Rini wrote: > > On Mon, Jul 11, 2022 at 07:04:04PM -0600, Simon Glass wrote: > > Bring this tool into buildman, so we don't have to run it separately. The > > board.cfg file is still produced as part of the build, to save time when > > doing another

Re: [PATCH] cmd: fdt: Add support for reading stringlist property values

2022-07-13 Thread Simon Glass
Hi Marek, On Tue, 12 Jul 2022 at 05:47, Marek Vasut wrote: > > On 7/12/22 12:58, Simon Glass wrote: > > Hi Marek, > > > > On Fri, 8 Jul 2022 at 15:50, Marek Vasut wrote: > >> > >> The fdt command currently handles stringlists as strings in 'fdt get value' > >> subcommand. Since strings in FDT

[PATCH 2/3] sunxi: h616: lower SPL stack address to avoid BROM data

2022-07-13 Thread Andre Przywara
When using the USB OTG FEL mode on the Allwinner H616, the BootROM stores some data at the end of SRAM C. This is also the location where we place the initial SPL stack, so it will overwrite this data. We still need the BROM code after running the SPL, so should leave that area alone.

Re: [PATCH 1/2] dm: core: Add functions to read 8/16-bit integers

2022-07-13 Thread Simon Glass
Hi Stefan, On Tue, 12 Jul 2022 at 12:31, Stefan Herbrechtsmeier wrote: > > Hi Simon, > > Am 12.07.2022 um 12:58 schrieb Simon Glass: > > Hi Stefan, > > > > On Tue, 14 Jun 2022 at 07:22, Stefan Herbrechtsmeier > > wrote: > >> > >> From: Stefan Herbrechtsmeier > >> > >> Add functions to read

[PATCH] sunxi: configs: streamline include/configs/sun*.h wrappers

2022-07-13 Thread Andre Przywara
For mostly historic reasons we had configuration headers for each Allwinner CPU "family". These days they are mostly just including one common header, with the rest being somewhat empty. There were attempts to remove them, and to just use the one common header to begin with, but this has

Re: PRAM and reserved memory for Linux

2022-07-13 Thread Joakim Tjernlund
On Wed, 2022-07-13 at 10:21 -0400, Tom Rini wrote: > On Wed, Jul 13, 2022 at 10:08:38AM +, Joakim Tjernlund wrote: > > > I added CONFIG_PRAM 4 and a reserved-memory DTS node for the same space but > > now u-boot complains when booting: > > ERROR: reserving fdt memory region failed

Re: [PATCH v2 1/2] fpga: Convert SYS_FPGA_CHECK_CTRLC to Kconfig

2022-07-13 Thread Michal Simek
On 7/13/22 15:20, Alexander Dahl wrote: Hello Michal, On Wed, Jul 13, 2022 at 02:56:08PM +0200, Michal Simek wrote: On 7/13/22 14:32, Alexander Dahl wrote: From: Alexander Dahl After commit 8cca60a2cbf2 ("Kconfig: Remove some symbols from the whitelist") downstream builds failed for

[PATCH] board: ti: am65x: Do not disable SA2UL in DT

2022-07-13 Thread Andrew Davis
This is no longer needed as the SA2UL can now be shared with Linux. Leave the SA2UL DT node enabled. Signed-off-by: Andrew Davis --- board/ti/am65x/evm.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index 7182a8cad1..8a0a506a3e

[PATCH] dm: fix mis-word in SPL_DM description

2022-07-13 Thread Oleksandr Suvorov
Replace logically correct word in the description. Fixes: 91a91ff804d ("dm: Add Kconfig options for driver model SPL support") Signed-off-by: Oleksandr Suvorov --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig

Re: [PATCH] binman: Increase default fitImage data section resize step from 1k to 64k

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 11:41, Marek Vasut wrote: > > Currently the fitImage data area is resized in 1 kiB steps. This works > when bundling smaller images below some 1 MiB, but when bundling large > images into the fitImage, this make binman spend extreme amount of time > and CPU just spinning in

Re: [PATCH 4/4] vpl: fix reference in comment to non-existing SPL_SERIAL_SUPPORT

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 09:45, Quentin Schulz wrote: > > From: Quentin Schulz > > Since commit 2a7360666871 ("serial: Rename SERIAL_SUPPORT to SERIAL") > SPL_SERIAL_SUPPORT is named SPL_SERIAL. So let's update the comment to > point to the correct Kconfig option in the comment of VPL_SERIAL. > >

Re: [gitdm v2] reports.py: Add very basic rST output

2022-07-13 Thread Simon Glass
On Tue, 12 Jul 2022 at 15:14, Tom Rini wrote: > > Add a -R option to gitdm to allow for reStructuredText output and add > some very simple table generation. We assume that whatever uses this > output will be including it in other documents and we only concern > ourselves with making tables.

Re: [PATCH v6 3/7] tpm: Add the RNG child device

2022-07-13 Thread Simon Glass
Hi Rob, On Tue, 12 Jul 2022 at 08:11, Rob Herring wrote: > > On Tue, Jul 12, 2022 at 5:04 AM Simon Glass wrote: > > > > Hi Ilias, > > > > On Fri, 8 Jul 2022 at 02:24, Ilias Apalodimas > > wrote: > > > > > > Hi Simon, > > > > > > [...] > > > > > > > > + > > > > > UCLASS_DRIVER(tpm) = { > > > >

Re: [PATCH] console: Add option to keep it silent until env is loaded

2022-07-13 Thread Simon Glass
Hi Harald, On Tue, 12 Jul 2022 at 05:58, Harald Seiler wrote: > > Hi Simon, > > On Tue, 2022-07-12 at 04:58 -0600, Simon Glass wrote: > > Hi Harald, > > > > On Wed, 6 Jul 2022 at 05:19, Harald Seiler wrote: > > > > > > Add a config-option which forces the console to stay silent until the > > >

[PATCH 0/3] sunxi: FEL boot fixes

2022-07-13 Thread Andre Przywara
While investigating a FEL boot failure on the OrangePi Zero 2 board (with an H616 SoC), I stared at our FEL code and found some issues, which this series fixes. Unfortunately those didn't fix the H616 problem, but they are worth having anyway. For the records on the FEL failure: with certain

[PATCH 1/3] sunxi: armv8: fel: load only 32-bit values

2022-07-13 Thread Andre Przywara
Both the values and the MMIO addresses that we need during the 64-bit FEL restore are smaller than 2^32, so we don't need to do any 64-bit loads. Change the loads to only load 32 bits worth of data, that saves us some bytes for storing the values. Signed-off-by: Andre Przywara ---

Re: [PATCH 1/7] doc: Migrate CodingStyle wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:06:56PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > > The changes here are for formatting or slight rewording so that it reads > > well when linking to other Sphinx

Re: [PATCH 5/7] designprinciples.rst: Perform minor cleanups

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: - Remove some missed wiki markup, and escape a "\n" correctly. - Use gender-neutral language to refer to the user, consistently. Cc: Claudius Heine Cc: Heinrich Schuchardt Signed-off-by: Tom Rini --- Changes in v2: - None ---

Re: [PATCH 7/7] process.rst: Modernize the "Workflow of a Custodian" section

2022-07-13 Thread Heinrich Schuchardt
On 7/11/22 19:14, Tom Rini wrote: The "Workflow of a Custodian" section on the wiki had not been changed in quite some time to reflect how the process has been functioning for some time. First, update some links to point to modern and current sources of information. Second, and more

Re: [PATCH 7/7] process.rst: Modernize the "Workflow of a Custodian" section

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:46:28PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > The "Workflow of a Custodian" section on the wiki had not been changed > > in quite some time to reflect how the process has been functioning for > > some time. First, update some links to

Re: [PATCH 6/7] process.rst: Perform minor cleanups

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:43:25PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: [snip] > > @@ -155,7 +156,7 @@ like this: > > > > #. Applies cleanly to the source tree > > > > - #. passes a ``MAKEALL`` compile test without creating new warnings > > + #. Passes

Re: [PATCH] sunxi: configs: streamline include/configs/sun*.h wrappers

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 04:58:57PM +0100, Andre Przywara wrote: > For mostly historic reasons we had configuration headers for each > Allwinner CPU "family". These days they are mostly just including one > common header, with the rest being somewhat empty. > There were attempts to remove them, and

Re: [PATCH] board: ti: am65x: Do not disable SA2UL in DT

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 11:12:48AM -0500, Andrew Davis wrote: > This is no longer needed as the SA2UL can now be shared with Linux. > Leave the SA2UL DT node enabled. > > Signed-off-by: Andrew Davis Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB

2022-07-13 Thread Stephan Gerhold
Hi Sumit, On Tue, Jul 12, 2022 at 12:42:12PM +0530, Sumit Garg wrote: > Add support for Qualcomm QCS404 SoC based evaluation board. > > Features: > - Qualcomm Snapdragon QCS404 SoC > - 1GiB RAM > - 8GiB eMMC, uSD slot > > U-boot is chain loaded by ABL in 64-bit mode as part of boot.img. > For

Re: [PATCH 4/7] doc: Migrate Process wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:36:02PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: [snip] > > +Work flow of a Custodian > > + > > + > > +The normal flow of work in the U-Boot development process will look > > +like this: > > + > > +#. A developer

Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 09:28:06AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 12 Jul 2022 at 15:38, Tom Rini wrote: > > > > On Mon, Jul 11, 2022 at 07:04:04PM -0600, Simon Glass wrote: > > > Bring this tool into buildman, so we don't have to run it separately. The > > > board.cfg file is

[PATCH] arm: dts: db410c/db820c: Fix SPMI addresses

2022-07-13 Thread Stephan Gerhold
The Qualcomm device trees in U-Boot are currently not consistent with the upstream DTs used in the Linux kernel. While some bindings are similar to the official specification in the Linux kernel, several nodes have subtle differences, e.g. the "compatible"s or the exact specification of memory

Re: [PATCH 2/7] doc: Migrate DesignPrinciples wiki page to Sphinx

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:22:33PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > Move the current DesignPrinciples wiki page to > > doc/develop/designprinciples.rst. The changes here are for formatting > > or slight rewording so that it reads well when linking to other

Re: [PATCH 5/7] designprinciples.rst: Perform minor cleanups

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 07:40:03PM +0200, Heinrich Schuchardt wrote: > On 7/11/22 19:14, Tom Rini wrote: > > - Remove some missed wiki markup, and escape a "\n" correctly. > > - Use gender-neutral language to refer to the user, consistently. > > > > Cc: Claudius Heine > > Cc: Heinrich Schuchardt

Re: [PATCH v6 3/7] tpm: Add the RNG child device

2022-07-13 Thread Tom Rini
On Wed, Jul 13, 2022 at 09:28:16AM -0600, Simon Glass wrote: > Hi Rob, > > On Tue, 12 Jul 2022 at 08:11, Rob Herring wrote: > > > > On Tue, Jul 12, 2022 at 5:04 AM Simon Glass wrote: > > > > > > Hi Ilias, > > > > > > On Fri, 8 Jul 2022 at 02:24, Ilias Apalodimas > > > wrote: > > > > > > > > Hi

  1   2   >