[PATCH 2/2] ARM: i.MX8MN: set SION bits for i2c mux options

2024-03-08 Thread Bastian Krause
i2c data lines are bidirectional, so the SION bit should be set. Apply them to all i2c mux options. Suggested-by: Ahmad Fatoum Signed-off-by: Bastian Krause --- include/mach/imx/iomux-mx8mn.h | 64 +- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git

[PATCH] fs: fix overlap of O_RWSIZE with new O_PATH/O_CHROOT flags

2024-03-08 Thread Ahmad Fatoum
O_PATH had the same value as O_RWSIZE_2, while O_CHROOT overlapped with O_RWSIZE_4. Fix this by moving up the bits used for O_PATH and O_CHROOT. This resolves the EINVAL reported when running md -w 0. Signed-off-by: Ahmad Fatoum --- This fixes a regression in next cause by: fs: implement O_PAT

[PATCH 1/2] ARM: i.MX8MM: set SION bits for i2c2, i2c3, i2c4 mux options

2024-03-08 Thread Bastian Krause
i2c data lines are bidirectional, so the SION bit should be set. For i2c1, this is already the case. Apply the same to the remaining i2c mux options. Suggested-by: Ahmad Fatoum Signed-off-by: Bastian Krause --- include/mach/imx/iomux-mx8mm.h | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCH 10/12] mci: sdhci: add tuning support

2024-03-08 Thread Steffen Trumtrar
The arasan SDHCI driver doesn't use MMC tuning but SDHCI tuning. Both are not supported yet in barebox. Add SDHCI tuning support from linux v6.7. Signed-off-by: Steffen Trumtrar Signed-off-by: Ahmad Fatoum --- drivers/mci/sdhci.c | 244 +++- drive

[PATCH 09/12] mci: mci-core: add HS200 support

2024-03-08 Thread Steffen Trumtrar
HS200 is a timing mode for eMMCs to work 8bit with 200MHz clocks. To be used, drivers need to set the correct drive strength, clock phases and then SDHCI can start tuning for HS200. Signed-off-by: Steffen Trumtrar --- drivers/mci/Kconfig| 7 ++ drivers/mci/mci-core.c | 256

[PATCH 12/12] mci: arasan: use sdhci_wait_idle2

2024-03-08 Thread Steffen Trumtrar
To support HS200 mode, the arasan needs a differernt sdhci_wait_idle function. Remove the default CMD_INHIBIT_DATA, otherwise the sdhci hs200 tuning will timeout. Signed-off-by: Ahmad Fatoum Signed-off-by: Steffen Trumtrar --- drivers/mci/arasan-sdhci.c | 2 +- drivers/mci/sdhci.c| 25

[PATCH 11/12] mci: arasan-sdhci: add HS200 tuning support on ZynqMP

2024-03-08 Thread Steffen Trumtrar
The ZynpMP 8.9a has an Arasan IP core that supports HS200 tuning. Register the callback with the mci-core. Arasan uses the SDHCI tuning method. Signed-off-by: Steffen Trumtrar --- drivers/mci/arasan-sdhci.c | 62 +++--- 1 file changed, 59 insertions(+), 3

[PATCH 00/12] mci: add HS200 support for eMMCs

2024-03-08 Thread Steffen Trumtrar
| 25 ++ include/mach/zynqmp/firmware-zynqmp.h | 23 ++ include/mci.h | 114 +++- 8 files changed, 1270 insertions(+), 33 deletions(-) --- base-commit: ed7c14536d521793199abf0597164a46ba68e8e5 change-id: 20240308-v2024-02-0-topic-arasan-hs200-support

[PATCH 01/12] ARM: zynqmp: add sd_dll_reset call

2024-03-08 Thread Steffen Trumtrar
Add a function to reset DLL logic for SD devices. Signed-off-by: Steffen Trumtrar --- arch/arm/mach-zynqmp/firmware-zynqmp.c | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-zynqmp/firmware-zynqmp.c b/arch/arm/mach-zynqmp/firmware-zynqmp.c index a2b61efff4..b

[PATCH 08/12] mci: core: parse more host capabilities from DT

2024-03-08 Thread Steffen Trumtrar
Port the linux v6.7 mmc host caps2 parsing. While at it, remove the ->no_sd and ->no_sdio. These are bits in the caps2 field. Signed-off-by: Steffen Trumtrar --- drivers/mci/mci-core.c | 34 -- include/mci.h | 32 ++-- 2 files

[PATCH 02/12] zynqmp: firmware: add functions to set tap delay

2024-03-08 Thread Steffen Trumtrar
Add a function to set the tap delay for the clk phase of the sd host controller. Signed-off-by: Steffen Trumtrar --- arch/arm/mach-zynqmp/firmware-zynqmp.c | 42 ++ include/mach/zynqmp/firmware-zynqmp.h | 23 +++ 2 files changed, 65 insertions(+)

[PATCH 05/12] mci: arasan: register sdcard/sampleclk

2024-03-08 Thread Steffen Trumtrar
Read and register the sampleclk and sdcardclk. They are needed later for HS200 tuning support. Signed-off-by: Steffen Trumtrar --- drivers/mci/arasan-sdhci.c | 305 + 1 file changed, 305 insertions(+) diff --git a/drivers/mci/arasan-sdhci.c b/drivers/

[PATCH 06/12] include: mci: sync mci_timing with linux

2024-03-08 Thread Steffen Trumtrar
The timings are used to check if mci_host->timing is equal to one of this values. Linux uses a different numbering. Adapt that for compatability. Signed-off-by: Steffen Trumtrar --- include/mci.h | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/include/mci.

[PATCH 03/12] mci: arasan: implement 25MHz quirk for zynqmp

2024-03-08 Thread Steffen Trumtrar
The Arasan on the zynqmp in version 8.9a doesn't meet the timing requirements at 25MHz. It works at 19MHz instead. Add the quirk from linux kernel v6.8-rc4. Signed-off-by: Steffen Trumtrar --- drivers/mci/arasan-sdhci.c | 28 +++- 1 file changed, 27 insertions(+), 1 dele

[PATCH 07/12] include: mci: add more EXT_CSD_CARD_TYPE_*

2024-03-08 Thread Steffen Trumtrar
Import missing EXT_CSD_CARD_TYPE_ defines from linux v6.7. EXT_CSD_CARD_TYPE_SDR_1_8V/1_2V is unused in barebox. Replace with the defines from linux. Signed-off-by: Steffen Trumtrar --- include/mci.h | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/include/mc

[PATCH 04/12] mci: arasan: read clk phases from DT

2024-03-08 Thread Steffen Trumtrar
Depending on the used SDHCI mode the clock phases are different. Import the helper function to get these values from the DT from linux v6.7. Signed-off-by: Steffen Trumtrar --- drivers/mci/arasan-sdhci.c | 121 + 1 file changed, 121 insertions(+) diff

Re: [PATCH 2/2] of: partition: Use mtd partitioning for of_fixup instead of the cdev variant

2024-03-08 Thread Sascha Hauer
On Fri, Mar 08, 2024 at 11:14:28AM +0100, Uwe Kleine-König wrote: > Hello, > > On Fri, Mar 08, 2024 at 10:27:21AM +0100, Ahmad Fatoum wrote: > > On 08.03.24 10:15, Uwe Kleine-König wrote: > > > From: Uwe Kleine-König > > > > > > It was already noticed in commit 9d42c77f126e ("devfs: take into ac

[PATCH] mci: arasan: add dma write support

2024-03-08 Thread Steffen Trumtrar
ost->sdhci, data); + ret = sdhci_transfer_data_dma(&host->sdhci, data, dma); error: if (ret) { --- base-commit: ed7c14536d521793199abf0597164a46ba68e8e5 change-id: 20240308-v2024-02-0-topic-arasan-dma-support-edd318cce298 Best regards, -- Steffen Trumtrar

Re: NFSv4 boot support?

2024-03-08 Thread Sascha Hauer
On Tue, Feb 20, 2024 at 02:53:47PM +0100, Alessandro Rubini wrote: > >> This hasn't > >> seen development activity in 5 years. > > > > Please see https://github.com/virtualsquare/picotcp > > But the TCP/IPV4 standard didn't change, either. > > >> lwIP on the other hand still sees active developm

Re: [PATCH 2/2] of: partition: Use mtd partitioning for of_fixup instead of the cdev variant

2024-03-08 Thread Uwe Kleine-König
Hello, On Fri, Mar 08, 2024 at 10:27:21AM +0100, Ahmad Fatoum wrote: > On 08.03.24 10:15, Uwe Kleine-König wrote: > > From: Uwe Kleine-König > > > > It was already noticed in commit 9d42c77f126e ("devfs: take into account > > for the partitions check that mtd is different") that the partitioning

Re: [PATCH v2 2/2] crypto: caam: caamrng: dma map descriptors

2024-03-08 Thread Lucas Stach
Am Freitag, dem 08.03.2024 um 08:35 +0100 schrieb Rouven Czerwinski: > With DMA API debugging Barebox complains that the descriptors are never > mapped before a sync. Add the map and unmap function calls. > > Signed-off-by: Rouven Czerwinski > --- > v2: > - remove dma_map_sync_single_for_device()

Re: [PATCH 2/2] of: partition: Use mtd partitioning for of_fixup instead of the cdev variant

2024-03-08 Thread Ahmad Fatoum
Hello Uwe, On 08.03.24 10:15, Uwe Kleine-König wrote: > From: Uwe Kleine-König > > It was already noticed in commit 9d42c77f126e ("devfs: take into account > for the partitions check that mtd is different") that the partitioning > info is stored differently for mtd devices. Instead of only getti

[PATCH 1/2] of: partition: Move some parts of of_fixup_partitions() into separate function

2024-03-08 Thread Uwe Kleine-König
From: Uwe Kleine-König This is a preparation for the next commit that fixes mtd partition creation. Signed-off-by: Uwe Kleine-König --- drivers/of/partition.c | 81 -- 1 file changed, 47 insertions(+), 34 deletions(-) diff --git a/drivers/of/partition.c

[PATCH 2/2] of: partition: Use mtd partitioning for of_fixup instead of the cdev variant

2024-03-08 Thread Uwe Kleine-König
From: Uwe Kleine-König It was already noticed in commit 9d42c77f126e ("devfs: take into account for the partitions check that mtd is different") that the partitioning info is stored differently for mtd devices. Instead of only getting the partion size from the right spot, use the right data compl