Re: [PATCH 1/1] general: fix GPL-2.0-or-later SPDX headers

2023-10-23 Thread Xavier Drudis Ferran
El Mon, Oct 23, 2023 at 10:21:52AM +0200, Heinrich Schuchardt deia: > > We will need separate patches for LGPL-2.0+ and LGPL-2.1+, too. > That'd be for LGPL-2.1+ The only case of LGPL-2.0+ in code is included in the patch you sent. Well, there's another appearance of LGPL-2.0+ in

Re: [PATCH 1/1] general: fix GPL-2.0-or-later SPDX headers

2023-10-23 Thread Xavier Drudis Ferran
El Sun, Oct 22, 2023 at 07:47:07PM +0200, Heinrich Schuchardt deia: > diff --git a/drivers/sound/tegra_ahub.c b/drivers/sound/tegra_ahub.c > index 495a29c513..28f392504d 100644 > --- a/drivers/sound/tegra_ahub.c > +++ b/drivers/sound/tegra_ahub.c > @@ -1,4 +1,4 @@ > -// SPDX-License-Identifier:

Re: [PATCH 0/4] bootstd: Test and boot_targets improvements

2023-10-23 Thread Tom Rini
On Mon, 23 Oct 2023 00:02:09 -0700, Simon Glass wrote: > This series makes another attempt to support things like "mmc" in the > boot_targets variable. The previous attempt introduced a bug which made > iteration fail. > > New test coverage is provided for some previously untested behaviour, to

Re: [PATCH v5] bootstd: sata: Add bootstd support for ahci sata

2023-10-23 Thread Tom Rini
On Wed, 11 Oct 2023 13:26:42 -0700, Tony Dinh wrote: > Add ahci sata bootdev and corresponding hunting function. > > I know this is recent but given their importance, applied to u-boot/master, thanks! -- Tom

Re: [RESEND PATCH] bootstd: sata: bootdev scanning for ahci sata with no drive attached

2023-10-23 Thread Tom Rini
On Fri, 06 Oct 2023 20:34:28 -0700, Tony Dinh wrote: > It's normal to have no SATA drive attached to the controller, so return a > successful status when there is no block device found after probing. > > Note: this patch depends on the previous patch >

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-23 Thread Simon Glass
Hi Caleb, On Sat, 21 Oct 2023 at 01:43, Caleb Connolly wrote: > > Hi Simon, > > On 21/10/2023 01:45, Simon Glass wrote: > > U-Boot typically sets up its malloc() pool near the top of memory. On > > ARM64 systems this can result in an SMBIOS table above 4GB which is > > not supported by SMBIOSv2.

Re: [PATCH] mmc: tmio: Disable 1/1024 clock divider on Renesas R-Car platforms

2023-10-23 Thread Paul Barker
On Sun, Oct 22, 2023 at 11:40:43PM +0200, Marek Vasut wrote: > The R-Car Gen3 SD_CLK_CTRL register does not use BIT(16) to implement > divider 1/1024, instead BIT(16) is reserved bit and divider 1/1024 is > not supported. The divider 1/1024 is specific to Socionext variant of > the IP, as is

Re: [PATCH 1/1] efi_loader: fix efi_dp_from_eth

2023-10-23 Thread Simon Glass
On Sat, 21 Oct 2023 at 23:20, Heinrich Schuchardt wrote: > > When compiling the sandbox with CONFIG_LTO=n, CONFIG_NET=n an error is > reported: > > /usr/bin/ld: lib/efi_loader/efi_device_path.o: > in function `efi_dp_from_eth': > lib/efi_loader/efi_device_path.c:985:(.text+0xcf4): >

Re: [PATCH 1/1] general: fix GPL-2.0-or-later SPDX headers

2023-10-23 Thread Simon Glass
Hi Heinrich, On Sun, 22 Oct 2023 at 10:48, Heinrich Schuchardt wrote: > > SPDX headers should use GPL-2.0-or-later and not GPL-2.0+. > > Signed-off-by: Heinrich Schuchardt > --- > Makefile | 2 +- > README

Re: [PATCH 1/1] efi_loader: fix efi_dp_from_eth

2023-10-23 Thread Ilias Apalodimas
On Sun, 22 Oct 2023 at 09:20, Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > When compiling the sandbox with CONFIG_LTO=n, CONFIG_NET=n an error is > reported: > > /usr/bin/ld: lib/efi_loader/efi_device_path.o: > in function `efi_dp_from_eth': >

[PATCH] buildman: Include symbols in the read-only data section

2023-10-23 Thread Simon Glass
When symbols switch between the inited data section and the read-only data section their visbility changes, at present, with the -B option. This is confusing, since adding 'const' to a variable declaration can make it look like a significant improvement in bloat. But in fact nothing has changed.

[PATCH v4 0/2] Enable split mode in binman

2023-10-23 Thread Neha Malcom Francis
This series extends the functionality of ti-secure-rom entry type in binman to support enabling of split mode vs. the default lockstep mode via changing the field in the x509 certificate. A DONOTMERGE patch is added to give an example of how this can be done via the binman.dtsi Changes in v4:

[PATCH v4 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-23 Thread Neha Malcom Francis
According to the TRMs of K3 platform of devices, the ROM boot image format specifies a "Core Options Field" that provides the capability to set the boot core in lockstep when set to 0 or to split mode when set to 2. Add support for providing the same from the binman DTS. Also modify existing test

[PATCH v4 2/2] DONOTMERGE: arm: dts: k3-j7200-binman: Enable split mode for MCU R5

2023-10-23 Thread Neha Malcom Francis
Set boot core-opts to enable split mode for MCU R5 cluster by default. This patch serves to demonstrate how this can be done. Signed-off-by: Neha Malcom Francis --- No change since v2 arch/arm/dts/k3-j7200-binman.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] led: Do not overwrite label

2023-10-23 Thread Christian Gmeiner
label might have been set by a non device-tree based U-Boot driver already. In my concrete case there is a PCI driver that uses device_bind_driver(..) for different class types. The UCLASS_LED specific driver sets label in its bind function. Without this change the LEDs exposed by the PCI device

Re: [PATCH 1/1] general: fix GPL-2.0-or-later SPDX headers

2023-10-23 Thread Heinrich Schuchardt
On 10/23/23 09:05, Simon Glass wrote: Hi Heinrich, On Sun, 22 Oct 2023 at 10:48, Heinrich Schuchardt wrote: SPDX headers should use GPL-2.0-or-later and not GPL-2.0+. Signed-off-by: Heinrich Schuchardt --- Makefile | 2 +- README

[PATCH v4 2/4] configs: npcm: Support more uart baud rate

2023-10-23 Thread Jim Liu
Add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) Signed-off-by: Jim Liu Changes for v2: - Add commit message Changes for v3: - Modify CONFIG_SYS_BAUDRATE_TABLE Changes for v4: - No change --- include/configs/arbel.h | 5 - include/configs/poleg.h | 2 ++ 2 files

[PATCH v4 0/4] fix npcm bmc error

2023-10-23 Thread Jim Liu
1. Add name for gpio pinctrl function 2. Add baud rate table 3. Fix ecc ram size - ECC ram size - Fix wrong place to set dram bank size 4. Modify configs Jim Liu (4): pinctrl: npcm8xx: add name for gpio function configs: npcm: support more uart baud rate board: nuvuton: arbel: fix

[PATCH v4 3/4] board: nuvuton: arbel: Fix incorrect ram size

2023-10-23 Thread Jim Liu
1. Fix incorrect ram size of 4GB dram with ECC enabled 2. Fix wrong place to set dram bank size - The dram bank size should be set in dram_init_banksize - Dram_init should not access gd->bd because the board info struct is not reserved yet. Signed-off-by: Jim Liu Changes for v2: -

[PATCH v4 1/4] pinctrl: npcm8xx: Add name for gpio function

2023-10-23 Thread Jim Liu
GPIO function name is needed in the debug log Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change Changes for v4: - no change --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 4/4] configs: nuvoton: npcm8xx: Disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-23 Thread Jim Liu
disable this config to improve flash program time Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change Changes for v4: - no change --- configs/arbel_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/arbel_evb_defconfig

[PATCH v2] arm: xilinx: Add missing dual parallel flash description

2023-10-23 Thread Michal Simek
Describe flash memories based on the latest DT binding. Signed-off-by: Michal Simek --- Changes in v2: - Add missing description for zc706 arch/arm/dts/zynq-zc706.dts | 5 +++-- arch/arm/dts/zynq-zc770-xm013.dts | 5 +++-- arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 4 +++-

Re: [PATCH v3 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-23 Thread Simon Glass
Hi Neha, On Mon, 23 Oct 2023 at 00:06, Neha Malcom Francis wrote: > > Hi Simon > > On 19/10/23 19:25, Simon Glass wrote: > > Hi Neha, > > > > On Tue, 17 Oct 2023 at 23:20, Neha Malcom Francis wrote: > >> > >> Hi Simon > >> > >> On 18/10/23 09:03, Simon Glass wrote: > >>> Hi Neha, > >>> > >>> On

Re: [PATCH v5 4/8] rockchip: block: blk-uclass: add bounce buffer flag to blk_desc

2023-10-23 Thread Kever Yang
On 2023/10/18 22:01, Johan Jonker wrote: Currently bounce buffer support is enabled for all block devices when available. Add a flag to blk_desc to enable only on demand. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Thanks, - Kever --- Changed V5: New patch ---

Re: [PATCH 2/6] led-uclass: honour ->label field populated by driver's own .bind

2023-10-23 Thread Rasmus Villemoes
On 19/10/2023 15.54, Marek Vasut wrote: > On 10/19/23 11:58, Rasmus Villemoes wrote: >> If the driver's own .bind method has populated uc_plat->label, don't >> override that. This is necessary for an upcoming driver for ti,lp5562, >> where the DT binding unfortunately says to use "chan-name" and

[PATCH 0/4] bootstd: Test and boot_targets improvements

2023-10-23 Thread Simon Glass
This series makes another attempt to support things like "mmc" in the boot_targets variable. The previous attempt introduced a bug which made iteration fail. New test coverage is provided for some previously untested behaviour, to prevent regressions. Simon Glass (4): Revert "bootstd: Scan

[PATCH 2/4] bootstd: Expand boot-ordering test to include USB

2023-10-23 Thread Simon Glass
Scan the USB bus as well, so we can check that different uclasses work correctly in boot_targets update the function comment with more detail. Signed-off-by: Simon Glass --- test/boot/bootdev.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git

[PATCH 1/4] Revert "bootstd: Scan all bootdevs in a boot_targets entry"

2023-10-23 Thread Simon Glass
This commit was intended to allow all bootdevs in each boot_targets entry to be scanned. However it causes bad ordering with bootdevs, e.g. scanning Ethernet bootdevs when it should be keeping to mmc. Revert it so we can try another approach. This reverts commit

[PATCH 3/4] bootstd: Correct logic for single uclass

2023-10-23 Thread Simon Glass
The current logic for "bootflow mmc" is flawed since it checks the uclass of the bootdev instead of its parent, the media device. Correct this and add a test that covers this scenario. Signed-off-by: Simon Glass --- boot/bootflow.c | 24 ++-- test/boot/bootdev.c | 13

[PATCH 4/4] bootstd: Scan all bootdevs in a boot_targets entry (take 2)

2023-10-23 Thread Simon Glass
When the boot_targets environment variable is used with the distro-boot scripts, each device is included individually. For example, if there are three mmc devices, then we will have something like: boot_targets="mmc0 mmc1 mmc2" In contrast, standard boot supports specifying just the uclass,

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-10-23 Thread Simon Glass
Hi Heinrich, On Sat, 21 Oct 2023 at 21:53, Heinrich Schuchardt wrote: > > On 10/21/23 17:42, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 20 Oct 2023 at 09:24, Tom Rini wrote: > >> > >> On Fri, Oct 20, 2023 at 05:40:03PM +0200, Heinrich Schuchardt wrote: > >>> On 20.10.23 15:21, Simon Glass

Re: [PATCH 1/6] led-uclass: do not create fallback label for top-level node

2023-10-23 Thread Rasmus Villemoes
On 19/10/2023 15.51, Marek Vasut wrote: > On 10/19/23 11:58, Rasmus Villemoes wrote: >> Many existing drivers, and led-uclass itself, rely on uc_plat->label >> being NULL for the device representing the top node, as opposed to the >> child nodes representing individual LEDs. This means that the

Re: [PATCH v3 22/32] efi: Update EFI_LOADER to depend on DM_ETH

2023-10-23 Thread Simon Glass
Hi Tom, On Sun, 22 Oct 2023 at 16:45, Tom Rini wrote: > > On Sun, Oct 22, 2023 at 02:55:32PM -0700, Simon Glass wrote: > > Hi, > > > > On Sun, 22 Oct 2023 at 07:59, Tom Rini wrote: > > > > > > On Sun, Oct 22, 2023 at 10:29:22AM -0400, Tom Rini wrote: > > > > On Sun, Oct 22, 2023 at 08:08:11AM

Re: [PATCH v3 1/2] binman: openssl: x509: ti_secure_rom: Add support for bootcore_opts

2023-10-23 Thread Neha Malcom Francis
Hi Simon On 19/10/23 19:25, Simon Glass wrote: Hi Neha, On Tue, 17 Oct 2023 at 23:20, Neha Malcom Francis wrote: Hi Simon On 18/10/23 09:03, Simon Glass wrote: Hi Neha, On Tue, 17 Oct 2023 at 03:58, Neha Malcom Francis wrote: Hi Simon On 08/10/23 04:39, Simon Glass wrote: Hi Neha,

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-23 Thread Simon Glass
Hi Tom, On Sat, 21 Oct 2023 at 11:34, Tom Rini wrote: > > On Sat, Oct 21, 2023 at 08:43:00AM -0700, Simon Glass wrote: > > On Fri, 20 Oct 2023 at 14:53, Tom Rini wrote: > > > > > > The primary motivation for having a sandbox without LTO build in CI is > > > to ensure that we don't have that

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-10-23 Thread Heinrich Schuchardt
On 10/23/23 09:08, Simon Glass wrote: Hi Heinrich, On Sat, 21 Oct 2023 at 21:53, Heinrich Schuchardt wrote: On 10/21/23 17:42, Simon Glass wrote: Hi Tom, On Fri, 20 Oct 2023 at 09:24, Tom Rini wrote: On Fri, Oct 20, 2023 at 05:40:03PM +0200, Heinrich Schuchardt wrote: On 20.10.23

Re: [PATCH] led: Do not overwrite label

2023-10-23 Thread Marek Vasut
On 10/23/23 10:21, Christian Gmeiner wrote: label might have been set by a non device-tree based U-Boot driver already. In my concrete case there is a PCI driver that uses device_bind_driver(..) for different class types. The UCLASS_LED specific driver sets label in its bind function. Without

Re: [PATCH 0/4] bootstd: Test and boot_targets improvements

2023-10-23 Thread Ivan T. Ivanov
On 10-23 00:02, Simon Glass wrote: > > This series makes another attempt to support things like "mmc" in the > boot_targets variable. The previous attempt introduced a bug which made > iteration fail. > > New test coverage is provided for some previously untested behaviour, to > prevent

Re: [PATCH v2 2/4] rockchip: rk3588-rock-5a: Enable support for USB 2.0 ports

2023-10-23 Thread Kever Yang
On 2023/10/18 01:02, Jonas Karlman wrote: Enable Kconfig options for the two USB 2.0 ports and bottom USB 3.0 port on ROCK 5 Model A. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- v2: - New patch configs/rock5a-rk3588s_defconfig | 16 +++- 1

Re: [PATCH v2 4/4] rockchip: rk3588-rock-5b: Sync USB3 nodes from mainline linux patches

2023-10-23 Thread Kever Yang
On 2023/10/18 01:02, Jonas Karlman wrote: The device tree for rk3588 and rock-5b contain usb3 nodes that have deviated too much from current state of submitted mainline linux usb3 patches, see [1]. Sync usb3 related nodes from latest patches and collaboras rk3588 tree so that dwc3-generic

Re: [PATCH 3/3] board: rockchip: Add Xunlong Orange Pi 5 Plus

2023-10-23 Thread Kever Yang
On 2023/10/18 05:40, Jonas Karlman wrote: Xunlong Orange Pi 5 Plus is a single-board computer based on the Rockchip RK3588 SoC. The board provides abundant interfaces, including two HDMI output ports, one HDMI input port, two 2.5G Ethernet ports, M.2 M-Key slot, M.2 E-Key slot, two USB 3.0,

Re: [PATCH 2/3] board: rockchip: Add Xunlong Orange Pi 5

2023-10-23 Thread Kever Yang
On 2023/10/18 05:40, Jonas Karlman wrote: Xunlong Orange Pi 5 is a single-board computer based on the Rockchip RK3588S SoC. The board provides abundant interfaces, HDMI output, GPIO interface, M.2 PCIe2.0, Type-C, Gigabit LAN port, 2*USB2.0, 1*USB3.0, etc. Features tested on a Orange Pi 5 4GB

Re: [PATCH 6/6] led: add TI LP5562 LED driver

2023-10-23 Thread Marek Vasut
On 10/23/23 11:11, Rasmus Villemoes wrote: On 19/10/2023 15.58, Marek Vasut wrote: On 10/19/23 11:58, Rasmus Villemoes wrote: From: Doug Zobel Driver for the TI LP5562 4 channel LED controller. Supports independent on/off control of all 4 channels. Supports LED_BLINK on 3 independent

Re: [PATCH 2/6] led-uclass: honour ->label field populated by driver's own .bind

2023-10-23 Thread Marek Vasut
On 10/23/23 10:51, Rasmus Villemoes wrote: On 19/10/2023 15.54, Marek Vasut wrote: On 10/19/23 11:58, Rasmus Villemoes wrote: If the driver's own .bind method has populated uc_plat->label, don't override that. This is necessary for an upcoming driver for ti,lp5562, where the DT binding

Re: [PATCH v2 2/2] board: rockchip: add Pine64 QuartzPro64 RK3588 board

2023-10-23 Thread Kever Yang
On 2023/10/17 23:59, Tom Fitzhenry wrote: QuartzPro64 is a Rockchip RK3588 based SBC by Pine64. UART and boot over SD/eMMC/RJ45 are tested to work. Linux commits from next-20231013: 8152d3d070a9 ("arm64: dts: rockchip: Add QuartzPro64 SBC device tree") Signed-off-by: Tom Fitzhenry Cc:

Please pull u-boot-video

2023-10-23 Thread Anatolij Gustschin
Hi Tom, please pull video driver updates for v2024.01-rc1. CI: https://source.denx.de/u-boot/custodians/u-boot-video/-/pipelines/18257 Thanks! The following changes since commit 9a3a58396b78b1f9d0c14580dc03f81d29207dd2: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell

Re: [PATCH 1/6] led-uclass: do not create fallback label for top-level node

2023-10-23 Thread Marek Vasut
On 10/23/23 10:28, Rasmus Villemoes wrote: On 19/10/2023 15.51, Marek Vasut wrote: On 10/19/23 11:58, Rasmus Villemoes wrote: Many existing drivers, and led-uclass itself, rely on uc_plat->label being NULL for the device representing the top node, as opposed to the child nodes representing

Re: [PATCH 2/6] led-uclass: honour ->label field populated by driver's own .bind

2023-10-23 Thread Christian Gmeiner
Am Mo., 23. Okt. 2023 um 11:30 Uhr schrieb Rasmus Villemoes : > > On 19/10/2023 15.54, Marek Vasut wrote: > > On 10/19/23 11:58, Rasmus Villemoes wrote: > >> If the driver's own .bind method has populated uc_plat->label, don't > >> override that. This is necessary for an upcoming driver for

[GIT PULL] Please pull u-boot-amlogic-20231023

2023-10-23 Thread Neil Armstrong
branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh (2023-10-17 09:15:56 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20231023 for you to fetch changes up

Re: [PATCH 6/6] led: add TI LP5562 LED driver

2023-10-23 Thread Rasmus Villemoes
On 19/10/2023 15.58, Marek Vasut wrote: > On 10/19/23 11:58, Rasmus Villemoes wrote: >> From: Doug Zobel >> >> Driver for the TI LP5562 4 channel LED controller. Supports >> independent on/off control of all 4 channels. Supports LED_BLINK on 3 >> independent channels: blue/green/red. The white

Re: [PATCH 3/3] board: rockchip: Add support for RGB30 and RK2023 to RGxx3

2023-10-23 Thread Kever Yang
On 2023/10/18 02:24, Chris Morgan wrote: From: Chris Morgan Add support for the Powkiddy RK2023 and RGB30 to the Anbernic RGxx3. While these devices are manufactured by Powkiddy instead of Anbernic, the hardware is so similar they can all use the same bootloader. Signed-off-by: Chris Morgan

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-23 Thread Kever Yang
Hi Chris, On 2023/10/18 02:24, Chris Morgan wrote: From: Chris Morgan Add support for users to enter maskrom mode by holding the function button when they power up the device. Since the device has soldered eMMC and sometimes does not expose a clk pin on the mainboard This board already

Re: [PATCH 1/3] mtd: spi-nor: Add support for XMC XM25QU128C

2023-10-23 Thread Kever Yang
On 2023/10/18 05:40, Jonas Karlman wrote: From: Ricardo Pardini Add support for XMC XM25QU128C (128M-bit) Serial Flash memory. Used on the Xunlong Orange Pi 3B, 5 and 5 Plus boards. Datasheet: https://www.xmcwh.com/uploads/806/XM25QU128C_Ver2.0.pdf Signed-off-by: Ricardo Pardini

Re: [PATCH v2 1/2] dt-bindings: leds: import common led bindings from linux v6.5

2023-10-23 Thread Kever Yang
On 2023/10/17 23:59, Tom Fitzhenry wrote: This brings in more colours, e.g. ORANGE needed for the QuartzPro64 DT. Linux commits: 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID definitions") Signed-off-by: Tom Fitzhenry Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [PATCH v2 2/2] board: rockchip: add Pine64 QuartzPro64 RK3588 board

2023-10-23 Thread Kever Yang
On 2023/10/17 23:59, Tom Fitzhenry wrote: QuartzPro64 is a Rockchip RK3588 based SBC by Pine64. UART and boot over SD/eMMC/RJ45 are tested to work. Linux commits from next-20231013: 8152d3d070a9 ("arm64: dts: rockchip: Add QuartzPro64 SBC device tree") Signed-off-by: Tom Fitzhenry Cc:

Pull request: u-boot-sunxi/master for v2024.01

2023-10-23 Thread Andre Przywara
Hi Tom, please pull the sunxi/master branch, containing the first part of the 2024.01 changes. Apologies for the late PR, there were quite some recent activities (fixes and reviews), but I didn't want to delay this series any longer, since it's been around one year in the making already: This is

Re: [PATCH 6/6] led: add TI LP5562 LED driver

2023-10-23 Thread Rasmus Villemoes
On 23/10/2023 11.39, Marek Vasut wrote: > On 10/23/23 11:11, Rasmus Villemoes wrote: >> On 19/10/2023 15.58, Marek Vasut wrote: >>> On 10/19/23 11:58, Rasmus Villemoes wrote: From: Doug Zobel Driver for the TI LP5562 4 channel LED controller. Supports independent on/off

[PATCH v3 2/2] board: rockchip: add Pine64 QuartzPro64 RK3588 board

2023-10-23 Thread Tom Fitzhenry
QuartzPro64 is a Rockchip RK3588 based SBC by Pine64. UART and boot over SD/eMMC/RJ45 are tested to work. Linux commits from next-20231013: 8152d3d070a9 ("arm64: dts: rockchip: Add QuartzPro64 SBC device tree") Signed-off-by: Tom Fitzhenry Reviewed-by: Kever Yang Cc: Eugen Hristev Cc: Jonas

[PATCH v3 1/2] dt-bindings: leds: import common led bindings from linux v6.5

2023-10-23 Thread Tom Fitzhenry
This brings in more colours, e.g. ORANGE needed for the QuartzPro64 DT. Linux commits: 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID definitions") Signed-off-by: Tom Fitzhenry Reviewed-by: Kever Yang --- include/dt-bindings/leds/common.h | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH v3 0/2] board: rockchip: add Pine64 QuartzPro64 RK3588 board

2023-10-23 Thread Tom Fitzhenry
Changes since v2: * Rebase on pending DT sync patch. * Collect r-b tags. Changes since v1: * Sync recently added DT from linux-next * Sync led dt-bindings Tom Fitzhenry (2): dt-bindings: leds: import common led bindings from linux v6.5 board: rockchip: add Pine64 QuartzPro64 RK3588 board

Re: [PATCH v2 2/2] board: rockchip: add Pine64 QuartzPro64 RK3588 board

2023-10-23 Thread Tom Fitzhenry
Kever Yang writes: > On 2023/10/17 23:59, Tom Fitzhenry wrote: >> This patch depends on "rockchip: rk3588: Sync device tree from linux >> maintainer tree"[0], since the QuartzPro64 upstream DT depends on upstream >> dtsi changes. > > This patch has been update to V2, and your patch are not

Re: [PATCH 1/1] general: fix GPL-2.0-or-later SPDX headers

2023-10-23 Thread Heinrich Schuchardt
On 23.10.23 15:43, Tom Rini wrote: On Sun, Oct 22, 2023 at 07:47:07PM +0200, Heinrich Schuchardt wrote: SPDX headers should use GPL-2.0-or-later and not GPL-2.0+. Signed-off-by: Heinrich Schuchardt So, first, iirc GPL-2.0+ is deprecated, but still valid, yes? We should use the current form

Re: [PATCH 1/1] general: fix GPL-2.0-or-later SPDX headers

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 03:51:39PM +0200, Heinrich Schuchardt wrote: > On 23.10.23 15:43, Tom Rini wrote: > > On Sun, Oct 22, 2023 at 07:47:07PM +0200, Heinrich Schuchardt wrote: > > > > > SPDX headers should use GPL-2.0-or-later and not GPL-2.0+. > > > > > > Signed-off-by: Heinrich Schuchardt

Re: [RESEND PATCH 1/1] clk: ti: k3-pll: Add calibration support for non fractional mode

2023-10-23 Thread Bryan Brattlof
Hi Vishal! +Tom On October 23, 2023 thus sayeth Vishal Mahaveer: > PLL calibration needs to be enabled when operating in non fractional > mode. Add the sequence to do a fast calibration when using PLL > in this mode. > > Signed-off-by: Vishal Mahaveer Reviewed-by: Bryan Brattlof > --- >

Re: [PATCH v5 0/4] Conclusive KSTR-SAMA5D27 support

2023-10-23 Thread Eugen Hristev
On 10/18/23 17:00, Artur Rojek wrote: Hi all, this is v5 of the Conclusive KSTR-SAMA5D27 support series. Patches [1/4], [2/4] and [3/4] remain unchanged. In patch [4/4], a new dtsi file has been added in order to keep U-Boot specific properties separate from the main dts. As such, MAINTAINERS

[PULL] u-boot-at91-2024.01-b

2023-10-23 Thread Eugen Hristev
Hello Tom, Please pull tag u-boot-at91-2024.01-b , the second set of at91 features for 2024.01 cycle. This feature set a new board named Conclusive KSTR sama5d27 with some small prerequisites patches. Thanks, Eugen The following changes since commit

[PATCH] MAINTAINERS: Remove non-working address from MAINTAINERS

2023-10-23 Thread Hugo Villeneuve
From: Hugo Villeneuve The address ariel.dalessan...@collabora.com is no longer working: A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: ariel.dalessan...@collabora.com host

[PATCH] ae350: Update defconfig list

2023-10-23 Thread Tom Rini
Update the list of defconfigs, this was missed with the last pull request of the u-boot-riscv tree. Signed-off-by: Tom Rini --- board/AndesTech/ae350/MAINTAINERS | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/board/AndesTech/ae350/MAINTAINERS

Re: [PATCH] smbios: arm64: Allow table to be written at a fixed addr

2023-10-23 Thread Mark Kettenis
> From: Simon Glass > Date: Mon, 23 Oct 2023 00:04:14 -0700 > > Hi Caleb, > > On Sat, 21 Oct 2023 at 01:43, Caleb Connolly > wrote: > > > > Hi Simon, > > > > On 21/10/2023 01:45, Simon Glass wrote: > > > U-Boot typically sets up its malloc() pool near the top of memory. On > > > ARM64 systems

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-10-23 Thread Mark Kettenis
> From: Simon Glass > Date: Mon, 23 Oct 2023 00:08:40 -0700 > > > > fdt_node_check_compatible() does most of the work...then you need to > > > check which FDT has the most specific match (i.e. latest in the string > > > list). That handles things like board revisions, variants, etc. > > > > > >

[PATCH] CI: Re-enable maintainer check

2023-10-23 Thread Tom Rini
At this point we have all of the defconfigs maintained again, so re-enable the check to prevent further regressions. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 05:37:34PM +0200, Mark Kettenis wrote: > > From: Simon Glass > > Date: Mon, 23 Oct 2023 00:08:40 -0700 > > > > > > fdt_node_check_compatible() does most of the work...then you need to > > > > check which FDT has the most specific match (i.e. latest in the string > > > >

Re: [RFC PATCH 1/5] arm: mach-k3: common: Reserve video memory from end of the RAM

2023-10-23 Thread Devarsh Thakkar
Hi Simon, Thanks for the review. On 19/10/23 19:26, Simon Glass wrote: > Hi Devarsh, > > On Mon, 16 Oct 2023 at 10:06, Devarsh Thakkar wrote: >> >> Move the function to setup video memory before page table >> reservation so that framebuffer memory gets reserved from >> the end of RAM. >> >>

[PATCH 4/4] ARM: meson: enable USB DFU + RAM on Amlogic boards with USB Gadget

2023-10-23 Thread Neil Armstrong
Enable DFU as an alternate USB boot method when script wasn't uploaded, this fixes USB full boot on G12/SM1 boards. Signed-off-by: Neil Armstrong --- configs/ad401_defconfig| 2 ++ configs/bananapi-cm4-cm4io_defconfig | 2 ++ configs/bananapi-m2-pro_defconfig | 2 ++

[PATCH 1/4] ARM: meson: enable FIT with LEGACY_IMAGE_FORMAT on all configs

2023-10-23 Thread Neil Armstrong
Allow all boards to boot with a fitImage, but keep support for Legacy image format for now. Signed-off-by: Neil Armstrong --- configs/bananapi-cm4-cm4io_defconfig | 4 configs/bananapi-m2-pro_defconfig | 4 configs/bananapi-m2s_defconfig| 4

[PATCH 3/4] configs: meson64: add alternate USB DFU boot target

2023-10-23 Thread Neil Armstrong
Add boot over DFU RAM as an alternate to running script at a fixed address like done today. The main culprit is that it's not possible to do that on G12A/Sm1 platforms due to changes in the USB boot protocol. With this, U-Boot will present a DFU device with a ram slot where the Host could write

[PATCH 2/4] configs: meson64: declare addr out of EXTRA_ENV_SETTINGS

2023-10-23 Thread Neil Armstrong
In order to reuse addresses for DFU RAM, define them separately, it's cleaner and will be easier to override. Signed-off-by: Neil Armstrong --- include/configs/meson64.h | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/include/configs/meson64.h

[PATCH v3 22/24] sunxi: psci: stop modeling register layout with C structs

2023-10-23 Thread Andre Przywara
From: Sam Edwards Since the sunxi support nowadays generally prefers #defined register offsets instead of modeling register layouts using C structs, now is a good time to do this for PSCI as well. This patch moves away from using the structs `sunxi_cpucfg_reg` and `sunxi_prcm_reg` in psci.c.

[PATCH v3 23/24] sunxi: psci: implement PSCI on R528

2023-10-23 Thread Andre Przywara
From: Sam Edwards This patch adds the necessary code to make nonsec booting and PSCI secondary core management functional on the R528/T113. Signed-off-by: Sam Edwards Tested-by: Maksim Kiselev Tested-by: Kevin Amadiva Reviewed-by: Andre Przywara --- arch/arm/cpu/armv7/Kconfig | 3 +-

[PATCH v3 24/24] sunxi: add MangoPi MQ-R board support

2023-10-23 Thread Andre Przywara
The MangoPi MQ-R board uses an Allwinner T113s Soc (with 128MB of embedded DRAM), support for which was just added to the code. Since the devicetree was already synced from the latest Linux kernel tree, all we need is a _defconfig file to add support for the board. Signed-off-by: Andre Przywara

Re: [v4.1 2/2] CI, pytest: Add a test for sandbox without LTO

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 12:05:34AM -0700, Simon Glass wrote: > Hi Tom, > > On Sat, 21 Oct 2023 at 11:34, Tom Rini wrote: > > > > On Sat, Oct 21, 2023 at 08:43:00AM -0700, Simon Glass wrote: > > > On Fri, 20 Oct 2023 at 14:53, Tom Rini wrote: > > > > > > > > The primary motivation for having a

Re: [PATCH] buildman: Include symbols in the read-only data section

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 12:52:43AM -0700, Simon Glass wrote: > When symbols switch between the inited data section and the read-only > data section their visbility changes, at present, with the -B option. > > This is confusing, since adding 'const' to a variable declaration can > make it look

Re: [PATCH v3 22/32] efi: Update EFI_LOADER to depend on DM_ETH

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 12:05:28AM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 22 Oct 2023 at 16:45, Tom Rini wrote: > > > > On Sun, Oct 22, 2023 at 02:55:32PM -0700, Simon Glass wrote: > > > Hi, > > > > > > On Sun, 22 Oct 2023 at 07:59, Tom Rini wrote: > > > > > > > > On Sun, Oct 22, 2023

[PATCH v3 06/24] pinctrl: sunxi: remove struct sunxi_gpio

2023-10-23 Thread Andre Przywara
So far every Allwinner SoC used the same basic pincontroller/GPIO register frame, and just differed by the number of implemented banks and pins, plus some special functionality from time to time. However the D1 and successors use a slightly different pinctrl register layout. Use that opportunity

[PATCH v3 08/24] pinctrl: sunxi: move PIO_BASE into sunxi_gpio.h

2023-10-23 Thread Andre Przywara
On the Allwinner platform we were describing a quite comprehensive memory map in a per-SoC header unser arch/arm. In the old days that was used by every driver, but nowadays it should only be needed by SPL drivers (not using the DT). Many addresses in there were never used, and some are not needed

[PATCH v3 09/24] pinctrl: sunxi: add new D1 pinctrl support

2023-10-23 Thread Andre Przywara
For the first time since at least the Allwinner A10 SoCs, the D1 (and related cores) use a new pincontroller MMIO register layout, so we cannot use our hardcoded, fixed offsets anymore. Ideally this would all be handled by devicetree and DM drivers, but for the DT-less SPL we still need the legacy

[PATCH v3 10/24] sunxi: introduce NCAT2 generation model

2023-10-23 Thread Andre Przywara
Allwinner seems to typically stick to a common MMIO memory map for several SoCs, but from time to time does some breaking changes, which also introduce new generations of some peripherals. The last time this happened with the H6, which apart from re-organising the base addresses also changed the

[PATCH v3 11/24] pinctrl: sunxi: add Allwinner D1 pinctrl description

2023-10-23 Thread Andre Przywara
Apart from using the new pinctrl MMIO register layout, the Allwinner D1 and related SoCs still need to usual set of mux values hardcoded in U-Boot's pinctrl driver. Add the values we need so far to this list, so that DM based drivers will just work without further ado. Signed-off-by: Andre

[PATCH v3 05/24] pinctrl: sunxi: add GPIO in/out wrappers

2023-10-23 Thread Andre Przywara
So far we were open-coding the pincontroller's GPIO output/input access in each function using that. Provide functions that wrap that nicely, and follow the existing pattern (set/get_{bank,}), so users don't need to know about the internals, and we can abstract the new D1 pinctrl more easily.

[PATCH v3 12/24] clk: sunxi: Add support for the D1 CCU

2023-10-23 Thread Andre Przywara
From: Samuel Holland Since the D1 CCU binding is defined, we can add support for its gates/resets, following the pattern of the existing drivers. Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Acked-by: Sean Anderson Signed-off-by: Andre Przywara --- drivers/clk/sunxi/Kconfig

[PATCH v3 13/24] sunxi: clock: D1/R528: Enable PLL LDO during PLL1 setup

2023-10-23 Thread Andre Przywara
The D1/R528/T113s SoCs introduce a new "LDO enable" bit in the CPUX_PLL. Just enable that when we program that PLL. Signed-off-by: Andre Przywara --- arch/arm/include/asm/arch-sunxi/clock_sun50i_h6.h | 1 + arch/arm/mach-sunxi/clock_sun50i_h6.c | 12 +++- 2 files changed, 8

[PATCH v3 14/24] sunxi: clock: support D1/R528 PLL6 clock

2023-10-23 Thread Andre Przywara
The PLL_PERIPH0 clock changed a bit in the D1/R528/T113s SoCs: there is new P0 divider at bits [18:16], and the M divider is 1. Add code to support this version of "PLL6". Signed-off-by: Andre Przywara --- .../include/asm/arch-sunxi/clock_sun50i_h6.h | 2 ++

[PATCH v3 15/24] Kconfig: sunxi: prepare for using drivers/ram/sunxi

2023-10-23 Thread Andre Przywara
At the moment all Allwinner DRAM initialisation routines are stored in arch/arm/mach-sunxi, even though those "drivers" are just a giant collection of writel's, without any architectural dependency. The R528/T113-s SoC (with ARM cores) and the D1/D1s Soc (with RISC-V cores) share the same die, so

[PATCH v3 16/24] sunxi: add R528/T113-s3/D1(s) DRAM initialisation code

2023-10-23 Thread Andre Przywara
The Allwinner R528/T113-s/D1/D1s SoCs all share the same die, so use the same DRAM initialisation code. Make use of prior art here and lift some code from awboot[1], which carried init code based on earlier decompilation efforts, but with a GPL2 license tag. This code has been heavily reworked and

[PATCH v3 18/24] sunxi: R528: add SMHC2 pin pull ups support

2023-10-23 Thread Andre Przywara
From: Okhunjon Sobirjonov Add support for eMMC (SMHC2) pin pull ups for R528 boards. The D1 and T113s (and even R329) SoCs do not support 8-bit eMMC anymore, so it's just four data pins to cover here. Signed-off-by: Okhunjon Sobirjonov Reviewed-by: Andre Przywara [Andre: adjust commit

[PATCH v3 17/24] sunxi: add Allwinner R528/T113 SoC support

2023-10-23 Thread Andre Przywara
This adds the remaining code bits to teach U-Boot about Allwinner's newest SoC generation. This was introduced with the RISC-V based Allwinner D1 SoC, which actually shares a die with the ARM cores versions called R528 (BGA, without DRAM) and T113s (QFP, with embedded DRAM). This adds the new

[PATCH v3 19/24] sunxi: refactor serial base addresses to avoid asm/arch/cpu.h

2023-10-23 Thread Andre Przywara
At the moment we have each SoC's memory map defined in its own cpu.h, which is included in include/configs/sunxi_common.h. This will be a problem with the introduction of Allwinner RISC-V support. Remove the inclusion of that header file from the common config header, instead move the required

[PATCH v3 20/24] sunxi: psci: clean away preprocessor macros

2023-10-23 Thread Andre Przywara
From: Sam Edwards This patch restructures psci.c to get away from the "many different function definitions switched by #ifdef" paradigm to the preferred style of having a single function definition with `if (IS_ENABLED(...))` to make the optimizer include only the appropriate function bodies

[PATCH v3 21/24] sunxi: psci: refactor register access to separate functions

2023-10-23 Thread Andre Przywara
From: Sam Edwards This is to prepare for R528, which does not have the typical "CPUCFG" block; it has a "CPUX" block which provides these same functions but is organized differently. Moving the hardware-access bits to their own functions separates the logic from the hardware so we can reuse the

[PATCH v3 04/24] pinctrl: sunxi: move pinctrl code

2023-10-23 Thread Andre Przywara
Move the existing sunxi-specific low level pinctrl routines from arch/arm/mach-sunxi into the existing GPIO code under drivers/gpio, so that the common code can be shared outside of arch/arm. This also takes the opportunity to move some definitions from our header file into the driver C file, as

  1   2   >