Re: [PATCH v4] ARM: dts: imx7d-sdb-u-boot: Fix usdhc1 UHS operation

2023-04-12 Thread Peng Fan
On 4/12/2023 8:41 PM, Fabio Estevam wrote: From: Fabio Estevam Commit 1a7904fdfa7d ("mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps") exposed the following SD card error: U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300) CPU: Freescale i.MX7D rev1.0 1000 MH

[PATCH v2 8/9] riscv: spl: Remove relocation sections

2023-04-12 Thread Bin Meng
U-Boot SPL is not relocable. Drop these relocation sections. Signed-off-by: Bin Meng --- Changes in v2: - fix SPL build error arch/riscv/cpu/start.S| 2 ++ arch/riscv/cpu/u-boot-spl.lds | 25 - 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/ar

[PATCH v2 5/9] makefile: riscv: Drop useless argument of prelink-riscv

2023-04-12 Thread Bin Meng
The argv[2] is never used in prelink-riscv. Drop it. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5083beae35..eaaf7d267d 100644 --- a/Makefile +++ b/Makefile @@ -

[PATCH v2 9/9] riscv: Update alignment for some sections in linker scripts

2023-04-12 Thread Bin Meng
Some sections in the linker scripts are aligned to 4 bytes, which may cause misaligned exception on some platforms, e.g.: clearing the bss section on 64-bit hardware if __bss_start does not start from a naturally 8 bytes aligned address. Signed-off-by: Bin Meng --- (no changes since v1) arch/

[PATCH v2 7/9] riscv: Avoid updating the link register

2023-04-12 Thread Bin Meng
board_init_r does not return for U-Boot SPL hence there is no need to update the link register when jumping to board_init_r. Signed-off-by: Bin Meng --- Changes in v2: - new patch: "riscv: Avoid updating the link register" arch/riscv/cpu/start.S | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH v2 6/9] riscv: Change to use positive offset to access relocation entries

2023-04-12 Thread Bin Meng
The codes currently skip the very first relocation entry, and have an inaccurate comment "skip first reserved entry" indicating that the first entry is reserved, but later it references the elements in the first relocation entry using a minus offset. Change to use a positive offset so that there i

[PATCH v2 4/9] tools: prelink-riscv: Unmap the ELF image when done

2023-04-12 Thread Bin Meng
The codes forget to call munmap() to unmap the ELF image that was mapped by previous mmap(). Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) tools/prelink-riscv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/prelink-riscv.c b/tools/prelink-riscv.c index

[PATCH v2 2/9] riscv: Optimize loading relocation type

2023-04-12 Thread Bin Meng
't5' already contains relocation type so don't bother reloading it. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) arch/riscv/cpu/start.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index 3c8344c345..879bdc1803 1

[PATCH v2 3/9] tools: prelink-riscv: Cosmetic style fixes

2023-04-12 Thread Bin Meng
Some coding convention fixes. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) tools/prelink-riscv.inc | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/prelink-riscv.inc b/tools/prelink-riscv.inc index f2b5467f5b..57c0f655d4 100644

[PATCH v2 1/9] riscv: Optimize source end address calculation in start.S

2023-04-12 Thread Bin Meng
The __bss_start is the source end address hence load its address directly into register 't2' for optimization. Signed-off-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v1) arch/riscv/cpu/start.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/riscv/cpu/

Re: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-12 Thread Svyatoslav Ryhel
чт, 13 квіт. 2023 р. о 02:07 Tom Warren пише: > > Svyatoslav, > > This series (patches 3 & 4, in particular) fails when applied to > u-boot-tegra/master TOT. Error snippet is below (from make > p2771--500_defconfig && make): > > CC arch/arm/mach-tegra/fuse.o > arch/arm/mach-tegra/fuse.c

[PATCH v2 4/4] board: asus: grouper: add Google Nexus 7 (2012) support

2023-04-12 Thread Svyatoslav Ryhel
Nexus 7 is a mini tablet computer co-developed by Google and Asus that runs the Android operating system. The Nexus 7 features a 7" display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB of internal storage. This patch brings support for all 3 known ASUS/Google devices: - Nexus 7 (2012

[PATCH v2 3/4] ARM: tegra: add SoC UID calculation function

2023-04-12 Thread Svyatoslav Ryhel
This is a small tool for calculation of SoC UID based on the same Linux function. It can be further used for generation of device unique data like mac address or exposing it as serial number. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed

[PATCH v2 2/4] configs: tegra-common-post: make PXE and DHCP boot targets optional

2023-04-12 Thread Svyatoslav Ryhel
From: Jonas Schwöbel Disabling the network related features in defconfig causes build to fail so make them optional. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Jonas Schwöbel Signed-off-by: Svyatoslav Ryhel --- include/co

[PATCH v2 1/4] configs: tegra-common-post: add GPIO keyboard as STDIN device

2023-04-12 Thread Svyatoslav Ryhel
GPIO keyboard is used on many newly upstreamed devices. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff -

[PATCH v2 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-12 Thread Svyatoslav Ryhel
This patchset adds support for native use of U-Boot on ASUS/Google Nexus 7 (2012), aka grouper/tilapia as a replacement of vendor bootloader. Alongside device bringup tegra requires few small patches: - add gpio keyboard as stdin device - make networking boot options optional - add a small tool

Re: [PATCH V2 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-12 Thread Kever Yang
On 2023/4/8 05:32, Chris Morgan wrote: From: Chris Morgan Add a node for the trng found on RK3588 SoCs. Changes in V2: - None Signed-off-by: Chris Morgan Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff

Re: [PATCH V2 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-12 Thread Kever Yang
On 2023/4/8 05:32, Chris Morgan wrote: From: Chris Morgan This adds support for the TRNG found in the RK3588 SoC to the rockchip_rng driver so that it can be used for things such as seeding randomness to Linux. This code was taken wholesale from the Rockchip BSP U-Boot source located here: h

Re: [PATCH 2/2] configs: rk3399: add Radxa ROCK Pi 4 variants

2023-04-12 Thread Kever Yang
On 2023/4/8 17:11, FUKAUMI Naoki wrote: compared to ROCK Pi 4B, - ROCK Pi 4A: without Wi-Fi/BT - ROCK Pi 4A+: with OP1, without Wi-Fi/BT - ROCK Pi 4B+: with OP1 It will be better to re-use one defconfig all the board in one series, the peripheral difference like  Wi-Fi/BT are identified by the

Re: [PATCH 1/2] arm: dts: rk3399: rock-pi-4: sync with Linux 6.3-rc5

2023-04-12 Thread Kever Yang
On 2023/4/8 17:11, FUKAUMI Naoki wrote: sync *.dts{,i} files for Radxa ROCK Pi 4 series with Linux 6.3-rc5. Signed-off-by: FUKAUMI Naoki Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/Makefile | 2 + arch/arm/dts/rk3399-rock-pi-4.dtsi| 22

Re: [PATCH] arm: dts: rk356x: Makefile: sort

2023-04-12 Thread Kever Yang
On 2023/4/8 17:33, FUKAUMI Naoki wrote: sort alphanumerically. Signed-off-by: FUKAUMI Naoki Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index c160e884

Re: [PATCH v2] rockchip: rk3328: Add support for FriendlyARM NanoPi R2C

2023-04-12 Thread Kever Yang
On 2023/4/11 18:14, Tianling Shen wrote: The NanoPi R2C is a minor variant of NanoPi R2S with the on-board NIC chip changed from rtl8211e to yt8521s, and otherwise identical to R2S. The device tree is taken from the kernel linux-next branch: https://git.kernel.org/pub/scm/linux/kernel/git/next

Re: [PATCH 2/2] rockchip: handle peripheral as well as otg dr_mode

2023-04-12 Thread Kever Yang
On 2023/4/12 19:52, John Keeping wrote: The OTG port is identified by inspecting the "dr_mode" property which is expected to be "otg" for this port. But it will work just as well as a device controller when dr_mode is set to "peripheral", which may be required if the mode detection pin is not

Re: [PATCH 1/2] rockchip: use standard dr_mode parsing function

2023-04-12 Thread Kever Yang
On 2023/4/12 19:52, John Keeping wrote: Instead of duplicating the string values here, use usb_get_dr_mode() to handle the property lookup and converting the values to an enum. This is implemented with a switch in preparation for the next patch which adds extra handling for peripheral mode. S

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-04-12 Thread yanhong wang
On 2023/4/13 1:50, Torsten Duwe wrote: > On Wed, 29 Mar 2023 18:16:20 +0800 > yanhong wang wrote: > >> >> >> On 2023/3/29 17:41, Torsten Duwe wrote: >> > On Wed, 29 Mar 2023 11:42:07 +0800 >> > Yanhong Wang wrote: >> > >> >> v5: >> > [...] >> >> - Splitted starfive_visionfive2_defconfig in

RE: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-12 Thread Tom Warren
Svyatoslav, This series (patches 3 & 4, in particular) fails when applied to u-boot-tegra/master TOT. Error snippet is below (from make p2771--500_defconfig && make): CC arch/arm/mach-tegra/fuse.o arch/arm/mach-tegra/fuse.c:14:10: fatal error: asm/arch/clock.h: No such file or directo

Re: [PATCH v8 00/13] bootstd: Convert rockchip and add various fixes and tweaks

2023-04-12 Thread Simon Glass
Hi Tom, On Sun, 9 Apr 2023 at 18:07, Tom Rini wrote: > > On Sun, Apr 09, 2023 at 08:18:31AM +1200, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 9 Apr 2023 at 03:14, Tom Rini wrote: > > > > > > On Sat, Apr 08, 2023 at 12:08:37PM +1200, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Sat,

[PATCH] pinctrl: mediatek: set R1/R0 in case pullen/pullsel succeeded

2023-04-12 Thread Daniel Golle
Commit dafe0fbfb0f3 ("pinctrl: mediatek: rewrite mtk_pinconf_set and related functions") changed the logic deciding to set R0 and R1 registers for V1 devices. Before: /* Also set PUPD/R0/R1 if the pin has them */ err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_PUPD, !pullup);

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-12 Thread Heinrich Schuchardt
Am 12. April 2023 17:53:23 MESZ schrieb Abdellatif El Khlifi : >On Wed, Apr 12, 2023 at 04:02:43PM +0200, Heinrich Schuchardt wrote: >> On 4/12/23 11:42, Abdellatif El Khlifi wrote: >> > Provide armffa command showcasing the use of the U-Boot FF-A support >> > >> > armffa is a command showcasi

[PATCH v1 4/4] board: asus: grouper: add Google Nexus 7 (2012) support

2023-04-12 Thread Svyatoslav Ryhel
Nexus 7 is a mini tablet computer co-developed by Google and Asus that runs the Android operating system. The Nexus 7 features a 7" display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB of internal storage. This patch brings support for all 3 known ASUS/Google devices: - Nexus 7 (2012

[PATCH v1 3/4] ARM: tegra: add SoC UID calculation function

2023-04-12 Thread Svyatoslav Ryhel
This is a small tool for calculation of SoC UID based on the same Linux function. It can be further used for generation of device unique data like mac address or exposing it as serial number. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed

[PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-12 Thread Svyatoslav Ryhel
This patchset adds support for native use of U-Boot on ASUS/Google Nexus 7 (2012), aka grouper/tilapia as a replacement of vendor bootloader. Alongside device bringup tegra requires few small patches: - add gpio keyboard as stdin device - make networking boot options optional - add a small tool

[PATCH v1 2/4] configs: tegra-common-post: make PXE and DHCP boot targets optional

2023-04-12 Thread Svyatoslav Ryhel
From: Jonas Schwöbel Disabling the network related features in defconfig causes build to fail so make them optional. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Jonas Schwöbel Signed-off-by: Svyatoslav Ryhel --- include/co

[PATCH v1 1/4] configs: tegra-common-post: add GPIO keyboard as STDIN device

2023-04-12 Thread Svyatoslav Ryhel
GPIO keyboard is used on many newly upstreamed devices. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff -

Re: [PATCH 1/2] xen: Add dependency on armv8

2023-04-12 Thread Marek Vasut
On 4/12/23 09:10, Michal Simek wrote: On 4/12/23 06:57, Marek Vasut wrote: On 4/11/23 13:23, Michal Simek wrote: Xen core calls HYPERVISOR_memory_op() in map_shared_info() which is just in xen_init() called from init_sequence_r[]. Xen can run only on armv8 where HVC calls are implemented th

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-04-12 Thread Torsten Duwe
On Wed, 29 Mar 2023 18:16:20 +0800 yanhong wang wrote: > > > On 2023/3/29 17:41, Torsten Duwe wrote: > > On Wed, 29 Mar 2023 11:42:07 +0800 > > Yanhong Wang wrote: > > > >> v5: > > [...] > >> - Splitted starfive_visionfive2_defconfig into > >> starfive_visionfive2_12a_defconfig > >> and st

[PATCH v3 2/3] test/py: IPv6 network discovery test

2023-04-12 Thread emohandesi
From: Ehsan Mohandesi Test the IPv6 network discovery feature if indicated by boardenv file. Signed-off-by: Ehsan Mohandesi Conflicts: configs/sandbox64_defconfig configs/sandbox_defconfig configs/sandbox_flattree_defconfig --- configs/sandbox64_defconfig| 2 +

[PATCH v3 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-12 Thread emohandesi
From: Ehsan Mohandesi In IPv6, the default gateway and prefix length are determined by receiving a router advertisement as defined in - https://www.rfc-editor.org/rfc/rfc4861. Add support for sending router solicitation (RS) and processing router advertisements (RA). If the RA has prefix info o

[PATCH v3 3/3] test: eth: IPv6 network discovery unit test

2023-04-12 Thread emohandesi
From: Ehsan Mohandesi Test router advertisement validation and processing functions. Signed-off-by: Ehsan Mohandesi --- test/dm/eth.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index ebf01d8..d0

[PATCH v3 0/3] Add IPv6 Network Discovery

2023-04-12 Thread emohandesi
From: Ehsan Mohandesi This series adds IPv6 network discovery to U-Boot. When an IPv6 command is run in U-Boot, it sends a router solicitation (RS) message to the network. The router on the network responds with a router advertisement (RA) message. Then U-Boot processes the RA message and sets th

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-12 Thread Abdellatif El Khlifi
On Wed, Apr 12, 2023 at 04:02:43PM +0200, Heinrich Schuchardt wrote: > On 4/12/23 11:42, Abdellatif El Khlifi wrote: > > Provide armffa command showcasing the use of the U-Boot FF-A support > > > > armffa is a command showcasing how to invoke FF-A operations. > > This provides a guidance to the cl

[PATCH] arm64: zynqmp: Fix User MTD partition size

2023-04-12 Thread Michal Simek
The commit c8630167e0dc ("arm64: zynqmp: Add mtd partition for secure OS storage area") didn't update User partition size that's why size was beyond actual device size. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-sm-k26-revA.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH v2 9/9] arm: dts: sdm845: add GENI SE QUP device tree node

2023-04-12 Thread Vladimir Zapolskiy
On modern Qualcomm platforms including SDM845 a GENI SE QUP IP description is supposed to be found in board device tree nodes, the version of the IP is used by the GENI UART driver to properly set an oversampling divider value, which impacts UART baudrate. The change touches dragonboard845c and st

[PATCH v2 7/9] serial: msm-geni: Use upstream Linux bindings

2023-04-12 Thread Vladimir Zapolskiy
From: Konrad Dybcio The name "se" is used in upstream Linux device trees and has been for ages, long before this U-Boot-ism was introduced. Same goes for the existing compatible. Get rid of that. [vzapolskiy: removed a ready change in the driver] Signed-off-by: Konrad Dybcio Signed-off-by: Vlad

[PATCH v2 8/9] serial: msm-geni: correct oversampling value based on QUP hardware revision

2023-04-12 Thread Vladimir Zapolskiy
Starting from QUP v2.5 the value of oversampling is changed from 32 to 16, keeping the old value on newer platforms results on wrong set UART IP clock divider, thus the asked baudrate does not correspond to the actually set with all the consequencies for a user. The change links the driver to a ne

[PATCH v2 6/9] serial: msm-geni: fix a compile time warning from msm_serial_setbrg()

2023-04-12 Thread Vladimir Zapolskiy
A compiler warns about a missing function prototype, which is valid and fixed by converting the function into static one, also fix interleaved local variable declarations and assignments. Signed-off-by: Vladimir Zapolskiy Fixes: 324df15a292e ("serial: qcom: add support for GENI serial driver") Re

[PATCH v2 5/9] serial: msm-geni: fix code indentation

2023-04-12 Thread Vladimir Zapolskiy
This a cosmetic change, which corrects code indentation in a few places. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio --- drivers/serial/serial_msm_geni.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/serial/serial_msm_geni.c b/drivers/s

[PATCH v2 4/9] serial: msm-geni: remove invalid se-clk clock name

2023-04-12 Thread Vladimir Zapolskiy
There is only one clock supplier to the serial IP, thus getting it by name is not needed, also note that "clock-names" property is not listed under doc/device-tree-bindings/serial/msm-geni-serial.txt, and finally "se-clk" clock name is invalid, if added, it shall get "se" value like it's already de

[PATCH v2 2/9] serial: msm-geni: remove redundant includes

2023-04-12 Thread Vladimir Zapolskiy
For whatever reason, likely a driver stub was copied from another driver, the driver contains a bunch of unnecessary and confusing includes like watchdog.h etc., the change reduces the list. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio --- drivers/serial/serial_msm_geni.c | 6 --

[PATCH v2 3/9] serial: msm-geni: Always bind before relocation

2023-04-12 Thread Vladimir Zapolskiy
From: Konrad Dybcio In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. [vzapolskiy: extracted the driver change from a combination with dts changes] Signed-off-by: Konrad Dybcio Signed-off-by: Vladimir Zapolskiy --- drivers/serial/

[PATCH v2 1/9] misc: add Qualcomm GENI SE QUP device driver

2023-04-12 Thread Vladimir Zapolskiy
This change adds a Qualcomm GENI SE QUP device driver as a wrapper for actually enabled and used serial devices found on a board. At the moment the driver is pretty simple, its intention is to populate childred devices and provide I/O mem read interface to them as clients, this is needed for GENI

[PATCH v2 0/9] serial: msm-geni: fix UART baudrate on modern platforms

2023-04-12 Thread Vladimir Zapolskiy
The changeset touches Qualcomm platforms, it adds a new quite trivial misc wrapper driver to be accessed by GENI UART to get information about a proper clock divisor. The change does not intend to break any currently supported Qualcomm platforms, there should be no need to update board config or d

[PATCH 1/1] efi_loader: remove unused efi_capsule_authenticate

2023-04-12 Thread Heinrich Schuchardt
Remove an unused implementation of efi_capsule_authenticate(). Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_capsule.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c index d5d3ede7ae..7a6f195cbc 100644 --- a/lib/ef

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-12 Thread Heinrich Schuchardt
On 4/12/23 11:42, Abdellatif El Khlifi wrote: Provide armffa command showcasing the use of the U-Boot FF-A support armffa is a command showcasing how to invoke FF-A operations. This provides a guidance to the client developers on how to call the FF-A bus interfaces. The command also allows to ga

Re: [PATCH v2 02/18] binman: ti-secure: Add support for TI signing

2023-04-12 Thread Neha Malcom Francis
Hi Simon On 06/04/23 00:07, Simon Glass wrote: kHi Neha, On Wed, 5 Apr 2023 at 00:13, Neha Malcom Francis wrote: The ti-secure entry contains certificate for binaries that will be loaded or booted by system firmware whereas the ti-secure-rom entry contains certificate for binaries that will

Re: [PATCH 1/6] misc: add Qualcomm GENI SE QUP device driver

2023-04-12 Thread Vladimir Zapolskiy
On 3/31/23 04:23, Konrad Dybcio wrote: On 30.03.2023 21:47, Vladimir Zapolskiy wrote: This change adds a Qualcomm GENI SE QUP device driver as a wrapper for actually enabled and used serial devices found on a board. At the moment the driver is pretty simple, its intention is to populate child

Re: [PATCH 6/6] serial: msm-geni: correct oversampling value based on QUP hardware revision

2023-04-12 Thread Vladimir Zapolskiy
Hi Konrad, On 3/31/23 04:36, Konrad Dybcio wrote: On 30.03.2023 21:47, Vladimir Zapolskiy wrote: Starting from QUP v2.5 the value of oversampling is changed from 32 to 16, keeping the old value on newer platforms results on wrong set UART IP clock divider, thus the asked baudrate does not cor

[PATCH v4] ARM: dts: imx7d-sdb-u-boot: Fix usdhc1 UHS operation

2023-04-12 Thread Fabio Estevam
From: Fabio Estevam Commit 1a7904fdfa7d ("mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps") exposed the following SD card error: U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300) CPU: Freescale i.MX7D rev1.0 1000 MHz (running at 792 MHz) CPU: Commercial tempera

[PATCH v3] ARM: dts: imx7d-sdb-u-boot: Fix usdhc1 UHS operation

2023-04-12 Thread Fabio Estevam
From: Fabio Estevam Commit 1a7904fdfa7d ("mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps") exposed the following SD card error: U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300) CPU: Freescale i.MX7D rev1.0 1000 MHz (running at 792 MHz) CPU: Commercial tempera

Re: [EXT] Re: [PATCH v2] mmc: fsl_esdhc: Do not set UHS_CAPS based on CONFIG_MMC_UHS_SUPPORT

2023-04-12 Thread Fabio Estevam
Hi Ye Li, On Wed, Apr 12, 2023 at 6:51 AM Ye Li wrote: > Remove the UHS_CAPS is wrong, it will cause UHS-I mode not work. > I just check the 7d sdb on upstream, it is due to imx7d-sdb.dts change. > When UHS is enabled in defconfig, the usdhc1 node in imx7d-sdb.dts does not > configure pad for V

[PATCH 1/2] rockchip: use standard dr_mode parsing function

2023-04-12 Thread John Keeping
Instead of duplicating the string values here, use usb_get_dr_mode() to handle the property lookup and converting the values to an enum. This is implemented with a switch in preparation for the next patch which adds extra handling for peripheral mode. Signed-off-by: John Keeping --- arch/arm/ma

[PATCH 2/2] rockchip: handle peripheral as well as otg dr_mode

2023-04-12 Thread John Keeping
The OTG port is identified by inspecting the "dr_mode" property which is expected to be "otg" for this port. But it will work just as well as a device controller when dr_mode is set to "peripheral", which may be required if the mode detection pin is not set up correctly and the device controller n

[PATCH] tools: env: update lock path in README

2023-04-12 Thread John Keeping
Commit aeb40f1166 ("tools: env: use /run to store lockfile") updated the path to the lockfile but did not update the documentation to match. Use the new path in the documentation. Fixes: aeb40f1166 ("tools: env: use /run to store lockfile") Signed-off-by: John Keeping --- tools/env/README | 2 +

Re: [PATCH v4 3/5] phy: add support for phy-supply

2023-04-12 Thread Jonas Karlman
Hi Eugen, On 2023-04-12 09:45, Eugen Hristev wrote: > On 4/12/23 09:53, Jonas Karlman wrote: >> Hi Eugen, >> >> On 2023-04-04 16:11, Eugen Hristev wrote: >>> Some phys require a phy-supply property that is a phandle to a regulator >>> that needs to be enabled for phy operations. >>> Implement basi

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-04-12 Thread Rasmus Villemoes
On 19/03/2023 20.29, Simon Glass wrote: > Hi Rasmus, > > On Sun, 19 Mar 2023 at 13:34, Rasmus Villemoes > wrote: >> >> On 18/03/2023 21.20, Simon Glass wrote: >> Now, the only way to be really sure is to build the world with/without this patch and check if any .dtb file changes, bu

[PATCH v2] watchdog: ftwdt010: return a previously deleted driver now ported to DM

2023-04-12 Thread Sergei Antonov
The ftwdt010 watchdog driver was deleted by commit 11232139e399 ("nds32: Remove the architecture") Return it to the codebase in a DM compatible form. Enable it in sandbox_defconfig to test compilability. Another platform using ftwdt010 will be submitted later. Signed-off-by: Sergei Antonov Revie

[PATCH V2 3/3] spi: cadence-quadspi: Reset CMD_CTRL Reg on cmd r/w completion

2023-04-12 Thread Dhruva Gole
If one leaves the CQSPI_REG_CMDCTRL in an unclean state this may cause issues in future command reads. This issue came to light when some flash reads in STIG mode were coming back dirty. Co-developed-by: Apurva Nandan Signed-off-by: Apurva Nandan Signed-off-by: Dhruva Gole --- drivers/spi/cade

[PATCH V2 2/3] spi: cadence-quadspi: Use STIG mode for all ops with small payload

2023-04-12 Thread Dhruva Gole
From: Apurva Nandan OSPI controller supports all types of op variants in STIG mode, only limitation being that the data payload should be less than 8 bytes when not using memory banks. STIG mode is more stable for operations that send small data payload and is more efficient than using DMA for f

[PATCH V2 1/3] spi: cadence-quadspi: Fix check condition for DTR ops

2023-04-12 Thread Dhruva Gole
From: Apurva Nandan buswidth and dtr fields in spi_mem_op are only valid when the corresponding spi_mem_op phase has a non-zero length. For example, SPI NAND core doesn't set buswidth when using SPI_MEM_OP_NO_ADDR phase. Fix the dtr checks in set_protocol() to ignore empty spi_mem_op phases, as

[PATCH V2 0/3] spi: cadence_qspi: Fixes for DTR ops and improve STIG support

2023-04-12 Thread Dhruva Gole
This series aims to address some critical bugs in the cadence qspi driver like the need to Flush the CMDCTRL reg after the execution due to a hardware limitation and also fixes the check conditions for DTR ops. previously posted: https://lore.kernel.org/u-boot/20230323164408.1043725-1-d-g...@ti.co

Re: [PATCH v10 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-04-12 Thread Abdellatif El Khlifi
On Fri, Mar 31, 2023 at 11:29:26AM +0300, Ilias Apalodimas wrote: > Hi Abdellatif, > > On Tue, Mar 28, 2023 at 05:11:56PM +0100, Abdellatif El Khlifi wrote: > > Add MM communication support using FF-A transport > > > > This feature allows accessing MM partitions services through > > EFI MM communi

Re: [PATCH v10 06/10] arm_ffa: introduce sandbox FF-A support

2023-04-12 Thread Abdellatif El Khlifi
On Sun, Apr 02, 2023 at 02:41:01PM +1200, Simon Glass wrote: > Hi Abdellatif, > > On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi < > abdellatif.elkhl...@arm.com> wrote: > > > > Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support > > > > Features of the sandbox FF-A support:

RE: [EXT] Re: [PATCH v2] mmc: fsl_esdhc: Do not set UHS_CAPS based on CONFIG_MMC_UHS_SUPPORT

2023-04-12 Thread Ye Li
Hi Fabio, > -Original Message- > From: U-Boot On Behalf Of Peng Fan > Sent: Wednesday, April 12, 2023 4:55 PM > To: Fabio Estevam ; Peng Fan > Cc: jh80.ch...@samsung.com; aford...@gmail.com; u-boot@lists.denx.de; > Fabio Estevam ; Bough Chen > Subject: [EXT] Re: [PATCH v2] mmc: fsl_esdh

Re: [PATCH v10 05/10] arm_ffa: introduce armffa command

2023-04-12 Thread Abdellatif El Khlifi
On Sun, Apr 02, 2023 at 02:40:34PM +1200, Simon Glass wrote: > Hi Abdellatif, > > On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi < > abdellatif.elkhl...@arm.com> wrote: > > > > Provide armffa command showcasing the use of the U-Boot FF-A support > > > > armffa is a command showcasing how to in

Re: [PATCH v4 1/3] starfive: pci: Add StarFive JH7110 pcie driver

2023-04-12 Thread Minda Chen
On 2023/4/12 5:29, Pali Rohár wrote: > Hello! > > On Tuesday 11 April 2023 09:02:07 Minda Chen wrote: >> +int starfive_pcie_config_write(struct udevice *udev, pci_dev_t bdf, >> + uint offset, ulong value, >> + enum pci_size_t size) >> +{ >> +

Re: [PATCH v4 1/3] starfive: pci: Add StarFive JH7110 pcie driver

2023-04-12 Thread Minda Chen
On 2023/4/11 13:20, Bin Meng wrote: > On Tue, Apr 11, 2023 at 11:53 AM Minda Chen > wrote: >> >> >> >> On 2023/4/11 10:55, Bin Meng wrote: >> > On Tue, Apr 11, 2023 at 9:03 AM Minda Chen >> > wrote: >> >> >> >> From: Mason Huo >> >> >> >> Add pcie driver for StarFive JH7110, the driver depe

[PATCH v11 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-04-12 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: update

[PATCH v11 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-04-12 Thread Abdellatif El Khlifi
Add MM communication support using FF-A transport This feature allows accessing MM partitions services through EFI MM communication protocol. MM partitions such as StandAlonneMM or smm-gateway secure partitions which reside in secure world. An MM shared buffer and a door bell event are used to ex

[PATCH v11 06/10] arm_ffa: introduce sandbox FF-A support

2023-04-12 Thread Abdellatif El Khlifi
Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support Features of the sandbox FF-A support: - Introduce an FF-A emulator - Introduce an FF-A device driver for FF-A comms with emulated Secure World - Provides test methods allowing to read the status of the inspected ABIs The sand

[PATCH v11 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-04-12 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Heinrich Schuchar

[PATCH v11 08/10] arm_ffa: introduce armffa command Sandbox test

2023-04-12 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v10: * replace CMD_RET_SUCCESS with 0 * replace CONFIG_SANDBOX_FFA with CONFIG_ARM_FFA_T

[PATCH v11 04/10] arm_ffa: introduce Arm FF-A support

2023-04-12 Thread Abdellatif El Khlifi
Add Arm FF-A support implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A v1.0) [1] describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This driver uses 64-b

[PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-12 Thread Abdellatif El Khlifi
Provide armffa command showcasing the use of the U-Boot FF-A support armffa is a command showcasing how to invoke FF-A operations. This provides a guidance to the client developers on how to call the FF-A bus interfaces. The command also allows to gather secure partitions information and ping thes

[PATCH v11 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-04-12 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Cc: Simon Glass --- Changelog: === v11: * use ut_asserteq_mem() MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uuid.c | 41 + 3 files changed, 47 insertions(+) cr

[PATCH v11 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-04-12 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_st

[PATCH v11 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-04-12 Thread Abdellatif El Khlifi
add support for x0-x17 registers used by the SMC calls In SMCCC v1.2 [1] arguments are passed in registers x1-x17. Results are returned in x0-x17. This work is inspired from the following kernel commit: arm64: smccc: Add support for SMCCCv1.2 extended input/output registers [1]: https://docume

[PATCH v11 00/10] introduce Arm FF-A support

2023-04-12 Thread Abdellatif El Khlifi
Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. FF-A describes interfaces (ABIs) that standardize communication between the Secure World and Normal World. These interfaces enable a pair of software sandboxes to communicate with each other. A sandbox aka partition could b

distro_boot vs. env-based bootmenu

2023-04-12 Thread Frank Wunderlich
Hi, i try to move from distro-boot (extlinux-config files) to an env-based bootmenu (builtin-environment) for my bananapi r2pro. basicly it works, but i see more bootmenu-entries than i have defined in my environment *** U-Boot Boot Menu *** 1. Boot from SD/EMMC. mmc 1:2 mm

Re: [PATCH] watchdog: ulp_wdog: guard reset_cpu with condition check

2023-04-12 Thread Peng Fan
On 4/11/2023 5:38 PM, Stefan Roese wrote: On 4/6/23 12:24, Peng Fan (OSS) wrote: From: Peng Fan There will be build error if CONFIG_SYSRESET is enabled, so guard the reset_cpu with condition check here Signed-off-by: Peng Fan ---   drivers/watchdog/ulp_wdog.c | 2 ++   1 file changed, 2 in

Re: [PATCH v2] mmc: fsl_esdhc: Do not set UHS_CAPS based on CONFIG_MMC_UHS_SUPPORT

2023-04-12 Thread Peng Fan
Hi Fabio, On 4/11/2023 9:41 PM, Fabio Estevam wrote: From: Fabio Estevam Since commit 1a7904fdfa7d ("mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps") the following SD card error is observed on an imx7d-sdb board: What kind card do you see the issue? Have you tried the other ca

Re: [PATCH] ARM: imx9: support env in fat and ext4

2023-04-12 Thread Peng Fan
On 4/12/2023 1:27 AM, Oleksandr Suvorov wrote: Change boot device logic to also allow environment stored in fat and in ext4 when booting from SD or eMMC. As the boot device check for SD and for eMMC was depending on ENV_IS_IN_MMC being defined, change the ifdef blocks at env_get_location to u

[PATCH 1/1] cmd/sbi: display new extensions

2023-04-12 Thread Heinrich Schuchardt
OpenSBI already implements some extensions that are not ratified yet: * Debug Console Extension (DBCN) * System Suspend Extension (SUSP) * Collaborative Processor Performance Control Extension (CPPC) Allow the sbi command to display these. Provide the FID definitions of the Debug Console Extensi

[PATCH 09/10] remoteproc: ti_k3_arm64: Change the startup of arm64 core

2023-04-12 Thread Manorit Chawdhry
Configuring master firewalls require the power of the cluster to be enabled before configuring them, change the load of rproc to configure the gtc clocks and start the cluster along with configuring the boot vector. The start of rproc will only start the core. Signed-off-by: Manorit Chawdhry ---

[PATCH 10/10] arm: mach-k3: common: re-locate authentication for atf/optee

2023-04-12 Thread Manorit Chawdhry
For setting up the master firewalls present in the K3 SoCs, the arm64 clusters need to be powered on. Re-locates the code for atf/optee authentication. Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/common.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) d

[PATCH 08/10] arm: dts: k3-am625-r5-sk: add a53 cluster power

2023-04-12 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am625-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am625-r5-sk.dts b/arch/arm/dts/k3-am625-r5-sk.dts index d39b334ed032..0103e4b2785a 100644 --

[PATCH 07/10] arm: dts: k3-am62a7-r5-sk: add a53 cluster power domain node

2023-04-12 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am62a7-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am62a7-r5-sk.dts b/arch/arm/dts/k3-am62a7-r5-sk.dts index 58b7c8ad050f..d26a91dcc7ed 100644

[PATCH 06/10] arm: dts: k3-am642-r5: add a53 cluster power domain node

2023-04-12 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am642-r5-evm.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-r5-evm.dts b/arch/arm/dts/k3-am642-r5-evm.dts index 7493362ac655..36e6fc4b5803 100644

[PATCH 05/10] arm: dts: k3-am642-r5-sk: add a53 cluster power domain node

2023-04-12 Thread Manorit Chawdhry
adds a53 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-am642-r5-sk.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-r5-sk.dts b/arch/arm/dts/k3-am642-r5-sk.dts index 97f44e220a3d..ba976a8d29d3 100644 --

[PATCH 04/10] arm: dts: k3-j7200-r5: add a72 cluster power domain node

2023-04-12 Thread Manorit Chawdhry
adds a72 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-board.

[PATCH 03/10] arm: dts: k3-j721e-r5: add a72 cluster power domain node

2023-04-12 Thread Manorit Chawdhry
adds a72 cluster to control from the rproc driver Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3-j721e-r5-common-proc-board.

  1   2   >