Re: [PATCH 1/1] buildman: update PyYAML requirement

2025-04-07 Thread Heinrich Schuchardt
On 4/7/25 08:47, Heinrich Schuchardt wrote: On Ubuntu 25.04 installing the dependency pyyaml 6.0 fails with License classifiers are deprecated Update PyYAML to the current release. Signed-off-by: Heinrich Schuchardt This patch only applies to origin/master. Buildman requirements do not

[PATCH v2 03/30] arm64: dts: rockchip: Add UART clocks for RK3528 SoC

2025-04-07 Thread Jonas Karlman
From: Yao Zi Add missing clocks in UART nodes for RK3528 SoC. Signed-off-by: Yao Zi Link: https://lore.kernel.org/r/20250217061142.38480-10-zi...@disroot.org Signed-off-by: Heiko Stuebner [ upstream commit: b9454434d0349223418f74fbfa7b902104da9bc5 ] (cherry picked from commit 12f69f638472dc9

[PATCH v2 24/30] adc: rockchip-saradc: Add support for RK3528

2025-04-07 Thread Jonas Karlman
The Successive Approximation ADC (SARADC) in RK3528 uses the v2 controller and support: - 10-bit resolution - Up to 1MS/s sampling rate - 4 single-ended input channels - Current consumption: 0.5mA @ 1MS/s Add support for the 4 channels of 10-bit resolution supported by SARADC in RK3528. Signed-of

Re: [PATCH v2 2/3] rockchip: rk3288: do not generate u-boot.rom anymore

2025-04-07 Thread Kever Yang
On 2025/2/21 00:56, Quentin Schulz wrote: From: Quentin Schulz This was only used on RK3288 Chromebooks and the EVB. If it follows the same pattern as for RK3399 Chromebooks where their maintainer (Simon) agreed[1] to removal of u-boot.rom on the basis that the generic u-boot-rockchip-spi.bi

Re: [PATCH v2 3/3] rockchip: avoid rebuilding most binaries for u-boot-rockchip-spi.bin

2025-04-07 Thread Kever Yang
On 2025/2/21 00:56, Quentin Schulz wrote: From: Quentin Schulz Essentially the only differences between u-boot-rockchip.bin and u-boot-rockchip-spi.bin are the formatting of idbloader.img which is handled by mkimage (via -T rkspi/rksd) and the offset at which U-Boot proper is flashed, the con

Re: [PATCH 5/6] rockchip: Add DFU to boot from USB for Radxa ROCK Pi E v1/v3

2025-04-07 Thread Kever Yang
On 2025/2/11 14:13, FUKAUMI Naoki wrote: Boot the Radxa ROCK Pi E v1/v3 from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.

Re: [PATCH 6/6] rockchip: Add DFU to boot from USB for Radxa ROCK Pi S

2025-04-07 Thread Kever Yang
On 2025/2/11 14:13, FUKAUMI Naoki wrote: Boot the Radxa ROCK Pi S from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ openssl rc4 -provider legacy -K 7c4e0304550509072d2c7b38170d1711 \ < mkimage-in-simple-bin.mkimag

[PATCH v2 08/30] arm64: dts: rockchip: Add SDHCI controller for RK3528

2025-04-07 Thread Jonas Karlman
The SDHCI controller in Rockchip RK3528 is similar to the one included in RK3588. Add device tree node for the SDHCI controller in RK3528. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250305214108.1327208-3-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: a98c

Re: [PATCH 1/2] acpi: select CONFIG_BLOBLIST

2025-04-07 Thread Ilias Apalodimas
On Mon, 7 Apr 2025 at 09:44, Heinrich Schuchardt wrote: > > Since commit 53d5a221632e ("emulation: Use bloblist to hold tables") > `make qemu-riscv64_smode_defconfig acpi.config && make` fails with > > qfw_acpi.c:146:(.text.evt_write_acpi_tables+0xc): > undefined reference to `bloblist_add

Re: [PATCH 08/11] rockchip: rk3568: Drop BOARD_LATE_INIT from target config

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: BOARD_LATE_INIT is already selected by ROCKCHIP_RK3568 so there is no need to select it under any board target config. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/rk3568/Kconfig | 1 - 1 file ch

Re: [PATCH v2 1/2] board: atmel: sama5d2_wlsom1_ek: Fix spurious serial output

2025-04-07 Thread Fabio Estevam
On Mon, Apr 7, 2025 at 3:39 AM Eugen Hristev wrote: > I am not convinced. > The purpose of this early UART would be to get output *before* the DM > code would enable clocks, pins, etc, for exactly that purpose, early > debug output. > So to remove all this and make the initialization rely on the

Re: [PATCH v2 19/30] arch: arm: rockchip: Add initial support for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Rockchip RK3528 is a ARM-based SoC with quad-core Cortex-A53. Add initial arch support for the RK3528 SoC. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v2: - Add FIREWALL_DDR handling to fix emmc/fspi/sdmmc/us

Re: [PATCH v2 22/30] mmc: rockchip_sdhci: Gate clock for glitch free phase switching

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Enable clock stopping to gate clock during phase code change to ensure glitch free phase switching in auto-tuning circuit. Fixes HS200 mode on RK3528. POST_CHANGE_DLY Time taken for phase switching and stable clock output. - Less than 4-cycle latency PR

Re: [PATCH v2 18/30] arm: dts: rockchip: Add rk3528-u-boot.dtsi

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Add a rk3528-u-boot.dtsi extending the basic dts/upstream rk3528.dtsi with bare minimum nodes to have a booting system from eMMC and SD-card. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v2: - Use more nodes fr

Re: [PATCH v2 20/30] mmc: rockchip_sdhci: Extend variant configuration

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: RK3528 and RK3576 use different tap and delay num for cmdout and strbin. Move tap and delay num for cmdout and strbin to driver data to prepare for adding new SoCs. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: No cha

Re: [PATCH v2 21/30] mmc: rockchip_sdhci: Add initial support for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Add initial support for SDHCI controller in RK3528. Only MMC Legacy and MMC High Speed (52MHz) mode is supported after this, more work is needed to get the faster HS200/HS400/HS400ES modes working. Variant tap and delay num is copied from vendor Linux t

Re: [PATCH v2 01/30] dt-bindings: clock: Document clock and reset unit of RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Yao Zi There are two types of clocks in RK3528 SoC, CRU-managed and SCMI-managed. Independent IDs are assigned to them. For the reset part, differing from previous Rockchip SoCs and downstream bindings which embeds register offsets into the IDs,

Re: [PATCH 09/11] rockchip: rk3588: Drop BOARD_LATE_INIT from target config

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: BOARD_LATE_INIT is already selected by ROCKCHIP_RK3588 so there is no need to select it under any board target config. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/rk3588/Kconfig | 20

Re: [PATCH 05/11] rockchip: Ensure device settings is defined before rk3588_common.h

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: Ensure ROCKCHIP_DEVICE_SETTINGS is defined before including rk3588_common.h in board include/configs files. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- include/configs/evb_rk3588.h | 4 ++-- include/configs/

Re: [PATCH v2 11/30] arm64: dts: rockchip: Add user button to Radxa E20C

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Radxa E20C has two buttons, one SARADC maskrom button and one GPIO user button. Add support for the user button using a gpio-keys node. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250304201642.831218-3-jo...@kwiboo.se Signed-off-by:

Re: [PATCH v2 30/30] board: rockchip: Add Radxa E20C

2025-04-07 Thread Kever Yang
On 2025/4/8 06:47, Jonas Karlman wrote: The Radxa E20C is an ultra-compact network computer with a RK3528A SoC that offers a wide range of networking capabilities. Features tested on a Radxa E20C v1.104: - SD-card boot - eMMC boot Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thank

Re: [PATCH v2 23/30] rockchip: otp: Add support for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Add support for the OTP controller in RK3528. The OTPC is similar to the OTPC in RK3568 and can use the same ops for reading OTP data. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: New patch --- drivers/misc/rockchip

Re: [PATCH v2 25/30] rng: rockchip: Add support for rkrng variant

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Lin Jinhan Add support for rkrng variant, used by e.g. RK3528 and RK3576. Imported from vendor U-Boot linux-6.1-stan-rkr5 tag with minor adjustments for mainline. Signed-off-by: Lin Jinhan Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang

Re: [PATCH v2 13/30] arm64: dts: rockchip: Enable onboard eMMC on Radxa E20C

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: The Radxa E20C may come with an onboard eMMC (8GB / 16GB / 32GB / 64GB). Enable support for the onboard eMMC on Radxa E20C. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250305214108.1327208-4-jo...@kwiboo.se Signed-off-by: Heiko Stueb

[PATCH v2 14/14] configs: airoha: an7581_evb: Enable Airoha SNFI SPI config

2025-04-07 Thread Christian Marangi
Enable Airoha SNFI SPI config to enable support for SNAND flash. Signed-off-by: Christian Marangi --- configs/an7581_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/an7581_evb_defconfig b/configs/an7581_evb_defconfig index fa41a4bca97..c74247e13db 100644 --- a/configs/a

[PATCH] configs: sama5d27_wlsom1_ek: Select CONFIG_NET_RANDOM_ETHADDR

2025-04-07 Thread Fabio Estevam
From: Fabio Estevam Currently, Ethernet fails to probe due to the lack of a valid MAC address: ``` Net: Error: ethernet@f8008000 No valid MAC address found. No ethernet found. ``` Select CONFIG_NET_RANDOM_ETHADDR so that a random MAC address is generated and Ethernet can work by default. Sig

Re: [PATCH 11/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3328

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3328.c | 2 +- 1 fi

Re: [PATCH v2 26/30] phy: rockchip-inno-usb2: Add support for clkout_ctl_phy

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: The 480m clk is controlled using regs in the PHY address space and not in the USB GRF address space on e.g. RK3528 and RK3506. Add a clkout_ctl_phy usb2phy_reg to handle enable/disable of the 480m clk on these SoCs. Signed-off-by: Jonas Karlman Review

Re: [PATCH v2 28/30] net: dwc_eth_qos_rockchip: Add support for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:47, Jonas Karlman wrote: Rockchip RK3528 has two Ethernet controllers based on Synopsys DWC Ethernet QoS IP. Add initial support for the RK3528 GMAC variant. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: New patch --- drivers/net/dwc_eth_qo

Re: [PATCH v2 27/30] phy: rockchip-inno-usb2: Add support for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:47, Jonas Karlman wrote: Add support for the two USB2.0 PHYs use in the RK3528 SoC. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: New patch --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 20 +++ 1 file changed, 20 inser

Re: [RESEND PATCH] clk: fix crash on clk_set_rate clean rate cache

2025-04-07 Thread Michael Nazzareno Trimarchi
Hi Il lun 7 apr 2025, 22:03 Fabio Estevam ha scritto: > On Mon, Apr 7, 2025 at 4:58 PM Michael Nazzareno Trimarchi > wrote: > > > Can you review it and pick if needed? > > This is not assigned to me in patchwork as it is not i.MX related. > > Someone else needs to handle it. > I was thinking t

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-07 Thread Tom Rini
On Mon, Apr 07, 2025 at 02:17:46PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 7 Apr 2025 at 12:22, Tom Rini wrote: > > > > On Mon, Apr 07, 2025 at 09:24:16AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 7 Apr 2025 at 08:31, Tom Rini wrote: > > > > > > > > On Mon, Apr 07, 2025

Re: [PATCH 09/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3288

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3288.c | 2 +- 1 fi

Re: [PATCH 02/14] pinctrl: rockchip: remove unused nr_pins controller member

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz Each controller has an nr_pins member that is set either through the rockchip_pin_ctrl struct or from the core (or both). This is an issue because on RK3568, RK3588 and RV1126, the struct is const, this means it shouldn't be modi

[PATCH 3/5] arm64: versal: fix dfu alt buffer clearing

2025-04-07 Thread Vincent Stehlé
The set_dfu_alt_info() function calls the ALLOC_CACHE_ALIGN_BUFFER() macro to declare a `buf' variable pointer into an array allocated on the stack. It then calls the memset() function to clear the useable portion of the array using the idiomatic expression `sizeof(buf)'. While this would indeed w

Re: [PATCH 04/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3036

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3036.c | 2 +- 1 fi

[PATCH] efi_selftest: remove un-needed NULL checks

2025-04-07 Thread Bryan Brattlof
Because we've already returned early in the event 'handle' is NULL we don't need these extra not NULL checks. Remove them Signed-off-by: Bryan Brattlof --- Hello everyone! I noticed the extra NULL check and decided to clean it up. They could be considered an extra precaution but the other calls

[PATCH 1/2] arm: dts: Add override for RB1

2025-04-07 Thread Sumit Garg
Add U-Boot override for RB1 to for USB in host mode as OTG mode isn't supported. Also, disable sdhc_2 as it's currently not supported, sdhc_1 works fine though. Signed-off-by: Sumit Garg --- arch/arm/dts/qrb2210-rb1-u-boot.dtsi | 11 +++ 1 file changed, 11 insertions(+) create mode 1006

Re: [PATCH v2 07/30] arm64: dts: rockchip: Add SARADC node for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Add a device tree node for the SARADC controller used by RK3528. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250304201642.831218-4-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: 6e58302c84ce90aadbecd41efe1f69098a6f

Re: [PATCH 3/6] rockchip: Add DFU to boot from USB for Radxa ROCK 3B

2025-04-07 Thread Kever Yang
On 2025/2/11 14:13, FUKAUMI Naoki wrote: Boot the Radxa ROCK 3B from the USB OTG port using rkflashtool[1] or rkusbboot[2] and dfu-util. 1a. Download the TPL and SPL using rkflashtool $ rkflashtool l < mkimage-in-simple-bin.mkimage-rockchip-tpl $ rkflashtool L < mkimage-in-simple-bin.mkimage-

[PATCH v2 09/14] spi: drop unneeded spi.h header include from spinand.h

2025-04-07 Thread Christian Marangi
Drop unneeded spi.h header include from spinand.h, nothing included by spi.h is actually used in this header and .c should correctly included spi.h if actually needed. Replace spi.h with linux/bitops.h as this is what is actually required for spinand.h Signed-off-by: Christian Marangi --- inclu

Re: [PATCH] mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions

2025-04-07 Thread Mike Looijmans
On 07-04-2025 21:47, Michael Nazzareno Trimarchi wrote: Hi MIke On Mon, Apr 7, 2025 at 3:42 PM Mike Looijmans mailto:mike.looijm...@topic.nl>> wrote: ping? Maybe I should have added to the description that the Linux kernel allows MTD partitions to specify a size "0" in the device-tree to mean "

Re: [PATCH] mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions

2025-04-07 Thread Michael Nazzareno Trimarchi
Hi MIke On Mon, Apr 7, 2025 at 3:42 PM Mike Looijmans wrote: > ping? > > Maybe I should have added to the description that the Linux kernel > allows MTD partitions to specify a size "0" in the device-tree to mean > "the remainder". This patch makes u-boot compatible with the kernel's > MTD parti

Re: [PATCH v2 1/6] rockchip: Move imply TPL_ROCKCHIP_COMMON_BOARD under SoC Kconfig symbol

2025-04-07 Thread Kever Yang
On 2025/2/21 05:56, Jonas Karlman wrote: The Kconfig symbol ROCKCHIP_COMMON_STACK_ADDR currently imply the TPL_ROCKCHIP_COMMON_BOARD option when TPL=y. This is inconvenient for a SoC with very limited SRAM to use a custom tpl.c together with the common stack addresses. Move any imply TPL_ROCKC

Re: [PATCH v2 4/6] rockchip: Move imply ROCKCHIP_COMMON_STACK_ADDR under SoC Kconfig symbol

2025-04-07 Thread Kever Yang
On 2025/2/21 05:56, Jonas Karlman wrote: The ROCKCHIP_COMMON_STACK_ADDR Kconfig option was originally enabled in the SoC specific Kconfig files to ease during the initial migration to use common stack addresses. All boards for the affected SoCs have been migrated to use common stack addresses.

Re: [PATCH v2 2/6] rockchip: Make ROCKCHIP_COMMON_STACK_ADDR depend on TPL

2025-04-07 Thread Kever Yang
On 2025/2/21 05:56, Jonas Karlman wrote: The stack-pointer addresses used with ROCKCHIP_COMMON_STACK_ADDR expect that DRAM is initialized by TPL or ROCKCHIP_EXTERNAL_TPL, that SPL has access to full DRAM and SPL is loaded to/executed from start of DRAM. Add depends on to ensure use of the ROCK

Re: [PATCH v2 3/6] rockchip: Improve ARMv7 support for ROCKCHIP_COMMON_STACK_ADDR

2025-04-07 Thread Kever Yang
On 2025/2/21 05:56, Jonas Karlman wrote: A few Rockchip ARMv7 SoCs use 0x6000 as DRAM base address instead of the more common 0x0 DRAM base address used on AArch64 SoCs. Add default options that should work for these ARMv7 SoCs. Same offsets as before are used, just below 64 MiB. Hex value

Re: [PATCH v2 6/6] rockchip: Add RK3576 support for ROCKCHIP_COMMON_STACK_ADDR

2025-04-07 Thread Kever Yang
On 2025/2/21 05:57, Jonas Karlman wrote: The Rockchip RK3576 SoC uses a different DRAM base address, 0x4000, compared to prior SoCs. Add default options that should work when 0x4000 is used as DRAM base address. Use same offsets as before, just below 64 MiB. Signed-off-by: Jonas Karlm

[PATCH v2 04/30] arm64: dts: rockchip: Add pinctrl and gpio nodes for RK3528

2025-04-07 Thread Jonas Karlman
Add pinctrl and gpio nodes for RK3528 and import rk3528-pinctrl.dtsi from vendor linux-6.1-stan-rkr5 kernel with the hdmi-pins-idle node removed due to missing label reference to pcfg_output_low_pull_down. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250228064024.320-5-jo...

[PATCH v2 05/30] arm64: dts: rockchip: Add rk3528 QoS register node

2025-04-07 Thread Jonas Karlman
From: Chukun Pan The Quality-of-Service (QsS) node stores/restores specific register contents when the power domains is turned off/on. Add QoS node so that they can connect to the power domain. Signed-off-by: Chukun Pan Link: https://lore.kernel.org/r/20250306123809.273655-3-amad...@jmu.edu.cn

[PATCH v2 02/30] arm64: dts: rockchip: Add clock generators for RK3528 SoC

2025-04-07 Thread Jonas Karlman
From: Yao Zi Add dt node for RK3528 clock and reset unit. Clock "gmac0_clk" is generated by internal Ethernet phy, a fixed clock node is added as a placeholder to avoid orphans. Signed-off-by: Yao Zi Link: https://lore.kernel.org/r/20250217061142.38480-9-zi...@disroot.org Signed-off-by: Heiko S

[PATCH v2 06/30] arm64: dts: rockchip: enable SCMI clk for RK3528 SoC

2025-04-07 Thread Jonas Karlman
From: Chukun Pan Same as RK3568, RK3528 uses SCMI clk instead of ARMCLK. Add SCMI clk for CPU, GPU and RNG will also use it. Signed-off-by: Chukun Pan Link: https://lore.kernel.org/r/2025030718.789129-2-amad...@jmu.edu.cn Signed-off-by: Heiko Stuebner [ upstream commit: fbcbc1fb93e14729bd

[PATCH v2 09/30] arm64: dts: rockchip: Add uart0 pinctrl to Radxa E20C

2025-04-07 Thread Jonas Karlman
Radxa E20C route UART0 M0 pins (GPIO4_C7 and GPIO4_D0) to the onboard CH340B for debug console use. Add pinctrl for UART0 M0 pins used for serial console. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250228064024.320-6-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstr

[PATCH v2 13/30] arm64: dts: rockchip: Enable onboard eMMC on Radxa E20C

2025-04-07 Thread Jonas Karlman
The Radxa E20C may come with an onboard eMMC (8GB / 16GB / 32GB / 64GB). Enable support for the onboard eMMC on Radxa E20C. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250305214108.1327208-4-jo...@kwiboo.se Signed-off-by: Heiko Stuebner [ upstream commit: 3a01b5f14a8ae2d45ae

[PATCH v2 12/30] arm64: dts: rockchip: Add maskrom button to Radxa E20C

2025-04-07 Thread Jonas Karlman
Radxa E20C has two buttons, one SARADC maskrom button and one GPIO user button. Add support for the maskrom button using a adc-keys node, also add the regulators used by SARADC controller. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250304201642.831218-5-jo...@kwiboo.se Signed

[PATCH v2 16/30] clk: rockchip: Add support for RK3528

2025-04-07 Thread Jonas Karlman
From: Joseph Chen Add clock driver for RK3528. Imported from vendor U-Boot linux-6.1-stan-rkr5 tag with minor adjustments and fixes for mainline. Signed-off-by: Joseph Chen Signed-off-by: Finley Xiao Signed-off-by: Jonas Karlman --- Changes in v2: - Use mainline Linux dt-bindings headers and

[PATCH v2 19/30] arch: arm: rockchip: Add initial support for RK3528

2025-04-07 Thread Jonas Karlman
Rockchip RK3528 is a ARM-based SoC with quad-core Cortex-A53. Add initial arch support for the RK3528 SoC. Signed-off-by: Jonas Karlman --- Changes in v2: - Add FIREWALL_DDR handling to fix emmc/fspi/sdmmc/usb dma - Add imply SYSRESET_PSCI if SPL_ATF - Add USB_GADGET_PRODUCT_NUM for RK3528 - Dro

[PATCH] sunxi: Use existing serial number for MAC address generation

2025-04-07 Thread Andre Przywara
On Allwinner boards we use the first few words of the SID efuse storage to generate a serial number, and also MAC addresses for Ethernet and WiFi interfaces. On some SoCs (A64, at least), when they are using Secure Boot, the SID device contains all zeroes when read from U-Boot, because we are runni

[PATCH v2 21/30] mmc: rockchip_sdhci: Add initial support for RK3528

2025-04-07 Thread Jonas Karlman
Add initial support for SDHCI controller in RK3528. Only MMC Legacy and MMC High Speed (52MHz) mode is supported after this, more work is needed to get the faster HS200/HS400/HS400ES modes working. Variant tap and delay num is copied from vendor Linux tag linux-6.1-stan-rkr5. Signed-off-by: Jona

[PATCH v2 23/30] rockchip: otp: Add support for RK3528

2025-04-07 Thread Jonas Karlman
Add support for the OTP controller in RK3528. The OTPC is similar to the OTPC in RK3568 and can use the same ops for reading OTP data. Signed-off-by: Jonas Karlman --- v2: New patch --- drivers/misc/rockchip-otp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rockchip-otp.

Re: [RESEND PATCH] clk: fix crash on clk_set_rate clean rate cache

2025-04-07 Thread Fabio Estevam
On Mon, Apr 7, 2025 at 4:58 PM Michael Nazzareno Trimarchi wrote: > Can you review it and pick if needed? This is not assigned to me in patchwork as it is not i.MX related. Someone else needs to handle it.

Re: [PATCH v5 00/29] pxe: Precursor series for supporting read_all() in extlinux / PXE

2025-04-07 Thread Tom Rini
On Mon, Apr 07, 2025 at 09:18:12AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 7 Apr 2025 at 07:53, Tom Rini wrote: > > > > On Mon, Apr 07, 2025 at 01:07:34PM +1200, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 7 Apr 2025 at 10:48, Tom Rini wrote: > > > > > > > > On Mon, Apr 07, 2025

Re: [PATCH 03/14] pinctrl: rockchip: constify rockchip_pin_ctrl for PX30

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-px30.c | 2 +- 1 file

Re: [PATCH 06/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3128

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3128.c | 2 +- 1 fi

Re: [PATCH 01/14] pinctrl: rockchip: remove unused base_pin bank member

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz Each bank has a base_pin member that is only set in the core and never used, so it can be removed. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rockchip-core.c

Re: [PATCH 07/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RK3188

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rk3188.c | 2 +- 1 fi

Re: [PATCH 1/2] acpi: select CONFIG_BLOBLIST

2025-04-07 Thread Tom Rini
On Mon, Apr 07, 2025 at 08:44:23AM +0200, Heinrich Schuchardt wrote: > Since commit 53d5a221632e ("emulation: Use bloblist to hold tables") > `make qemu-riscv64_smode_defconfig acpi.config && make` fails with > > qfw_acpi.c:146:(.text.evt_write_acpi_tables+0xc): > undefined reference to `

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-07 Thread Simon Glass
Hi Tom, On Mon, 7 Apr 2025 at 12:22, Tom Rini wrote: > > On Mon, Apr 07, 2025 at 09:24:16AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 7 Apr 2025 at 08:31, Tom Rini wrote: > > > > > > On Mon, Apr 07, 2025 at 12:35:15PM +1200, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Mon,

[PATCH 0/2] RB1 fixes

2025-04-07 Thread Sumit Garg
The eMMC on RB1 boards supports HS200 mode but currently the msm_shdci driver in U-Boot is missing DLL configuration required for HS200 mode to work. Hence disable HS200 for now until proper support is in place. Apart from that, add DT override for USB to work in host mode as otg mode isn't suppor

[ANN] U-Boot v2025.04 released

2025-04-07 Thread Tom Rini
Hey all, It's release day and here's v2025.04. We had some last minute issues reported, but then also resolved. I want to thank everyone that's contributed to this release, not just in terms of code, but documentation, testing and otherwise ensuring things go as smoothly as they can. In terms of

Re: [PATCH 02/11] rockchip: Remove partitions env variable for RK356x

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: The partitions env variable is using an outdated partition layout that is typically expected to be used with older vendor miniloader blobs. Rockchip devices will run fine using any partition layout if the first 16 MiB of MMC storage is ignored/skipped.

Re: [PATCH 04/11] rockchip: Ensure device settings is defined before rk3568_common.h

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: Ensure ROCKCHIP_DEVICE_SETTINGS is defined before including rk3568_common.h in board include/configs files. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- include/configs/anbernic-rgxx3-rk3566.h | 4 ++-- include/configs

Re: [PATCH 14/14] pinctrl: rockchip: constify rockchip_pin_ctrl for RV1108

2025-04-07 Thread Kever Yang
On 2025/1/29 20:42, Quentin Schulz wrote: From: Quentin Schulz There's no need to modify private data from the controller, so let's make that struct const. Signed-off-by: Quentin Schulz Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pinctrl/rockchip/pinctrl-rv1108.c | 2 +- 1 fi

Re: [PATCH 10/11] rockchip: Enable meminfo and rng commands for Generic RK3566/RK3568

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: The meminfo and rng commands are helpful for testing, enable them. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- configs/generic-rk3568_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/generic-rk

Re: [PATCH v2 03/30] arm64: dts: rockchip: Add UART clocks for RK3528 SoC

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Yao Zi Add missing clocks in UART nodes for RK3528 SoC. Signed-off-by: Yao Zi Link: https://lore.kernel.org/r/20250217061142.38480-10-zi...@disroot.org Signed-off-by: Heiko Stuebner [ upstream commit: b9454434d0349223418f74fbfa7b902104da9bc5 ]

Re: [PATCH v2 02/30] arm64: dts: rockchip: Add clock generators for RK3528 SoC

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Yao Zi Add dt node for RK3528 clock and reset unit. Clock "gmac0_clk" is generated by internal Ethernet phy, a fixed clock node is added as a placeholder to avoid orphans. Signed-off-by: Yao Zi Link: https://lore.kernel.org/r/20250217061142.3848

Re: [PATCH 11/11] rockchip: Enable meminfo and rng commands for Generic RK3588

2025-04-07 Thread Kever Yang
On 2025/4/6 08:24, Jonas Karlman wrote: The meminfo and rng commands are helpful for testing, enable them. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- configs/generic-rk3588_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/generic-rk

Re: [PATCH v2 04/30] arm64: dts: rockchip: Add pinctrl and gpio nodes for RK3528

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Add pinctrl and gpio nodes for RK3528 and import rk3528-pinctrl.dtsi from vendor linux-6.1-stan-rkr5 kernel with the hdmi-pins-idle node removed due to missing label reference to pcfg_output_low_pull_down. Signed-off-by: Jonas Karlman Link: https://lore

Re: [PATCH v2 10/30] arm64: dts: rockchip: Add leds node to Radxa E20C

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Radxa E20C has three gpio controlled leds (sys, wan and lan). Add led nodes and set default trigger to heartbeat for the sys led and netdev for the lan and wan leds. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250304201642.831218-2-j

Re: [PATCH 2/2] qcom_defconfig: Disable MMC HS200 mode support

2025-04-07 Thread Sumit Garg
On Mon, Apr 07, 2025 at 04:30:44PM +0200, Caleb Connolly wrote: > > > On 4/7/25 15:28, Sumit Garg wrote: > > From: Sumit Garg > > > > Currently the msm_sdhci doesn't yet support DLL configurations which are > > required to enable bus speeds greater that 100MHz. So disable HS200 mode > > support

Re: [PATCH v2 09/30] arm64: dts: rockchip: Add uart0 pinctrl to Radxa E20C

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: Radxa E20C route UART0 M0 pins (GPIO4_C7 and GPIO4_D0) to the onboard CH340B for debug console use. Add pinctrl for UART0 M0 pins used for serial console. Signed-off-by: Jonas Karlman Link: https://lore.kernel.org/r/20250228064024.320-6-jo...@kwibo

Re: [PATCH v2 05/30] arm64: dts: rockchip: Add rk3528 QoS register node

2025-04-07 Thread Kever Yang
On 2025/4/8 06:46, Jonas Karlman wrote: From: Chukun Pan The Quality-of-Service (QsS) node stores/restores specific register contents when the power domains is turned off/on. Add QoS node so that they can connect to the power domain. Signed-off-by: Chukun Pan Link: https://lore.kernel.org/r

[PATCH 04/13] board: dragonboard410c: Drop UNSTUFF_BITS() macro

2025-04-07 Thread Stephan Gerhold
This was originally taken from Linux, but at this point it's an inline function upstream and no longer a macro. Given that we just want to extract the serial number from the MMC CID, let's just inline that specifically. This is also the style used in the MMC core code within U-Boot. Signed-off-by:

Re: [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme

2025-04-07 Thread Jorge Ramirez
On 07/04/25 13:50:21, Christopher Obbard wrote: > Hi Jorge, > > Long time no speak. hey, yeah, Embedded Recipes 2023 I think. > > On Mon, 7 Apr 2025 at 13:05, Jorge Ramirez-Ortiz > wrote: > > > > Update build instructions. > > > > Signed-off-by: Jorge Ramirez-Ortiz > > Reviewed-by: Neil Arms

Re: [PATCH v1 0/2] Add FPGA configuration when booting Linux

2025-04-07 Thread Michal Simek
On 3/14/25 03:19, muhammad.hazim.izzat.za...@altera.com wrote: From: Muhammad Hazim Izzat Zamri This patchset enable the capability to automatically perform FPGA configuration when booting Linux FIT image via bootm command. The FPGA configuration bitstream shall be packed within the FIT imag

Re: [PATCH 5/7] configs: dragonboard820: enable GPIO

2025-04-07 Thread neil . armstrong
On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Configure GPIO. Signed-off-by: Jorge Ramirez-Ortiz --- configs/dragonboard820c_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dragonboard820c_defconfig b/configs/dragonboard820c_defconfig index e29bea7deb2..b5b6bc026e8 1

[PATCH] tiny-printf: Handle formatting of %p with an extra Kconfig

2025-04-07 Thread Christoph Niedermaier
The formatting with %pa / %pap behaves like %x, which results in an incorrect value being output. To improve this, a new fine-tuning Kconfig XPL_USE_TINY_PRINTF_POINTER_SUPPORT for pointer formatting has been added. If it is enabled, the output of %pa / %pap should be correct, and if it is disabled

Re: [PATCH 3/7] mmc: msm_sdhci: handle bulk clock initialization error

2025-04-07 Thread neil . armstrong
On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Some boards do not require all clocks to be available (i.e: dragonboard820c). Can you specify which clock isn't available ? Because we have clk-stub for that Thanks, Neil This change provides a fallback to the core clock when the bulk cant be

Re: [PATCH 6/7] mach-snapdragon: board interface to enforce fdt

2025-04-07 Thread neil . armstrong
Hi, On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Some platforms might require the external fdt to boot. Why ? we may want to build the fdt in, and discard the external fdt for some reasons. This change provides a mechanism to the board initializaion code to make the requet explicit. Si

Re: [PATCH 4/7] clk/qcom: apq8096: fix the sdhci clock

2025-04-07 Thread neil . armstrong
On 07/04/2025 10:19, Jorge Ramirez-Ortiz wrote: Select the right clock for sdhci. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/clk/qcom/clock-apq8096.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c in

Re: [PATCH 1/2] spl: riscv: Disable SPL_BINMAN_UBOOT_SYMBOLS by default

2025-04-07 Thread Jonas Karlman
Hi, On 2025-04-07 05:37, Yao Zi wrote: > The default binman configuration of RISC-V wraps proper U-Boot into a > FIT image instead of shipping a plain image, thus there's no > "u_boot_any" entry by default. Let's disable the option to prevent > binman from looking for a plain proper U-Boot image,

[PATCH V2] firmware: ti_sci: Scan all device instances when releasing exclusive devices

2025-04-07 Thread Nishanth Menon
When FIT image with multiple dtbs are involved for R5 boot process, R5 SPL starts off with the first instance of dtb to probe the eeprom, then once we have identified the type of board, invocation of setup_multi_dtb_fit will replace the gd->fdt_blob with the proper board dtb match. However, when we

[PATCH 5/5] configs: dragonboard820: updates

2025-04-07 Thread Jorge Ramirez-Ortiz
Configure GPIO and CLK_STUBS Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Neil Armstrong --- configs/dragonboard820c_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dragonboard820c_defconfig b/configs/dragonboard820c_defconfig index e29bea7deb2..2a5b7212f74 100644 --

[PATCH 1/7] board: qualcomm: dragonboard820c: udpate readme

2025-04-07 Thread Jorge Ramirez-Ortiz
Update build instructions. Signed-off-by: Jorge Ramirez-Ortiz --- board/qualcomm/dragonboard820c/readme.txt | 47 ++- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/board/qualcomm/dragonboard820c/readme.txt b/board/qualcomm/dragonboard820c/readme.txt index 9

Re: [PATCH] IOMUX: Fix stopping unused dropped consoles

2025-04-07 Thread Andy Shevchenko
On Mon, Apr 07, 2025 at 01:10:00PM +0200, Stephan Gerhold wrote: > iomux_match_device() returns -ENOENT instead of the end index, which means > console_stop() is never called at the moment for unused consoles. > > This prevents e.g. f_acm from releasing the USB gadget interface when > removing it

Re: [PATCH v2 3/4] efi_loader: Move device-removal later in exit-boot-services

2025-04-07 Thread Mark Kettenis
> From: Simon Glass > Date: Mon, 7 Apr 2025 22:49:05 +1200 Hi Simon, Since I brought up the same objection as Heinrich... > Hi Heinrich, > > On Mon, 7 Apr 2025 at 19:55, Heinrich Schuchardt wrote: > > > > On 07.04.25 03:35, Simon Glass wrote: > > > This removal should be the last thing done,

Re: [PATCH 1/5] board: qualcomm: dragonboard820c: udpate readme

2025-04-07 Thread Christopher Obbard
Hi Jorge, Long time no speak. On Mon, 7 Apr 2025 at 13:05, Jorge Ramirez-Ortiz wrote: > > Update build instructions. > > Signed-off-by: Jorge Ramirez-Ortiz > Reviewed-by: Neil Armstrong Your patch subject has a typo in "udpate" -> "update. With that fixed: Reviewed-by: Christopher Obbard >

[PATCH] crypto: fsl - Fix RNG generation for lengths greater than 16 bytes

2025-04-07 Thread Pawel Kochanowski
From: Gabriel Nesteruk Reinitialize the descriptor for each RNG job, as it may be modified by run_descriptor_jr(). Failing to do so can result in memory corruption when dm_rng_read() is called a second time on NXP devices with CONFIG_SYS_FSL_SEC_BE enabled. Signed-off-by: Gabriel Nesteruk Signe

Re: [PATCH 6/7] mach-snapdragon: board interface to enforce fdt

2025-04-07 Thread Caleb Connolly
Hi Jorge, On 4/7/25 10:19, Jorge Ramirez-Ortiz wrote: Some platforms might require the external fdt to boot. The better way to do this is to use the u-boot-nodtb.bin to build your boot image rather than the one which includes the internal FDT. If that works I'd prefer it (and it can be menti

Re: [PATCH 0/4] bloblist: fdt: Clean up the code

2025-04-07 Thread Raymond Mao
Hi Simon, On Sun, 6 Apr 2025 at 18:06, Simon Glass wrote: > > Hi Raymond, > > On Sat, 5 Apr 2025 at 07:09, Raymond Mao wrote: > > > > Hi Simon, > > > > On Fri, 4 Apr 2025 at 13:40, Simon Glass wrote: > > > > > > Hi Raymond, > > > > > > On Sat, 5 Apr 2025 at 03:49, Raymond Mao wrote: > > > > >

  1   2   3   >