[PATCH v9 00/15] Introduce initial TI's J784S4 and AM69 support

2024-02-23 Thread Apurva Nandan
Hello Everyone! This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM. The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree. All other patches are specific to

[PATCH v9 03/15] arm: mach-k3: Add basic support for J784S4 SoC definition

2024-02-23 Thread Apurva Nandan
Add J784S4 initialization files for initial SPL boot. config SYS_K3_MCU_SCRATCHPAD_BASE default value is same for J721E, J721S2, J784S4. So combined them into a single default. Signed-off-by: Hari Nagalla [ add firewall configurations and change the R5 MCU scratchpad ] Signed-off-by: Manorit

[PATCH v9 02/15] arm: mach-k3: Kconfig: Sort SOC_K3 config entries

2024-02-23 Thread Apurva Nandan
Sort SOC_K3 config entries in alphabetical order for clean up. Signed-off-by: Apurva Nandan Reviewed-by: Roger Quadros --- arch/arm/mach-k3/Kconfig | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig index

[PATCH v9 01/15] Makefile: remove hardcoded device tree source directory

2024-02-23 Thread Apurva Nandan
From: Bryan Brattlof Some boards that choose to utilize the OF_UPSTREAM directory for their device tree files will need to specify that directory instead of the traditional arch/$(ARCH)/dts/* path. Include the correct path to the board's dtbs depending on if OF_UPSTREAM is selected or not.

[PATCH v10 00/15] Introduce initial TI's J784S4 and AM69 support

2024-02-23 Thread Apurva Nandan
Hello Everyone! This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM. The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree. All other patches are specific to

[PATCH v9 15/15] doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation

2024-02-23 Thread Apurva Nandan
TI K3 J784S4 and AM69 are new additions to the K3 SoC family. Add documentation about the J784S4 EVM and AM69 SK. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 1 + doc/board/ti/j784s4_evm.rst | 299

[PATCH v10 02/15] arm: mach-k3: Kconfig: Sort SOC_K3 config entries

2024-02-23 Thread Apurva Nandan
Sort SOC_K3 config entries in alphabetical order for clean up. Signed-off-by: Apurva Nandan Reviewed-by: Roger Quadros --- arch/arm/mach-k3/Kconfig | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig index

[PATCH v10 01/15] Makefile: remove hardcoded device tree source directory

2024-02-23 Thread Apurva Nandan
From: Bryan Brattlof Some boards that choose to utilize the OF_UPSTREAM directory for their device tree files will need to specify that directory instead of the traditional arch/$(ARCH)/dts/* path. Include the correct path to the board's dtbs depending on if OF_UPSTREAM is selected or not.

[PATCH v10 08/15] board: ti: j784s4: Add board support for J784S4 EVM

2024-02-23 Thread Apurva Nandan
Add board files for J784S4 EVM. SYS_DISABLE_DCACHE_OPS is selected in the Kconfig because J784S4/AM69 are a coherent architecture at A72 level by MSMC support. Signed-off-by: Hari Nagalla Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan Reviewed-by: Tom Rini ---

[PATCH v10 07/15] drivers: dma: Add support for J784S4 SoC

2024-02-23 Thread Apurva Nandan
Add support for DMA in J784S4 SoC. Signed-off-by: Jayesh Choudhary Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon Reviewed-by: Roger Quadros --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166

[PATCH v10 05/15] soc: ti: k3-socinfo: Add entry for J784S4 SoC

2024-02-23 Thread Apurva Nandan
Add support for J784S4 SoC Identification. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon Reviewed-by: Roger Quadros --- arch/arm/mach-k3/include/mach/hardware.h | 1 + drivers/soc/soc_ti_k3.c | 3 +++ 2 files changed, 4 insertions(+)

Re: [PATCH v2] cmd: eeprom: Fix config dependency

2024-02-23 Thread Tom Rini
On Fri, Feb 23, 2024 at 05:14:20PM +, Ivan Orlov wrote: > We should have CONFIG_DM_I2C or CONFIG_SYS_I2C_LEGACY enabled in > order for `cmd/eeprom.c` to compile as it depends on the i2c functions > which are not compiled otherwise. Update the Kconfig entry for the > 'eeprom' command

Re: [PULL] Please pull u-boot-amlogic-fixes-20240223

2024-02-23 Thread Tom Rini
ans/u-boot-amlogic.git > tags/u-boot-amlogic-fixes-20240223 > > for you to fetch changes up to fc0a7431e1729f456690468f2e9570fcc2c18175: > > configs: khadas-vim3*_android: fix AVB oom error (2024-02-23 18:22:50 +0100) > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/2] arm: dts: k3-am642-evm/sk: Enable OSPI support in SPL

2024-02-23 Thread Tom Rini
On Thu, Feb 22, 2024 at 11:24:38PM -0600, Jonathan Humphreys wrote: > Add bootph DT tags to enable OSPI in SPL. > Set OSPI regs for R5 SPL to address OSPI's boot region. > > Signed-off-by: Jonathan Humphreys > --- > arch/arm/dts/k3-am642-evm-u-boot.dtsi | 24 >

[PATCH v9 05/15] soc: ti: k3-socinfo: Add entry for J784S4 SoC

2024-02-23 Thread Apurva Nandan
Add support for J784S4 SoC Identification. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon Reviewed-by: Roger Quadros --- arch/arm/mach-k3/include/mach/hardware.h | 1 + drivers/soc/soc_ti_k3.c | 3 +++ 2 files changed, 4 insertions(+)

[PATCH v10 15/15] doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation

2024-02-23 Thread Apurva Nandan
TI K3 J784S4 and AM69 are new additions to the K3 SoC family. Add documentation about the J784S4 EVM and AM69 SK. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 1 + doc/board/ti/j784s4_evm.rst | 299

[PATCH v10 14/15] configs: am69_sk: Add defconfig for AM69 SK board

2024-02-23 Thread Apurva Nandan
From: Dasnavis Sabiya Add defconfig for AM69 SK A72 and R5 configuration. This inlcudes and modifies the J784S4 EVM defconfigs: j784s4_evm_a72_defconfig -> am69_sk_a72_defconfig j784s4_evm_r5_defconfig -> am69_sk_r5_defconfig Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan ---

Re: [PATCH] configs: khadas-vim3*_android: fix AVB oom error

2024-02-23 Thread Neil Armstrong
Hi, On Fri, 09 Feb 2024 09:58:35 +0100, Mattijs Korpershoek wrote: > When booting Android with AVB enabled, an OOM is observed: > > => avb init ${mmcdev} > => avb verify _a > ## Android Verified Boot 2.0 version 1.1.0 > read_is_device_unlocked not supported yet > read_rollback_index

[PATCH v9 06/15] arm: mach-k3: j784s4: Add clk and power support

2024-02-23 Thread Apurva Nandan
Add clk and device data which can be used by respective drivers to configure clocks and PSC. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Sean Anderson Reviewed-by: Nishanth Menon Reviewed-by: Bryan Brattlof Reviewed-by: Roger Quadros ---

[PATCH v9 07/15] drivers: dma: Add support for J784S4 SoC

2024-02-23 Thread Apurva Nandan
Add support for DMA in J784S4 SoC. Signed-off-by: Jayesh Choudhary Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon Reviewed-by: Roger Quadros --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166

Re: [PATCH v3 1/1] Makefile: pass -undef option to cmd_gen_envp

2024-02-23 Thread Tom Rini
On Fri, Feb 23, 2024 at 12:42:06PM +0100, Sébastien Szymanski wrote: > Without the '-undef' option, the 'linux' string in .env files is > replaced with the string '1 '. > For example, in the board/armadeus/opos6uldev/opos6uldev.env file, > > kernelimg=opos6ul-linux.bin > > becomes > >

Raspberry Pi 3b Plus USB-Ethernet lan78xx_eth address not set

2024-02-23 Thread Sourabh Hegde Ramu
Hello, I have a Raspberry Pi 3B Plus which I want to integrate with U-boot (v2023.10) . I am using rpi_3_32b_defconfig to generate u-boot.bin. But while booting I am getting below error Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In:serial,usbkbd Out:

[PATCH v9 08/15] board: ti: j784s4: Add board support for J784S4 EVM

2024-02-23 Thread Apurva Nandan
Add board files for J784S4 EVM. SYS_DISABLE_DCACHE_OPS is selected in the Kconfig because J784S4/AM69 are a coherent architecture at A72 level by MSMC support. Signed-off-by: Hari Nagalla Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan Reviewed-by: Tom Rini ---

[PATCH v9 14/15] configs: am69_sk: Add defconfig for AM69 SK board

2024-02-23 Thread Apurva Nandan
From: Dasnavis Sabiya Add defconfig for AM69 SK A72 and R5 configuration. This inlcudes and modifies the J784S4 EVM defconfigs: j784s4_evm_a72_defconfig -> am69_sk_a72_defconfig j784s4_evm_r5_defconfig -> am69_sk_r5_defconfig Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan ---

[PATCH v10 04/15] arm: mach-k3: Sort SoC JTAG_ID entries

2024-02-23 Thread Apurva Nandan
Sort JTAG_IDs for K3 SoCs in hardware.h in alphabetical order. Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon Reviewed-by: Roger Quadros --- arch/arm/mach-k3/include/mach/hardware.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v10 10/15] board: ti: j784s4: Add boot environment variables

2024-02-23 Thread Apurva Nandan
Add env file with necessary boot variables. [ added env files ] Signed-off-by: Neha Malcom Francis [ cleaned up the env files ] Signed-off-by: Manorit Chawdhry Signed-off-by: Apurva Nandan --- board/ti/j784s4/j784s4.env | 17 + 1 file changed, 17 insertions(+) create mode

[PULL] Please pull u-boot-amlogic-fixes-20240223

2024-02-23 Thread neil . armstrong
/custodians/u-boot-snapdragon (2024-02-22 11:34:59 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-fixes-20240223 for you to fetch changes up to fc0a7431e1729f456690468f2e9570fcc2c18175: configs: khadas-vim3

[PATCH v9 13/15] configs: j784s4_evm: Add defconfig for J784S4 EVM board

2024-02-23 Thread Apurva Nandan
Add defconfigs for building R5 U-Boot SPL and A72 U-Boot. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 2 + configs/j784s4_evm_a72_defconfig | 158 +++ configs/j784s4_evm_r5_defconfig | 153

[PATCH v9 12/15] arm: dts: Introduce am69-sk u-boot dts files

2024-02-23 Thread Apurva Nandan
From: Dasnavis Sabiya Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-r5-sk.dts |

[PATCH v9 10/15] board: ti: j784s4: Add boot environment variables

2024-02-23 Thread Apurva Nandan
Add env file with necessary boot variables. [ added env files ] Signed-off-by: Neha Malcom Francis [ cleaned up the env files ] Signed-off-by: Manorit Chawdhry Signed-off-by: Apurva Nandan --- board/ti/j784s4/j784s4.env | 17 + 1 file changed, 17 insertions(+) create mode

[PATCH v9 04/15] arm: mach-k3: Sort SoC JTAG_ID entries

2024-02-23 Thread Apurva Nandan
Sort JTAG_IDs for K3 SoCs in hardware.h in alphabetical order. Signed-off-by: Apurva Nandan Reviewed-by: Nishanth Menon Reviewed-by: Roger Quadros --- arch/arm/mach-k3/include/mach/hardware.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v10 03/15] arm: mach-k3: Add basic support for J784S4 SoC definition

2024-02-23 Thread Apurva Nandan
Add J784S4 initialization files for initial SPL boot. config SYS_K3_MCU_SCRATCHPAD_BASE default value is same for J721E, J721S2, J784S4. So combined them into a single default. Signed-off-by: Hari Nagalla [ add firewall configurations and change the R5 MCU scratchpad ] Signed-off-by: Manorit

[PATCH v10 06/15] arm: mach-k3: j784s4: Add clk and power support

2024-02-23 Thread Apurva Nandan
Add clk and device data which can be used by respective drivers to configure clocks and PSC. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan Reviewed-by: Sean Anderson Reviewed-by: Nishanth Menon Reviewed-by: Bryan Brattlof Reviewed-by: Roger Quadros ---

[PATCH] arm64: zynqmp: Do not describe u-boot.itb if SPL is disabled

2024-02-23 Thread Michal Simek
There is no reason to describe u-boot.itb on system without SPL. Pretty much this is cover all systems which are using only boot.bin which contains all images inside. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] arm64: zynqmp: Add MTD partition handling for dfu_alt_info generation

2024-02-23 Thread Michal Simek
Generate dfu_alt_info generation based on information from MTD partitions. mtd_found_part() is trying to identify MTD partition which code is running from. If partitions are not defined and location is not found it is going to previous behavior. Signed-off-by: Michal Simek ---

[PATCH v2] cmd: eeprom: Fix config dependency

2024-02-23 Thread Ivan Orlov
We should have CONFIG_DM_I2C or CONFIG_SYS_I2C_LEGACY enabled in order for `cmd/eeprom.c` to compile as it depends on the i2c functions which are not compiled otherwise. Update the Kconfig entry for the 'eeprom' command correspondingly. Signed-off-by: Ivan Orlov --- V1 -> V2: - Remove redundant

[PATCH v10 13/15] configs: j784s4_evm: Add defconfig for J784S4 EVM board

2024-02-23 Thread Apurva Nandan
Add defconfigs for building R5 U-Boot SPL and A72 U-Boot. Signed-off-by: Hari Nagalla Signed-off-by: Apurva Nandan --- board/ti/j784s4/MAINTAINERS | 2 + configs/j784s4_evm_a72_defconfig | 159 +++ configs/j784s4_evm_r5_defconfig | 153

[PATCH v10 12/15] arm: dts: Introduce am69-sk u-boot dts files

2024-02-23 Thread Apurva Nandan
From: Dasnavis Sabiya Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries. Signed-off-by: Dasnavis Sabiya Signed-off-by: Apurva Nandan --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-r5-sk.dts |

[PATCH v2 0/3] Enable OSPI on j721e

2024-02-23 Thread Jonathan Humphreys
This series enables OSPI storage and boot. fixes: 58d61fb5a77e ("arm: dts: k3-j721e-sk: Add initial A72 specific dts support") Changes from v1: - added patch to remove the OSPI phy pattern partition, as it wasn't used v1: https://patchwork.ozlabs.org/project/uboot/list/?series=396241 Jonathan

[PATCH v2 2/3] arm: mach-k3: j721e: Enable OSPI boot

2024-02-23 Thread Jonathan Humphreys
Add boot ROM XSPI bootmode, and set to BOOT_DEVICE_SPI if detected. Signed-off-by: Jonathan Humphreys --- arch/arm/mach-k3/include/mach/j721e_spl.h | 5 +++-- arch/arm/mach-k3/j721e_init.c | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v2 1/3] configs: j721e: Enable OSPI memory

2024-02-23 Thread Jonathan Humphreys
Set config values to enable OSPI functionality. Signed-off-by: Jonathan Humphreys --- configs/j721e_evm_a72_defconfig | 7 +++ configs/j721e_evm_r5_defconfig | 6 ++ 2 files changed, 13 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index

[PATCH v2 3/3] arm: dts: k3-j721e-sk: Remove OSPI phypattern partition

2024-02-23 Thread Jonathan Humphreys
The phy calibration pattern partition isn't needed as the Cadence driver isn't calibrating the phys. Signed-off-by: Jonathan Humphreys --- arch/arm/dts/k3-j721e-sk-u-boot.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/k3-j721e-sk-u-boot.dtsi

[PATCH v2 1/2] configs: am64x_evm_*_defconfig: Enable OSPI support

2024-02-23 Thread Jonathan Humphreys
Add configs to support OSPI flash. Signed-off-by: Jonathan Humphreys --- configs/am64x_evm_a53_defconfig | 14 -- configs/am64x_evm_r5_defconfig | 14 -- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/configs/am64x_evm_a53_defconfig

Re: [PATCH 2/2] arm: dts: k3-am642-evm/sk: Enable OSPI support in SPL

2024-02-23 Thread Jon Humphreys
Tom Rini writes: > On Thu, Feb 22, 2024 at 11:24:38PM -0600, Jonathan Humphreys wrote: >> Add bootph DT tags to enable OSPI in SPL. >> Set OSPI regs for R5 SPL to address OSPI's boot region. >> >> Signed-off-by: Jonathan Humphreys >> --- >> arch/arm/dts/k3-am642-evm-u-boot.dtsi | 24

[PATCH v2 2/2] arm: dts: k3-am642-evm/sk: Enable OSPI support in SPL

2024-02-23 Thread Jonathan Humphreys
Add bootph DT tags to enable OSPI in SPL. Set OSPI regs for R5 SPL to address OSPI's boot region. Signed-off-by: Jonathan Humphreys --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 16 arch/arm/dts/k3-am642-r5-evm.dts | 5 + arch/arm/dts/k3-am642-r5-sk.dts | 5 +

[PATCH v2 0/2] enable OSPI support on AM64x

2024-02-23 Thread Jonathan Humphreys
This series enables OSPI support for AM64x by setting the proper configs, and DT entries for SPL. fixes: fa09b12dc5f6 ("arm: ti: k3: Resync dts files and bindings with Linux Kernel v5.14") Changes from v1: - removed the OSPI phy pattern partition, as it wasn't used v1:

Re: [PATCH v1 6/7] toradex: common: Use random mac address if toradex config block is missing

2024-02-23 Thread Francesco Dolcini
On Tue, Feb 20, 2024 at 07:29:25PM +0100, Francesco Dolcini wrote: > From: Emanuele Ghidoli > > Set CONFIG_NET_RANDOM_ETHADDR=y, which sets random eth address in > case there is no toradex config block programmed. > In case of missing toradex config block the generated mac address was > always

[PATCH v2 00/16] rockchip: add support for SARADCv2 and RK806 PMIC and regulators

2024-02-23 Thread Quentin Schulz
The RK3588 has a new IP for SARADC compared to older SoCs of the same vendor but most of the boilerplate is shared, so rockchip-saradc.c driver is adapted instead of creating a new one. Because the SARADC requires a vref-supply which is commonly coming from a regulator of the RK806 PMIC, support

[PATCH v2 09/16] rockchip: adc: rockchip-saradc: factor out start_channel callback

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz SARADC v1 and v2 have a different way of starting a channel, therefore let's abstract this function so that it can be provided from the udevice.data pointer. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- drivers/adc/rockchip-saradc.c | 30

[PATCH v2 07/16] rockchip: adc: rockchip-saradc: use union for preparing for v2

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz The registers are entirely different between SARADC v1 and SARADC v2, so let's prepare to add another struct for accessing v2 registers by adding a union. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- drivers/adc/rockchip-saradc.c | 23 +-- 1

[PATCH v2 04/16] regulator: rk8xx: add indirection level for some ldo callbacks

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz By passing a rk8xx_reg_info directly to the internal get_value, it'd be possible to call this same function with a logic for getting the rk8xx_reg_info different from the current get_ldo_reg, e.g. for NLDO and PLDO support for RK806. No logic change is expected. Cc:

[PATCH v2 03/16] regulator: rk8xx: fix SWITCH enable on RK809

2024-02-23 Thread Quentin Schulz
From: William Wu On RK809 in PMIC_POWER_ENX registers, in order to set or clear a bit N, the bit at offset N + 4 needs to be set otherwise nothing is done. This fixes the inability to modify the SWITCH state on RK809. Cc: Quentin Schulz Signed-off-by: William Wu [reworded commit log]

[PATCH v2 2/7] toradex: Remove not necessary model prints from checkboard()

2024-02-23 Thread Francesco Dolcini
From: Emanuele Ghidoli Sysinfo prints the model obtained from device tree, checkboard() take info from hardware and tdx_checkboard() use the model retrieved by toradex config block. Remove the print from checkboard() function because the model obtained from toradex config block is the most

[PATCH v2 1/7] toradex: Fix recursive call to checkboard

2024-02-23 Thread Francesco Dolcini
From: Emanuele Ghidoli Since checkboard() is used instead of show_board_info(), in case toradex config block is missing or malformed, checkboard is recursively called. It prints a long list of "MISSING TORADEX CONFIG BLOCK" till the stack is full. Fixes: edb0ecd18708 ("toradex: Use checkboard()

[PATCH v2 0/7] toradex: fix reset and hardware detection regressions

2024-02-23 Thread Francesco Dolcini
From: Francesco Dolcini This series fixes two regressions affecting multiple Toradex boards (i.MX, TI and TEGRA based) and targets the current master, e.g. v2024.04 release. U-Boot `reset` command is broken on all Tordex i.MX6* based SoMs since v2023.07, this series fixes it enabling the

[PATCH v2 4/7] arm: dts: Refactor device trees using "&{/aliases}" syntax

2024-02-23 Thread Francesco Dolcini
From: Emanuele Ghidoli Use the common syntax to define aliases. Acked-by: Marcel Ziswiler Tested-by: Marcel Ziswiler # Verdin iMX8M Plus Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini --- .../dts/imx6dl-colibri-eval-v3-u-boot.dtsi| 18 -

[PATCH v1 5/5] power: regulator: tps65941: Add TPS65224 PMIC regulator support

2024-02-23 Thread Bhargav Raviprakash
Reuse TPS65941 regulator driver to adds support for TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where BUCK1 and BUCK2 can be configured in dual phase mode. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 279 ++- 1 file changed, 266

[PATCH v2 6/7] toradex: common: Use random mac address if toradex config block is missing

2024-02-23 Thread Francesco Dolcini
From: Emanuele Ghidoli Set CONFIG_NET_RANDOM_ETHADDR=y, which sets random eth address in case there is no toradex config block programmed. In case of missing toradex config block the generated mac address was always the same, linked to serial number 0. Use random generated mac address instead.

[PATCH v1 2/5] power: pmic: tps65941: Add TI TPS65224 PMIC

2024-02-23 Thread Bhargav Raviprakash
Adds compatible and data field values of TPS65224 driver in TPS65941 PMIC driver. Signed-off-by: Bhargav Raviprakash --- drivers/power/pmic/tps65941.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c index 727b42747a..ef63eb733a

[PATCH v2 02/16] regulator: rk8xx: remove unused functions

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz Those two functions had their last user removed in commit f9c68a566c4d ("rockchip: phycore_rk3288: remove phycore_init() function") part of v2023.01 release, so let's do some cleanup here. Cc: Quentin Schulz Signed-off-by: Quentin Schulz ---

[PATCH v2 01/16] rockchip: spi: rk_spi: do not write bytes when in read-only mode

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz The read-only mode is currently supported but only for 16b-aligned buffers. For unaligned buffers, the last byte will be read in RW mode right now, which isn't what is desired. Instead, let's put the controller back into RO mode for that last byte and skip any write in the

[PATCH v2 06/16] pmic: reword help text

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz Reword the help text for the pmic read and pmic write commands to better match what's expected from the user. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- cmd/pmic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pmic.c b/cmd/pmic.c

[PATCH v2 16/16] rockchip: boot_mode: fix rockchip_dnl_key_pressed requiring ADC support

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz ADC support is implied by the Rockchip arch Kconfig but that means it should be possible to disable ADC support and still be able to build. However the weak implementation of rockchip_dnl_key_pressed() currently blindly use functions from the ADC subsystem which do not

[PATCH v2 14/16] adc: add missing depends on ADC for controller drivers

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz The ADC controller drivers are obviously all depending on ADC symbol being selected. While they don't seem to fail to build without, they won't be useful without that symbol selected, so let's make sure the options aren't shown in menuconfig when ADC isn't selected. Cc:

[PATCH v2 12/16] power: pmic: rk8xx: fix duplicate prompt

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz SPL_PMIC_RK8XX and PMIC_RK8XX both share the same prompt making it difficult to know at first glance in menuconfig what's for what, let's fix this by adding "in SPL" at the end of the prompt for the SPL symbol. Cc: Quentin Schulz Signed-off-by: Quentin Schulz ---

[PATCH v2 10/16] rockchip: adc: rockchip-saradc: factor out stop callback

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz SARADC v2 doesn't have a stop mechanism once in single mode. In series conversion, the logic is different anyway. Therefore, let's abstract this function so that it can be provided from the udevice.data pointer. Cc: Quentin Schulz Signed-off-by: Quentin Schulz ---

[PATCH v2 05/16] power: rk8xx: add support for RK806

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz This adds support for RK806, only the SPI variant has been tested. The communication "protocol" over SPI is the following: - write three bytes: - 1 byte: [0:3] length of the payload, [6] Enable CRC, [7] Write - 1 byte: LSB register address - 1 byte: MSB register

[PATCH v2 15/16] button: add missing ADC dependency for BUTTON_ADC

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz The BUTTON_ADC symbol guards the compilation of button-adc driver whose name very well makes it explicit that it requires ADC support to be enabled. Fix build issue of button-adc driver when ADC support isn't enabled by making sure it cannot be built without ADC support.

[PATCH v2 13/16] rockchip: jaguar-rk3588: enable SARADC and derivatives

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz The SARADC is used on Jaguar for multiple things: - channel 0 is used (at runtime) as a BIOS button, - channel 2 is exposed on the Mezzanine connector for customer specific logic, - channel 5 and 6 are used for identification, Since the SARADC requires a vref-supply

[PATCH v1 4/5] power: regulator: tps65941: use function callbacks for conversion ops

2024-02-23 Thread Bhargav Raviprakash
Use function callbacks for volt2val, val2volt and slewrate lookups. This makes it easier to add support for TPS65224 PMIC regulators. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 61 +++- 1 file changed, 48 insertions(+), 13 deletions(-)

[PATCH v2 7/7] toradex: imx6*: fix reset using wdt-reboot driver

2024-02-23 Thread Francesco Dolcini
From: Parth Pancholi commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") introduced a regression that 'reset' command unable to reset imx6 and imx6ull based Toradex's modules in the u-boot. This change enables a watchdog-based sysreset driver for Toradex's colibri-imx6,

[PATCH v1 3/5] power: regulator: tps65941: Added macros for BUCK ID

2024-02-23 Thread Bhargav Raviprakash
Adds macros for buck and ldo ids and switched to using switch case instead of if else in probe functions. Helps in adding support for TPS65224 PMIC. Signed-off-by: Bhargav Raviprakash --- drivers/power/regulator/tps65941_regulator.c | 54 +++- 1 file changed, 42 insertions(+),

Re: [PATCH v1 4/5] power: regulator: tps65941: use function callbacks for conversion ops

2024-02-23 Thread Dhruva Gole
On Feb 23, 2024 at 14:42:11 +0530, Bhargav Raviprakash wrote: > Use function callbacks for volt2val, val2volt and slewrate lookups. > This makes it easier to add support for TPS65224 PMIC regulators. > > Signed-off-by: Bhargav Raviprakash > --- > drivers/power/regulator/tps65941_regulator.c |

[PATCH v2 11/16] rockchip: adc: rockchip-saradc: add support for RK3588

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz This adds support for the SARADCv2 found on RK3588. There is no stop callback as it is currently configured in single conversion mode, where the ADC is powered down after a single conversion has been made. Due to what seems to be a silicon bug, a controller reset needs to

[PATCH v2 08/16] rockchip: adc: rockchip-saradc: factor out channel_data callback

2024-02-23 Thread Quentin Schulz
From: Quentin Schulz SARADC v1 and v2 have a different way of reading data, therefore let's abstract this function so that it can be provided from the udevice.data pointer. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- drivers/adc/rockchip-saradc.c | 37

[PATCH v2 5/7] toradex: common: Add sysinfo driver

2024-02-23 Thread Francesco Dolcini
From: Emanuele Ghidoli This commit introduces support for the Toradex sysinfo driver in U-Boot, which uses information from Toradex config block to print correct board model. In case the Toradex config block is not present sysinfo prints the model of the board provided by device tree removing

[PATCH v2 3/7] toradex: common: Use SETTINGS_R event to read toradex config block

2024-02-23 Thread Francesco Dolcini
From: Emanuele Ghidoli Use SETTINGS_R event to read toradex config block and checkboard() to print board info. Acked-by: Marcel Ziswiler Tested-by: Marcel Ziswiler # Verdin iMX8M Plus Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini --- board/toradex/common/tdx-common.c |

[PATCH v1 0/5] Add support for TI TPS65224 PMIC

2024-02-23 Thread Bhargav Raviprakash
TPS65224 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ADC, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC can communicate through the I2C. Data Sheet for TPS65224:

[PATCH v1 1/5] power: tps65941: Add macros of TPS65224 PMIC

2024-02-23 Thread Bhargav Raviprakash
Re-use the TPS65941 PMIC driver for TPS65224 PMIC. Add additional macros of TPS65224 to aid in the driver re-use. Signed-off-by: Bhargav Raviprakash --- include/power/tps65941.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/power/tps65941.h

[PATCH 1/1] opos6uldev: Convert to watchdog driver model

2024-02-23 Thread Sébastien Szymanski
Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused the 'reset' command in U-Boot to not cause a board reset. Fix it by switching to the watchdog driver model via sysreset, which is the preferred method for implementing the watchdog reset. Signed-off-by: Sébastien Szymanski

Re: [PATCH v1 5/5] power: regulator: tps65941: Add TPS65224 PMIC regulator support

2024-02-23 Thread Dan Carpenter
On Fri, Feb 23, 2024 at 02:42:12PM +0530, Bhargav Raviprakash wrote: > + int mask = TPS65224_LDO_VOLT_MASK >> 1; > + > + if (idx > 0) { > + base = TPS65224_LDO23_VOLT_MIN; > + max = TPS65224_LDO23_VOLT_MAX; > + reg_base = TPS65224_LDO23_VOLT_MIN_HEX; > +

Re: [PATCH] imx53-qsb: Convert to watchdog driver model

2024-02-23 Thread Jason Liu
From: Fabio Estevam Sent: Thursday, February 22, 2024 1:39 AM To: sba...@denx.de Cc: Jason Liu ; u-boot@lists.denx.de ; Fabio Estevam Subject: [PATCH] imx53-qsb: Convert to watchdog driver model Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()")

[PATCH 0/2] enable OSPI support on AM64x

2024-02-23 Thread Jonathan Humphreys
This series enables OSPI support for AM64x by setting the proper configs, and DT entries for SPL. fixes: fa09b12dc5f6 ("arm: ti: k3: Resync dts files and bindings with Linux Kernel v5.14") Jonathan Humphreys (2): configs: am64x_evm_*_defconfig: Enable OSPI support arm: dts: k3-am642-evm/sk:

[PATCH 2/2] arm: dts: k3-am642-evm/sk: Enable OSPI support in SPL

2024-02-23 Thread Jonathan Humphreys
Add bootph DT tags to enable OSPI in SPL. Set OSPI regs for R5 SPL to address OSPI's boot region. Signed-off-by: Jonathan Humphreys --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 24 arch/arm/dts/k3-am642-r5-evm.dts | 5 + arch/arm/dts/k3-am642-r5-sk.dts |

[PATCH] clk: Revise help text for clk_get_parent_rate()

2024-02-23 Thread Alexander Dahl
The function returns the rate of the parent clock, the previous text made no sense at all. Fixes: 4aa78300a025 ("dm: clk: Define clk_get_parent_rate() for clk operations") Signed-off-by: Alexander Dahl --- include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/1] opos6uldev: Convert to watchdog driver model

2024-02-23 Thread Fabio Estevam
On Fri, Feb 23, 2024 at 8:28 AM Sébastien Szymanski wrote: > > Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused > the 'reset' command in U-Boot to not cause a board reset. > > Fix it by switching to the watchdog driver model via sysreset, which > is the preferred method for

Re: [PATCH v2 0/7] toradex: fix reset and hardware detection regressions

2024-02-23 Thread Fabio Estevam
On Fri, Feb 23, 2024 at 6:11 AM Francesco Dolcini wrote: > > From: Francesco Dolcini > > This series fixes two regressions affecting multiple Toradex boards > (i.MX, TI and TEGRA based) and targets the current master, e.g. v2024.04 > release. > > U-Boot `reset` command is broken on all Tordex

[PATCH 4/5] mmc: zynq_sdhci: disable OTAPDLYENA

2024-02-23 Thread Steffen Dirkwinkel
From: Steffen Dirkwinkel This ports a change from arm-trusted-firmware: commit: fe1fa205fca4d1dd4a1b1755942956dbca65d573 in arm-trusted-firmware (https://github.com/ARM-software/arm-trusted-firmware/commit/fe1fa205fca4d1dd4a1b1755942956dbca65d573) The ITAPDLYENA change is in another commit. We

[PATCH 5/5] zynqmp: boot without delay in psu_uboot_init

2024-02-23 Thread Steffen Dirkwinkel
From: Steffen Dirkwinkel This seems to have been required for sd init. I don't need it anymore with correct tapdelay / dll reset handling, but can't be sure this works on all platforms. Signed-off-by: Steffen Dirkwinkel --- board/xilinx/zynqmp/zynqmp.c | 3 --- 1 file changed, 3

[PATCH 1/5] configs: zynqmp: don't remove power-domains for spl device tree

2024-02-23 Thread Steffen Dirkwinkel
From: Steffen Dirkwinkel These are used during sdhci initialization as functions are called with node_id even if we're not talking to the firmware. Signed-off-by: Steffen Dirkwinkel --- configs/xilinx_zynqmp_virt_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] cmd: eeprom: Fix config dependency

2024-02-23 Thread Ivan Orlov
On 22/02/2024 17:46, Tom Rini wrote: On Mon, Feb 19, 2024 at 06:18:38PM +, Ivan Orlov wrote: We should have CONFIG_DM_I2C or CONFIG_(SPL_)SYS_I2C_LEGACY enabled in order for `cmd/eeprom.c` to compile as it depends on the i2c functions which are not compiled otherwise. Update the Kconfig

[PATCH 3/5] mmc: zynq_sdhci: disable ITAPDLYENA for zero itap_delay

2024-02-23 Thread Steffen Dirkwinkel
From: Steffen Dirkwinkel This ports a change from arm-trusted-firmware: commit: fe1fa205fca4d1dd4a1b1755942956dbca65d573 in arm-trusted-firmware (https://github.com/ARM-software/arm-trusted-firmware/commit/fe1fa205fca4d1dd4a1b1755942956dbca65d573) The OTAPDLYENA change from there will be in

[PATCH 2/5] mmc: zynq-sdhci: refactor tapdelay settings

2024-02-23 Thread Steffen Dirkwinkel
From: Steffen Dirkwinkel Previously we were setting in tapdelay for SD1 every time even if SD0 was requested. The SD tapdelay settings are shifted by 16 bits between SD0 and SD1. We can use that to make our tapdelay setup simpler. This is also how it currently works in arm-trusted-firmware.

[PATCH 1/2] configs: am64x_evm_*_defconfig: Enable OSPI support

2024-02-23 Thread Jonathan Humphreys
Add configs to support OSPI flash. Signed-off-by: Jonathan Humphreys --- configs/am64x_evm_a53_defconfig | 14 -- configs/am64x_evm_r5_defconfig | 14 -- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/configs/am64x_evm_a53_defconfig

[PATCH v3 1/1] Makefile: pass -undef option to cmd_gen_envp

2024-02-23 Thread Sébastien Szymanski
Without the '-undef' option, the 'linux' string in .env files is replaced with the string '1 '. For example, in the board/armadeus/opos6uldev/opos6uldev.env file, kernelimg=opos6ul-linux.bin becomes kernelimg=opos6ul-1 .bin in the include/generated/env.in file. That's because 'linux' is a

Re: [PATCH] clk: Revise help text for clk_get_parent_rate()

2024-02-23 Thread Sean Anderson
On 2/23/24 07:01, Alexander Dahl wrote: The function returns the rate of the parent clock, the previous text made no sense at all. Fixes: 4aa78300a025 ("dm: clk: Define clk_get_parent_rate() for clk operations") Signed-off-by: Alexander Dahl --- include/clk.h | 2 +- 1 file changed, 1