Re: [PATCH master] optee: build common code depending on CONFIG_HAVE_OPTEE

2024-03-07 Thread Sascha Hauer
ptee: build common code depending on CONFIG_HAVE_OPTEE https://git.pengutronix.de/cgit/barebox/commit/?id=3f575583d798 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] mci: add comment about hardcoded 512 bytes for DDR

2024-03-07 Thread Sascha Hauer
be stable) Best regards, -- Sascha Hauer

Re: [PATCH 1/2] console: scale number of log messages with available RAM

2024-03-07 Thread Sascha Hauer
with available RAM https://git.pengutronix.de/cgit/barebox/commit/?id=2c04db069871 (link may not be stable) [2/2] commands: dmesg: support aborting dmesg output with ctrl-c https://git.pengutronix.de/cgit/barebox/commit/?id=9eb0055d0ae9 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] fixup! of: fdt: implement fdt_machine_is_compatible

2024-03-05 Thread Sascha Hauer
On Mon, Mar 04, 2024 at 07:55:58PM +0100, Ahmad Fatoum wrote: > of: fdt: have fdt_machine_is_compatible() return a score > > fdt_machine_is_compatible() currently returns false on mismatch and > true on match. of_machine_is_compatible(), that it's meant to partially > replace, returns a positive

Re: [PATCH master] ARM: rpi: fix regression booting without VideoCore DT

2024-03-05 Thread Sascha Hauer
.de/cgit/barebox/commit/?id=d10e80e4d683 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH v2 000/113] efi: prepare for ARM64 EFI loader support

2024-03-05 Thread Sascha Hauer
ds: efi_handle_dump: don't ignore failure to parse GUID https://git.pengutronix.de/cgit/barebox/commit/?id=281c2b56b928 (link may not be stable) Best regards, -- Sascha Hauer

Re: barebox + picotcp-1.7.0

2024-03-04 Thread Sascha Hauer
Hi Antony, On Sun, Mar 03, 2024 at 09:58:03PM +0300, Antony Pavlov wrote: > Hi all! > > In the message [1] Sascha proposed to have the barebox network stack > and picotcp in parallel. > > This approach is used in the branch 20240303.picotcp-1.7.0 from > https://github.com/frantony/barebox/ repo

Re: [PATCH 2/4] of: fdt: implement fdt_machine_is_compatible

2024-03-04 Thread Sascha Hauer
On Mon, Mar 04, 2024 at 10:37:06AM +0100, Sascha Hauer wrote: > On Fri, Mar 01, 2024 at 02:04:43PM +0100, Ahmad Fatoum wrote: > > When finding compatible bootloader spec files, barebox will unflatten > > each DTB in turn, allocating objects for each property and node, only to >

Re: [PATCH 0/4] of: fdt: read blspec/FIT DT compat without unflattening

2024-03-04 Thread Sascha Hauer
(link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] ARM: i.MX: sabresd: Add support for i.MX6DL board variant

2024-03-04 Thread Sascha Hauer
r i.MX6DL board variant https://git.pengutronix.de/cgit/barebox/commit/?id=7328dbe79895 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] ARM: i.MX: ele: remove unnecessary argument

2024-03-04 Thread Sascha Hauer
On Fri, 01 Mar 2024 12:19:15 +0100, Sascha Hauer wrote: > The get_response argument to imx9_s3mua_call() is always set to true by > the callers. It must be like that because in the ELE API Reference Guide > every call into the ELE has a response. Drop the unnecessary argument. >

Re: [PATCH 2/4] of: fdt: implement fdt_machine_is_compatible

2024-03-04 Thread Sascha Hauer
On Fri, Mar 01, 2024 at 02:04:43PM +0100, Ahmad Fatoum wrote: > When finding compatible bootloader spec files, barebox will unflatten > each DTB in turn, allocating objects for each property and node, only to > compare a single property and then free all the allocations again. > > Given that this

Re: [PATCH v2] mtd: don't try to detect UBI in too small flash partitions

2024-03-04 Thread Sascha Hauer
it wasn't possible to read as much > > [...] Applied, thanks! [1/1] mtd: don't try to detect UBI in too small flash partitions https://git.pengutronix.de/cgit/barebox/commit/?id=023cae6caa63 (link may not be stable) Best regards, -- Sascha Hauer

Re: (subset) [PATCH 1/4] mci: dwcmshc-sdhci: Remove superfluous call to sdhci_enable_v4_mode

2024-03-04 Thread Sascha Hauer
PECIFIC_AREA https://git.pengutronix.de/cgit/barebox/commit/?id=8cada69e81be (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH v2] mci: dwcmshc-sdhci: add support for Kalray Coolidge v2 SoC eMMC controller

2024-03-04 Thread Sascha Hauer
gt; > [...] Applied, thanks! [1/1] mci: dwcmshc-sdhci: add support for Kalray Coolidge v2 SoC eMMC controller https://git.pengutronix.de/cgit/barebox/commit/?id=8648400a46de (link may not be stable) Best regards, -- Sascha Hauer

[PATCH] ARM: i.MX: ele: remove unnecessary argument

2024-03-01 Thread Sascha Hauer
The get_response argument to imx9_s3mua_call() is always set to true by the callers. It must be like that because in the ELE API Reference Guide every call into the ELE has a response. Drop the unnecessary argument. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/ele.c | 34

Re: [PATCH] Patch to fix bootm barebox load address alignment to acomodate ADRP instruction

2024-03-01 Thread Sascha Hauer
ngutronix.de/cgit/barebox/commit/?id=af694bdae717 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH v2 1/2] partitions: efi: change first partition number from 1 to 0

2024-03-01 Thread Sascha Hauer
On Thu, 29 Feb 2024 08:18:24 +0100, Sascha Hauer wrote: > Traditionally barebox starts partition numbers at 0. This was changed > in bdc3cb54dc to start at 1. This was done to make the parted numbering > consistent to the Linux tool. This breaks boot scripts though which &

Re: [PATCH master] optee: don't warn about missing OP-TEE header

2024-03-01 Thread Sascha Hauer
follow, because the header isn't written to the scratch > area is printed with error log level. > > [...] Applied, thanks! [1/1] optee: don't warn about missing OP-TEE header https://git.pengutronix.de/cgit/barebox/commit/?id=d69c84346b30 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH master] optee: check optee_verify_header argument for error pointers

2024-03-01 Thread Sascha Hauer
[1/1] optee: check optee_verify_header argument for error pointers https://git.pengutronix.de/cgit/barebox/commit/?id=231e81f8645c (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH master] firmware: arm_scmi: pmdomain: restrict default y for driver

2024-03-01 Thread Sascha Hauer
arebox/commit/?id=a6e780cbe3a5 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH next] fixup! usb: xhci: reset endpoint on USB stall

2024-03-01 Thread Sascha Hauer
mapping the buffer, which is > detected by CONFIG_DMA_API_DEBUG: > > [...] Applied, thanks! [1/1] fixup! usb: xhci: reset endpoint on USB stall https://git.pengutronix.de/cgit/barebox/commit/?id=aed18e44bbd9 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH next] fixup! usb: xhci: reset endpoint on USB stall

2024-03-01 Thread Sascha Hauer
On Fri, Mar 01, 2024 at 08:44:00AM +0100, Ahmad Fatoum wrote: > usb: xhci: call dma_unmap_single in all error paths > > A new early exit for stalled USB was added that resets the endpoint > before returning an error code to the caller. > > This unintentionally happened before unmapping the

Re: [PATCH] ARM: i.MX93: tqm93xx: add PMIC node

2024-02-29 Thread Sascha Hauer
On Mon, 05 Feb 2024 13:53:01 +0100, Sascha Hauer wrote: > The PMIC is needs to be configured on the tqm93xx to properly reset the > board, see the board specific initialisation code. We had a PMIC node > in our downstream dts file which we dropped in favour for using the >

Re: [PATCH] net: drop unused rarp.h

2024-02-29 Thread Sascha Hauer
On Tue, 27 Feb 2024 10:39:23 +0300, Antony Pavlov wrote: > Applied, thanks! [1/1] net: drop unused rarp.h https://git.pengutronix.de/cgit/barebox/commit/?id=3b38db4c3219 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH 1/2] ARM: i.MX8M: drop function prototype for removed imx8m_uid

2024-02-29 Thread Sascha Hauer
X8M: drop function prototype for removed imx8m_uid https://git.pengutronix.de/cgit/barebox/commit/?id=92a798ed6b94 (link may not be stable) [2/2] env: export getenv_ullx() helper https://git.pengutronix.de/cgit/barebox/commit/?id=3aac1a9dfc97 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH 1/6] driver: make struct bus_type::match optional

2024-02-29 Thread Sascha Hauer
stable) [6/6] usb: print number of skipped OTG controllers when scanning https://git.pengutronix.de/cgit/barebox/commit/?id=0b90c781d183 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] serial: lpuart32: fix rx stall on FIFO overflow

2024-02-29 Thread Sascha Hauer
On Wed, 28 Feb 2024 11:21:41 +0100, Sascha Hauer wrote: > When the rx FIFO overruns then no new characters are received, even > when the FIFO is read from and space becomes available again. > Acknowledge the overrun in this case to let the UART continue to work. > > Applied

Re: [PATCH] mtd: don't try to detect UBI in too small flash partitions

2024-02-28 Thread Sascha Hauer
Hi Ahmad, On Wed, Feb 28, 2024 at 05:03:04PM +0100, Ahmad Fatoum wrote: > The detect callback will try to detect an UBI volume inside a partition. > If that partition happens to be smaller than 512 bytes, detect will fail > with -EINVAL. This 512 bytes here is confusing. You are referring to the

[PATCH v2 1/2] partitions: efi: change first partition number from 1 to 0

2024-02-28 Thread Sascha Hauer
tions: efi: implement partition manipulation support") Signed-off-by: Sascha Hauer --- common/partitions/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/partitions/efi.c b/common/partitions/efi.c index 51e92f65c5..703d23c715 100644 --- a/common/partitions/e

[PATCH v2 2/2] partitions: dos: change first partition number from 1 to 0

2024-02-28 Thread Sascha Hauer
tions: dos: implement partition manipulation support") Signed-off-by: Sascha Hauer --- Notes: Changes since v1: - fix partuuid number passed to Linux common/partitions/dos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/partitions/dos.

Re: [PATCH 10/12] partitions: dos: implement partition manipulation support

2024-02-28 Thread Sascha Hauer
On Wed, Feb 28, 2024 at 06:37:45PM +0100, Ahmad Fatoum wrote: > Hello Sascha, > > On 19.02.24 09:31, Sascha Hauer wrote: > > - pentry = xzalloc(sizeof(*pentry)); > > + dpart = xzalloc(sizeof(*dpart)); > > + dpart->boot_indic

[PATCH 1/2] partitions: efi: change first partition number from 1 to 0

2024-02-28 Thread Sascha Hauer
tions: efi: implement partition manipulation support") Signed-off-by: Sascha Hauer --- common/partitions/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/partitions/efi.c b/common/partitions/efi.c index 51e92f65c5..703d23c715 100644 --- a/common/partitions/e

[PATCH 2/2] partitions: dos: change first partition number from 1 to 0

2024-02-28 Thread Sascha Hauer
tions: dos: implement partition manipulation support") Signed-off-by: Sascha Hauer --- common/partitions/dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/partitions/dos.c b/common/partitions/dos.c index 47b5764124..bec5ee60bc 100644 --- a/common/partitions/d

Re: [PATCH v2 0/3] arm: mach-imx: tzasc: port lock id_swap_bypass bit

2024-02-28 Thread Sascha Hauer
able) [3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros https://git.pengutronix.de/cgit/barebox/commit/?id=f061388ffe24 (link may not be stable) Best regards, -- Sascha Hauer

Re: NFSv4 boot support?

2024-02-28 Thread Sascha Hauer
On Wed, Feb 28, 2024 at 02:50:58PM +0300, Antony Pavlov wrote: > On Wed, 28 Feb 2024 10:20:27 +0100 > Sascha Hauer wrote: > > > Hi Sascha! > > > On Wed, Feb 28, 2024 at 10:26:15AM +0300, Antony Pavlov wrote: > > > On Sat, 17 Feb 2024 09:51:02 +0100 > >

Re: [PATCH 3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros

2024-02-28 Thread Sascha Hauer
On Wed, Feb 28, 2024 at 09:46:51AM +0100, Stefan Kerkmann wrote: > Hi Sascha, > > On 27.02.24 09:44, Sascha Hauer wrote: > > On Mon, Feb 26, 2024 at 03:40:23PM +0100, Stefan Kerkmann wrote: > > > Instead of passing in configuration parameters at runtime we can utilize

[PATCH] serial: lpuart32: fix rx stall on FIFO overflow

2024-02-28 Thread Sascha Hauer
When the rx FIFO overruns then no new characters are received, even when the FIFO is read from and space becomes available again. Acknowledge the overrun in this case to let the UART continue to work. Signed-off-by: Sascha Hauer --- drivers/serial/serial_lpuart32.c | 21 - 1

Re: NFSv4 boot support?

2024-02-28 Thread Sascha Hauer
On Wed, Feb 28, 2024 at 10:26:15AM +0300, Antony Pavlov wrote: > On Sat, 17 Feb 2024 09:51:02 +0100 > Ahmad Fatoum wrote: > > Hi All! > > > Hello Antony, > > > > On 05.02.24 10:59, Antony Pavlov wrote: > > > On Wed, 31 Jan 2024 22:37:50 +0100 > > > Ahmad Fatoum wrote: > > > > > > Hi All! > >

Re: [PATCH] ARM: i.MX93: add bootsource detection

2024-02-27 Thread Sascha Hauer
On Tue, 20 Feb 2024 12:45:08 +0100, Sascha Hauer wrote: > On i.MX93 the ROM API can be used to detect the bootsource. Implement > support for this. > > Applied, thanks! [1/1] ARM: i.MX93: add bootsource detection https://git.pengutronix.de/cgit/barebox/commit/?id=47e42821ec

Re: [PATCH 3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros

2024-02-27 Thread Sascha Hauer
On Mon, Feb 26, 2024 at 03:40:23PM +0100, Stefan Kerkmann wrote: > Instead of passing in configuration parameters at runtime we can utilize > the `cpu_is_mx8xyz` macro family to determine which bits should be set. > > As the tzasc driver is imx specific, all functions are prefixed with > `imx8m_`

Re: [PATCH 1/2] ARM: i.MX6ul: TQMa6ul: fix mmc aliases

2024-02-26 Thread Sascha Hauer
On Mon, 26 Feb 2024 15:14:57 +0100, Sascha Hauer wrote: > The TQMa6ul upstream device trees contain aliases which swap the order > of the mmc nodes, so what used to be mmc0 has now become mmc1 and vice > versa. With this mmc0 now is the eMMC and mmc1 is the SD card. > > Introduc

Re: [PATCH] ARM: i.MX: move barebox,bootsource-mmc aliases to chosen node

2024-02-26 Thread Sascha Hauer
On Mon, 26 Feb 2024 16:31:17 +0100, Sascha Hauer wrote: > The barebox,bootsource-* properties are looked for in /chosen, not in > /aliases. Move the properties to the correct node. > > Applied, thanks! [1/1] ARM: i.MX: move barebox,bootsource-mmc aliases to chosen node

[PATCH] ARM: i.MX: move barebox,bootsource-mmc aliases to chosen node

2024-02-26 Thread Sascha Hauer
The barebox,bootsource-* properties are looked for in /chosen, not in /aliases. Move the properties to the correct node. Fixes: 7eedf79ba9 ("ARM: i.MX: add barebox,bootsource-mmc aliases") Signed-off-by: Sascha Hauer --- arch/arm/dts/imx51.dtsi | 3 +++ arch/arm/dts/imx53.dtsi | 3

[PATCH 1/2] ARM: i.MX6ul: TQMa6ul: fix mmc aliases

2024-02-26 Thread Sascha Hauer
that bootsource_get_instance() matches our mmc numbering again. Also register the eMMC BBU handler on /dev/mmc0 and the SD BBU handler on /dev/mmc1. Fixes: 5a23f05267 ("ARM: tqma6ul: use upstream device trees") Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma6ulx/board.c| 8 arch/arm/

[PATCH 2/2] ARM: i.MX6ul: TQMa6ul: install barebox on eMMC boot partitions

2024-02-26 Thread Sascha Hauer
Install barebox on the eMMC boot partitions which offer enough space for bigger barebox images and which also provides a failsafe update. Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma6ulx/board.c| 2 +- arch/arm/dts/imx6ul-tqma6ul-common.dtsi | 5 - 2 files changed, 1

[PATCH] ARM: i.MX6: TQMa6ulx: add OP-TEE support

2024-02-23 Thread Sascha Hauer
as a fixup to be applied on the Linux device tree. Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma6ulx/board.c | 64 --- .../flash-header-imx6ul-tqma6ulx.imxcfg | 3 + arch/arm/boards/tqma6ulx/lowlevel.c | 26 +++- arch/arm/boards/tqma6ulx/tqma6ulx.h

Re: [PATCH v4 00/14] ARM: at91: skov-arm9cpu (SAM9263) first stage support

2024-02-23 Thread Sascha Hauer
be stable) Best regards, -- Sascha Hauer

Re: [PATCH 8/8] ARM: tqma6ul: use upstream device trees

2024-02-22 Thread Sascha Hauer
On Wed, Feb 21, 2024 at 05:42:49PM +0100, Ahmad Fatoum wrote: > Hello Sascha, > > On 21.02.24 16:03, Sascha Hauer wrote: > > The tqma6ul has several upstream device trees depending on the exact > > board type. This removes the downstream device tree in favour for the >

Re: [PATCH master] ARM: i.MX8MP: dts: remove power domains referenced by media_blk_ctrl

2024-02-22 Thread Sascha Hauer
wer domains referenced by media_blk_ctrl https://git.pengutronix.de/cgit/barebox/commit/?id=02f8945abcb0 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] bbu: Emit a message about what happens also when -y is given

2024-02-22 Thread Sascha Hauer
lied, thanks! [1/1] bbu: Emit a message about what happens also when -y is given https://git.pengutronix.de/cgit/barebox/commit/?id=73ac8b16486f (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH 0/4] make I2C GPIO expander provided buttons work

2024-02-22 Thread Sascha Hauer
On Wed, 21 Feb 2024 15:27:56 +0100, Sascha Hauer wrote: > The TQMa6UL board uses the gpio-keys driver with GPIOs provided by a > PCA9554 I2C GPIO expander. This currently doesn't work as the GPIOs > are read in a poller during an ongoing I2C transfer on the same bus. > > Th

Re: [PATCH 0/8] Update TQMa6UL

2024-02-22 Thread Sascha Hauer
On Wed, 21 Feb 2024 16:03:15 +0100, Sascha Hauer wrote: > The TQMa6UL uses a downstream device tree, but there also appeared > device trees for it upstream. Use the upstream device trees and add > support for reading the board EEPROM to pick the right device tree > for a particula

Re: [PATCH] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf

2024-02-22 Thread Sascha Hauer
! [1/1] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf https://git.pengutronix.de/cgit/barebox/commit/?id=e29607037621 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] ARM: i.MX8MM: innocomm-wb15: switch to upstream DT

2024-02-22 Thread Sascha Hauer
tch to upstream DT https://git.pengutronix.de/cgit/barebox/commit/?id=b2b465a75814 (link may not be stable) Best regards, -- Sascha Hauer

[PATCH 4/8] ARM: i.MX6: add i2c4 base address

2024-02-21 Thread Sascha Hauer
Add a define for the I2C4 base address. Signed-off-by: Sascha Hauer --- include/mach/imx/imx6-regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mach/imx/imx6-regs.h b/include/mach/imx/imx6-regs.h index 89a3b267c6..957b95bc95 100644 --- a/include/mach/imx/imx6-regs.h +++ b

[PATCH 6/8] ARM: tqma6ul: enable enet_ref_125m clk

2024-02-21 Thread Sascha Hauer
The TQMa6ul needs the enet_ref_125m clk as phy clock. This is currently not enabled, so ethernet on fec2 is not working. As there's no good place to enable it currently do this in the board code. Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma6ulx/board.c | 8 1 file changed, 8

[PATCH 5/8] ARM: tqma6ul: add pr_fmt string

2024-02-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma6ulx/board.c| 1 + arch/arm/boards/tqma6ulx/lowlevel.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boards/tqma6ulx/board.c b/arch/arm/boards/tqma6ulx/board.c index 4a9429a8c3..b3cecaa97d 100644 --- a/arch/arm/boards

[PATCH 8/8] ARM: tqma6ul: use upstream device trees

2024-02-21 Thread Sascha Hauer
o this can be added as new board type when found. Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma6ulx/board.c | 7 +- arch/arm/boards/tqma6ulx/lowlevel.c | 45 ++- arch/arm/dts/Makefile | 5 +- arch/arm/dts/imx6ul-mba6ulx.dtsi

[PATCH 1/8] board: tq: add missing select

2024-02-21 Thread Sascha Hauer
The TQ board code needs CRC_ITU_T. Select it. Signed-off-by: Sascha Hauer --- common/boards/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/boards/Kconfig b/common/boards/Kconfig index fe3a60d508..f6d4a56f88 100644 --- a/common/boards/Kconfig +++ b/common/boards/Kconfig

[PATCH 3/8] board: tq: add support for 16bit eeprom

2024-02-21 Thread Sascha Hauer
Some I2C EEPROMs must be addressed with two bytes. Add the address argument to pbl_tq_read_eeprom(). The actual EEPROM address will be 0x0 always, but we can use the address to pass I2C_ADDR_16_BIT through it. Signed-off-by: Sascha Hauer --- arch/arm/boards/tqma93xx/lowlevel.c | 2 +- common

[PATCH 2/8] board: tq: fix format specifier

2024-02-21 Thread Sascha Hauer
The correct format specifier for a size_t type is %zu. Use it. Signed-off-by: Sascha Hauer --- common/boards/tq/tq_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/boards/tq/tq_eeprom.c b/common/boards/tq/tq_eeprom.c index 220d75ecab..06f11a8a94 100644

[PATCH 7/8] net: phy: fix miibus parent device of_node not matching phy node

2024-02-21 Thread Sascha Hauer
{} subnode in miibus::dev.of_node, so use that to match against the phy nodes parent. This occured on a TQMa6UL where two FECs are registered, but both phys are connected to the FEC2. Signed-off-by: Sascha Hauer --- drivers/net/phy/mdio_bus.c | 10 +++--- drivers/net/phy/phy.c | 2 +- 2 files

[PATCH 0/8] Update TQMa6UL

2024-02-21 Thread Sascha Hauer
The TQMa6UL uses a downstream device tree, but there also appeared device trees for it upstream. Use the upstream device trees and add support for reading the board EEPROM to pick the right device tree for a particular board type. Sascha Hauer (8): board: tq: add missing select board: tq: fix

[PATCH 1/4] gpio: add slice support

2024-02-21 Thread Sascha Hauer
GPIOs are not only provided by raw register accesses but also by I2C devices. Add a slice to a gpio chip so that a gpio user can check if the slice is acquired before using it in a poller. Signed-off-by: Sascha Hauer --- drivers/gpio/gpiolib.c | 11 +++ include/gpio.h | 15

[PATCH 3/4] input: gpio_keys: limit poll rate

2024-02-21 Thread Sascha Hauer
GPIOs a sometimes slow to read out, for example when they are provided by I2C GPIO expanders. Limit the poll rate so that we do not slow down barebox more than necessary in these cases. Signed-off-by: Sascha Hauer --- drivers/input/gpio_keys.c | 20 1 file changed, 8

[PATCH 2/4] gpio: pca953x: depend on i2c slice

2024-02-21 Thread Sascha Hauer
The GPIOs provided by the pca953x cannot be used inside a poller while the I2C controller is in use. Add a dependency to from the GPIO controller to the I2C controller for this purpose. Signed-off-by: Sascha Hauer --- drivers/gpio/gpio-pca953x.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 4/4] input: gpio_keys: only use gpios in poller when not in use

2024-02-21 Thread Sascha Hauer
Before reading GPIOs in a poller check if they are available. Signed-off-by: Sascha Hauer --- drivers/input/gpio_keys.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c index fd3995d01f..c23d20563c 100644

[PATCH 0/4] make I2C GPIO expander provided buttons work

2024-02-21 Thread Sascha Hauer
before using it. Sascha Hauer (4): gpio: add slice support gpio: pca953x: depend on i2c slice input: gpio_keys: limit poll rate input: gpio_keys: only use gpios in poller when not in use drivers/gpio/gpio-pca953x.c | 2 ++ drivers/gpio/gpiolib.c | 11 +++ drivers/input

[PATCH] ARM: i.MX93: add bootsource detection

2024-02-20 Thread Sascha Hauer
On i.MX93 the ROM API can be used to detect the bootsource. Implement support for this. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/imx9.c | 1 + arch/arm/mach-imx/romapi.c | 67 ++ include/mach/imx/generic.h | 1 + 3 files changed, 69 insertions

Re: [PATCH v2 1/5] driver: refactor probe return value handling into switch statement

2024-02-20 Thread Sascha Hauer
t more explicit https://git.pengutronix.de/cgit/barebox/commit/?id=e87ca6e235e4 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH 00/15] usb: xhci: pull in fixes from U-Boot v2024.01

2024-02-20 Thread Sascha Hauer
(link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH 2/3] bootsource: add function to get device_node we booted from

2024-02-20 Thread Sascha Hauer
On Mon, Feb 19, 2024 at 04:21:07PM +0100, Sascha Hauer wrote: > On Mon, Feb 19, 2024 at 03:59:36PM +0100, Marco Felsch wrote: > > On 24-02-19, Sascha Hauer wrote: > > > We have a relation between the bootsource and the corresponding > > > device_node. Add a functio

Re: [PATCH 1/3] partitions: efi: Allow to create barebox environment partition

2024-02-20 Thread Sascha Hauer
On Mon, Feb 19, 2024 at 04:20:55PM +0100, Ahmad Fatoum wrote: > On 19.02.24 15:51, Sascha Hauer wrote: > > We have a GUID for partitions to use for barebox environment. Add an > > option for parted to create these. > > > > Signed-off-by: Sascha Hauer > > ---

Re: [PATCH] default environment: make string arguments const

2024-02-20 Thread Sascha Hauer
On Mon, 19 Feb 2024 11:55:07 +0100, Sascha Hauer wrote: > Change default_environment_path_set() to take a const char * and let > default_environment_path_get() return a const char *. > Also, do not keep a copy of the string passed to > default_environment_path_set() rather than

Re: [PATCH 00/12] Partition table manipulation support

2024-02-20 Thread Sascha Hauer
On Mon, 19 Feb 2024 09:31:28 +0100, Sascha Hauer wrote: > This series adds support for changing partition tables. There is both a > C API and a new command to create partition tables, to create partitions > or to delete partitions. Both MSDOS and GPT tables are supported, > al

Re: [PATCH] ARM: i.MX: add barebox,bootsource-mmc aliases

2024-02-20 Thread Sascha Hauer
On Tue, Feb 20, 2024 at 10:12:47AM +0100, Ahmad Fatoum wrote: > On 20.02.24 10:08, Ahmad Fatoum wrote: > > Hello Sascha, > > > > On 20.02.24 08:13, Sascha Hauer wrote: > >> Several boards overwrite the standard mmc aliases to give them a board > >> specifi

[PATCH v2] ARM: i.MX: add barebox,bootsource-mmc aliases

2024-02-20 Thread Sascha Hauer
nodes that provides them. Add these aliases for the newer i.MX SoCs. Signed-off-by: Sascha Hauer --- arch/arm/dts/imx51.dtsi | 4 arch/arm/dts/imx53.dtsi | 4 arch/arm/dts/imx6qdl.dtsi | 4 arch/arm/dts/imx8mm.dtsi | 3 +++ arch/arm/dts/imx8mn.dtsi | 3 +++ arch/arm/dts

v2024.02.0

2024-02-20 Thread Sascha Hauer
e the bl33 loadaddr ARM: i.MX8M: cleanup MX8M*_ATF_BL33_BASE_ADDR defines ARM: i.MX8M: fix optee of-fixup logic Rouven Czerwinski (1): optee: add support to verify 64-bit headers as well Sascha Hauer (90): net: remove unused field from struct eth_device pbl/pmic

Re: [PATCH] treewide: use dev_err_probe instead of comparisons against EPROBE_DEFER

2024-02-19 Thread Sascha Hauer
On Mon, Feb 19, 2024 at 06:26:59PM +0100, Ahmad Fatoum wrote: > Drivers should not need to compare an error value against EPROBE_DEFER. > We have a number of drivers doing that though to decide whether to print > an error or not. This error message will be lost if the probe is > deferred, so use

Re: [PATCH] treewide: use dev_err_probe instead of comparisons against EPROBE_DEFER

2024-02-19 Thread Sascha Hauer
st EPROBE_DEFER https://git.pengutronix.de/cgit/barebox/commit/?id=b305ee5e0439 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] usb: core: replace calls to strerror with %pe format specifier

2024-02-19 Thread Sascha Hauer
rerror with %pe format specifier https://git.pengutronix.de/cgit/barebox/commit/?id=ecab0d0bc4c9 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] ARM: Layerscape: TQMLS1046a: switch to upstream DT

2024-02-19 Thread Sascha Hauer
it.pengutronix.de/cgit/barebox/commit/?id=3644f6ce5e80 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH master] ddr: fsl: fix possible use of uninitalized variable

2024-02-19 Thread Sascha Hauer
n uninitialized total_mem. Fix this by initializing it to 0. > > > [...] Applied, thanks! [1/1] ddr: fsl: fix possible use of uninitalized variable https://git.pengutronix.de/cgit/barebox/commit/?id=1d8515a0d3f7 (link may not be stable) Best regards, -- Sascha Hauer

[PATCH] ARM: i.MX: add barebox,bootsource-mmc aliases

2024-02-19 Thread Sascha Hauer
nodes that provides them. Add these aliases for the newer i.MX SoCs. Signed-off-by: Sascha Hauer --- arch/arm/dts/imx51.dtsi | 4 arch/arm/dts/imx53.dtsi | 4 arch/arm/dts/imx6qdl.dtsi | 4 arch/arm/dts/imx8mm.dtsi | 3 +++ arch/arm/dts/imx8mn.dtsi | 3 +++ arch/arm/dts

Re: [PATCH 2/3] bootsource: add function to get device_node we booted from

2024-02-19 Thread Sascha Hauer
On Mon, Feb 19, 2024 at 03:59:36PM +0100, Marco Felsch wrote: > On 24-02-19, Sascha Hauer wrote: > > We have a relation between the bootsource and the corresponding > > device_node. Add a function to get the device_node we booted from. > > This is already open coded in of_fixu

[PATCH 1/3] partitions: efi: Allow to create barebox environment partition

2024-02-19 Thread Sascha Hauer
We have a GUID for partitions to use for barebox environment. Add an option for parted to create these. Signed-off-by: Sascha Hauer --- commands/parted.c | 2 +- common/partitions/efi.c | 3 +++ include/efi/partition.h | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 3/3] environment: use barebox environment from GPT partitions

2024-02-19 Thread Sascha Hauer
default_environment_path_set() then that will be used instead. Signed-off-by: Sascha Hauer --- common/environment.c | 65 +++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/common/environment.c b/common/environment.c index a7432a84f3..583a2f0a03 100644

[PATCH 2/3] bootsource: add function to get device_node we booted from

2024-02-19 Thread Sascha Hauer
We have a relation between the bootsource and the corresponding device_node. Add a function to get the device_node we booted from. This is already open coded in of_fixup_bootargs_bootsource(), use the newly created function for it. Signed-off-by: Sascha Hauer --- common/bootsource.c | 14

[PATCH 0/3] use environment partitions in GPT

2024-02-19 Thread Sascha Hauer
partition itself, so barebox couldn't persist the environment on an unpartitioned device. Now with parted support this has changed, so I think it's worth it to give it a try now. Sascha Sascha Hauer (3): partitions: efi: Allow to create barebox environment partition bootsource: add function to get

[PATCH] default environment: make string arguments const

2024-02-19 Thread Sascha Hauer
us to free the string passed to default_environment_path_set() after usage by some callers. Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/omap_generic.c | 1 + commands/loadenv.c| 3 ++- common/efi/payload/init.c | 1 + common/environment.c | 13

[PATCH 10/12] partitions: dos: implement partition manipulation support

2024-02-19 Thread Sascha Hauer
This fills in the msdos specific function hooks to add/remove partitions. Signed-off-by: Sascha Hauer --- common/partitions/dos.c | 256 ++-- 1 file changed, 243 insertions(+), 13 deletions(-) diff --git a/common/partitions/dos.c b/common/partitions/dos.c

[PATCH 12/12] commands: add parted

2024-02-19 Thread Sascha Hauer
KiB as unit and printing the result at the end: $ parted mmc0 unit KiB mklabel gpt mkpart rootfs ext4 1024 131072 print The "refresh" command is barebox specific and is useful when for example the alternate GPT is missing. This happens when an image is written. Signed-off-by: Sa

[PATCH 11/12] partitions: efi: implement partition manipulation support

2024-02-19 Thread Sascha Hauer
This fills in the partition manipulation function hooks to add/remove efi (GPT) partitions and to write a GPT partition table. This depends on te msdos partition writing support for generating a protective MBR. Signed-off-by: Sascha Hauer --- common/partitions/Kconfig | 1 + common/partitions

[PATCH 07/12] partition: add PARTITION_LINUX_DATA_GUID define

2024-02-19 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- include/efi/partition.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/efi/partition.h b/include/efi/partition.h index 0ca2a72eb9..40ff4c557f 100644 --- a/include/efi/partition.h +++ b/include/efi/partition.h @@ -45,6 +45,9 @@ #define

[PATCH 06/12] linux/sizes.h: add more defines

2024-02-19 Thread Sascha Hauer
Update linux/sizes.h from Linux to get Terabyte defines. Signed-off-by: Sascha Hauer --- include/linux/sizes.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/sizes.h b/include/linux/sizes.h index 1d222daeab..08fe344bc4 100644 --- a/include/linux/sizes.h +++ b

[PATCH 09/12] partitions: implement partition manipulation support

2024-02-19 Thread Sascha Hauer
sanity checks like partition overlap checking, access beyond device cheks and call into not yet existing efi or msdos specific function hooks. Signed-off-by: Sascha Hauer --- common/Kconfig | 3 + common/partitions.c | 156 --- include/partitions.h

[PATCH 01/12] partitions: dos: save indention level

2024-02-19 Thread Sascha Hauer
Save an indention level by continuing early in the loop. Signed-off-by: Sascha Hauer --- common/partitions/dos.c | 52 + 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/common/partitions/dos.c b/common/partitions/dos.c index 7472824b00

[PATCH 08/12] partitions: move parser.h to include/partitions.h

2024-02-19 Thread Sascha Hauer
This will be needed by upcoming partition manipulation code, so move it to include/ Signed-off-by: Sascha Hauer --- common/partitions.c| 3 +-- common/partitions/dos.c| 3 +-- common/partitions/efi.c| 2

[PATCH 03/12] partition: allocate struct partition in parser

2024-02-19 Thread Sascha Hauer
Allocate struct partition in the parser rather than in the core partition code. Doing so allows the parser to embed struct partition in an implementation specific struct type. Signed-off-by: Sascha Hauer --- common/partitions.c| 12 common/partitions/dos.c| 56

<    1   2   3   4   5   6   7   8   9   10   >