[PATCH 2/2] ddr_spd: add routine for printing DDR3 SPD contents

2024-03-11 Thread Denis Orlov
This allows to print the DDR3 SPD data with spd_decode command. The code is ported from the decode-dimms program of i2c-tools. The output of the command is almost exactly the same as of the original program with a few minor differences: lacking commas in one place, and manufacturer ID being output

[PATCH 0/2] ddr_spd: extend spd_decode to cover DDR3

2024-03-11 Thread Denis Orlov
This extends the spd_decode command to correctly print out the contents of the DDR3 SPD EEPROMs in addition to the DDR2 ones. Denis Orlov (2): ddr_spd: add DDR3 Load Reduced module specific data ddr_spd: add routine for printing DDR3 SPD contents common/ddr_spd.c | 556

[PATCH 1/2] ddr_spd: add DDR3 Load Reduced module specific data

2024-03-11 Thread Denis Orlov
This will be used by the DDR3 SPD data printing routine and is needed for completeness, to cover all of the DDR3-related cases from the original decode-dimms tool. Signed-off-by: Denis Orlov --- include/ddr_spd.h | 34 ++ 1 file changed, 34 insertions(+) diff

[PATCH v2 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This imports the device tree for the Ka-Ro QSXP, which is a i.MX8M Plus solder down system on module. The sources have been adapted from the offical Ka-Ro github[1], commit a49b38ec97854c0cd9cd83a9f4ae3b56e99a58b6. [1]:

[PATCH v2 2/6] net: phy: micrel: update id table from Linux kernel

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This syncs the known Micrel PHY IDs and register definitions with the Linux kernel, commit f600bb612b06adf70ccdefbd3294c71275b650c2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/linux/micrel_phy.h | 49

[PATCH v2 6/6] arm: imx8mp: add karo electronics qsxp-ml81 som support

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This commit adds support for the SOM on the QSBASE4 RDK. [1]: https://www.karo-electronics.de/qsxp Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- arch/arm/boards/Makefile

[PATCH v2 0/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
-by: Stefan Kerkmann --- Changes in v2: - Adressed review comments from Ahmad - Link to v1: https://lore.barebox.org/20240311-karo-imx8mp-som-board-upstreaming-v1-0-7c77f9ba0...@pengutronix.de --- Marc Kleine-Budde (4): net: phy: micrel: update id table from Linux kernel net: phy

[PATCH v2 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-ml81-qsbase4

2024-03-11 Thread Stefan Kerkmann
The Ka-Ro QSXP-QSBASE4[1] is the offical DK from Ka-Ro for their QSXP i.MX8M Plus solder down system on module. It comes with an additional Micrel KSZ9131 gigabit ethernet phy. The devicetree was adapted from the offical Ka-Ro github[2], commit a49b38ec97854c0cd9cd83a9f4ae3b56e99a58b6. [1]:

[PATCH v2 3/6] net: phy: micrel: add support for ksz9131 phy

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This imports the micrel KSZ9131 gigabit phy driver from Linux, commit 0316c7e66bbd16cf2d01a4e2f5afa6afb01278f2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- drivers/net/phy/micrel.c | 188 +++ 1 file

[PATCH v2 1/6] of: introduce of_property_read_s32

2024-03-11 Thread Stefan Kerkmann
From: Sebastian Reichel Introduce signed 32bit integer of_property_read method. Signed-off-by: Sebastian Reichel Signed-off-by: Grant Likely Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/of.h | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 15:33, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 15:23, Stefan Kerkmann wrote: >> Hello Ahmad, >> >> On 11.03.24 11:02, Ahmad Fatoum wrote: >>> Hello Stefan, >>> >>> On 11.03.24 10:10, Stefan Kerkmann wrote: From: Marc Kleine-Budde This imports

Re: [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Ahmad Fatoum
Hello Stefan, On 11.03.24 15:23, Stefan Kerkmann wrote: > Hello Ahmad, > > On 11.03.24 11:02, Ahmad Fatoum wrote: >> Hello Stefan, >> >> On 11.03.24 10:10, Stefan Kerkmann wrote: >>> From: Marc Kleine-Budde >>> >>> This imports the device tree for the Ka-Ro QSXP, which is a i.MX8M Plus >>>

Re: [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 11:02, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 10:10, Stefan Kerkmann wrote: >> From: Marc Kleine-Budde >> >> This imports the device tree for the Ka-Ro QSXP, which is a i.MX8M Plus >> solder down system on module. The sources have been adapted from the >>

Re: [PATCH v2] ARM: i.MX8MP: add König+Bauer AlphaJet board

2024-03-11 Thread Roland Hieber
On Mon, Mar 11, 2024 at 03:04:56PM +0100, Roland Hieber wrote: > From: Johannes Zink > > Add basic support for König+Bauer AlphaJet, based on a Congatec QMX8MP > SoM with an i.MX8MP SoC in the Industrial Temperature Grade 4GB Variant, > no inline ECC used. > > Co-Developed-by: Juergen Borleis

[PATCH v2] ARM: i.MX8MP: add König+Bauer AlphaJet board

2024-03-11 Thread Roland Hieber
From: Johannes Zink Add basic support for König+Bauer AlphaJet, based on a Congatec QMX8MP SoM with an i.MX8MP SoC in the Industrial Temperature Grade 4GB Variant, no inline ECC used. Co-Developed-by: Juergen Borleis Signed-off-by: Juergen Borleis Signed-off-by: Johannes Zink Signed-off-by:

Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 14:58, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 14:32, Stefan Kerkmann wrote: >> Hello Ahmad, >> >> On 11.03.24 11:13, Ahmad Fatoum wrote: >>> Hello Stefan, >>> >>> On 11.03.24 10:10, Stefan Kerkmann wrote: From: Marc Kleine-Budde The Ka-Ro

Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Ahmad Fatoum
Hello Stefan, On 11.03.24 14:32, Stefan Kerkmann wrote: > Hello Ahmad, > > On 11.03.24 11:13, Ahmad Fatoum wrote: >> Hello Stefan, >> >> On 11.03.24 10:10, Stefan Kerkmann wrote: >>> From: Marc Kleine-Budde >>> >>> The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This >>> commit

Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 11:13, Ahmad Fatoum wrote: > Hello Stefan, > > On 11.03.24 10:10, Stefan Kerkmann wrote: >> From: Marc Kleine-Budde >> >> The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This >> commit adds support for the SOM on the QSBASE4 RDK. >> >> [1]:

Re: [PATCH 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-qsbase4

2024-03-11 Thread Stefan Kerkmann
Hello Ahmad, On 11.03.24 11:05, Ahmad Fatoum wrote: > On 11.03.24 10:10, Stefan Kerkmann wrote: >> +/dts-v1/; >> + >> +#include "imx8mp-karo-qsxp-ml81.dts" >> + >> +&{/} { > > While not wrong, this is unnecessary. We know that there is a / already. > Ack. >> +model = "Ka-Ro electronics

Re: Documentation/boards/riscv.rst: can't rebuild image for BeagleV

2024-03-11 Thread Ahmad Fatoum
Hello Antony, On 10.03.24 21:33, Antony Pavlov wrote: > Hi Ahmad! > > I have tried to rebuild barebox for BeagleV. > Alas I was unable to reproduce the steps from Documentation/boards/riscv.rst > because of changes in opensbi repo. > > I have successfully rebuild U-Boot from the >

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

2024-03-11 Thread Sascha Hauer
On Fri, 08 Mar 2024 15:20:51 +0100, Bastian Krause wrote: > 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. > > Applied, thanks! [1/2] ARM: i.MX8MM: set SION bits for i2c2, i2c3, i2c4

Re: [PATCH] ARM: i.MX93: ele: start TRNG on i.MX93 rev a1

2024-03-11 Thread Sascha Hauer
On Mon, 11 Mar 2024 09:06:24 +0100, Sascha Hauer wrote: > On i.MX93 a0 the TRNG seems to be started automatically. On rev a1 it's > not and OP-TEE panics with "Cannot retrieve random data from ELE". Start > the TRNG to let OP-TEE startup successfully. > > Applied, thanks! [1/1] ARM: i.MX93:

Re: [PATCH] ARM: i.MX93: ele: start TRNG on i.MX93 rev a1

2024-03-11 Thread Sascha Hauer
On Mon, Mar 11, 2024 at 09:20:07AM +0100, Ahmad Fatoum wrote: > Hello Sascha, > > On 11.03.24 09:06, Sascha Hauer wrote: > > On i.MX93 a0 the TRNG seems to be started automatically. On rev a1 it's > > not and OP-TEE panics with "Cannot retrieve random data from ELE". Start > > the TRNG to let

[PATCH 1/5] ARM: i.MX: ele: move ELE_READ_SHADOW_REQ definition

2024-03-11 Thread Sascha Hauer
The ELE request defines are in include/mach/imx/ele.h, move definition of ELE_READ_SHADOW_REQ there as well. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/ele.c | 2 -- include/mach/imx/ele.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/ele.c

[PATCH 2/5] ARM: i.MX: ele: add function comments

2024-03-11 Thread Sascha Hauer
i.MX fuse numbers are sometimes referred to as the index of the 32bit word, sometimes as bit offsets and the device in /dev/imx_ocotp counts in bytes. To avoid more confusion add some comments to the function headers of functions reading/writing the fuses that clearly state that they take the

[PATCH 4/5] nvmem: add nvmem_device_get_device()

2024-03-11 Thread Sascha Hauer
We'll want to add a device parameter to the imx_ocotp0 device in the next step, but the device is private to the nvmem core. Add a getter function for it. Signed-off-by: Sascha Hauer --- drivers/nvmem/core.c | 6 ++ include/linux/nvmem-provider.h | 5 + 2 files changed, 11

[PATCH 5/5] nvmem: imx-ocotp-ele: implement permanent write support

2024-03-11 Thread Sascha Hauer
This implements write support to imx-ocotp-ele. By default only the shadow values are written which is harmless and nearly useless (as the ROM doesn't seem use these values). Real write support is enabled by setting imx_ocotp0.permanent_write_enable to true. A big warning is printed and the next

[PATCH 3/5] ARM: i.MX: ele: add ele_write_shadow_fuse

2024-03-11 Thread Sascha Hauer
The ocotp fuses have shadow values. For some fuses the shadow values can be read from and written to. While it's not really clear where the ROM really uses these shadow values, it still helps reading and writing them to get an idea if we are about to write the correct fuses before we finally

Re: [PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Ahmad Fatoum
Hello Stefan, On 11.03.24 10:10, Stefan Kerkmann wrote: > From: Marc Kleine-Budde > > The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This > commit adds support for the SOM on the QSBASE4 RDK. > > [1]: https://www.karo-electronics.de/qsxp > > Signed-off-by: Marc Kleine-Budde >

Re: [PATCH 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-qsbase4

2024-03-11 Thread Ahmad Fatoum
On 11.03.24 10:10, Stefan Kerkmann wrote: > +/dts-v1/; > + > +#include "imx8mp-karo-qsxp-ml81.dts" > + > +&{/} { While not wrong, this is unnecessary. We know that there is a / already. > + model = "Ka-Ro electronics QSXP-ML81-QSBASE4 (NXP i.MX8MP) Board"; > + compatible =

Re: [PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Ahmad Fatoum
Hello Stefan, On 11.03.24 10:10, Stefan Kerkmann wrote: > From: Marc Kleine-Budde > > This imports the device tree for the Ka-Ro QSXP, which is a i.MX8M Plus > solder down system on module. The sources have been adapted from the > offical Ka-Ro github[1], commit

[PATCH 6/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde The Ka-Ro QSXP is a i.MX8M Plus solder down system on module. This commit adds support for the SOM on the QSBASE4 RDK. [1]: https://www.karo-electronics.de/qsxp Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- arch/arm/boards/Makefile

[PATCH 4/6] arm: dts: karo: import dts for karo-qsxp-ml81

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This imports the device tree for the Ka-Ro QSXP, which is a i.MX8M Plus solder down system on module. The sources have been adapted from the offical Ka-Ro github[1], commit a49b38ec97854c0cd9cd83a9f4ae3b56e99a58b6. [1]:

[PATCH 1/6] of: introduce of_property_read_s32

2024-03-11 Thread Stefan Kerkmann
From: Sebastian Reichel Introduce signed 32bit integer of_property_read method. Signed-off-by: Sebastian Reichel Signed-off-by: Grant Likely Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/of.h | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH 2/6] net: phy: micrel: update id table from Linux kernel

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This syncs the known Micrel PHY IDs and register definitions with the Linux kernel, commit f600bb612b06adf70ccdefbd3294c71275b650c2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- include/linux/micrel_phy.h | 49

[PATCH 5/6] arm: dts: karo: add karo imx8mp-karo-qsxp-qsbase4

2024-03-11 Thread Stefan Kerkmann
The Ka-Ro QSXP-QSBASE4[1] is the offical DK from Ka-Ro for their QSXP i.MX8M Plus solder down system on module. It comes with an additional Micrel KSZ9131 gigabit ethernet phy. The devicetree was adapted from the offical Ka-Ro github[2], commit a49b38ec97854c0cd9cd83a9f4ae3b56e99a58b6. [1]:

[PATCH 0/6] arm: imx8mp: add karo electronics qsxp imx8mp som support

2024-03-11 Thread Stefan Kerkmann
: 6883d32102d8a253f4fc2bcfafbf3767a725e3a8 change-id: 20240311-karo-imx8mp-som-board-upstreaming-9eef98b7735e Best regards, -- Stefan Kerkmann

[PATCH 3/6] net: phy: micrel: add support for ksz9131 phy

2024-03-11 Thread Stefan Kerkmann
From: Marc Kleine-Budde This imports the micrel KSZ9131 gigabit phy driver from Linux, commit 0316c7e66bbd16cf2d01a4e2f5afa6afb01278f2. Signed-off-by: Marc Kleine-Budde Signed-off-by: Stefan Kerkmann --- drivers/net/phy/micrel.c | 188 +++ 1 file

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:17, Steffen Trumtrar wrote: > 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 >

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:16, Steffen Trumtrar wrote: > Add a function to reset DLL logic for SD devices. > > Signed-off-by: Steffen Trumtrar Reviewed-by: Ahmad Fatoum > --- > arch/arm/mach-zynqmp/firmware-zynqmp.c | 17 + > 1 file changed, 17 insertions(+) > > diff --git

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:17, Steffen Trumtrar wrote: > Add a function to set the tap delay for the clk phase of the sd host > controller. > > Signed-off-by: Steffen Trumtrar Reviewed-by: Ahmad Fatoum > --- > arch/arm/mach-zynqmp/firmware-zynqmp.c | 42 > ++ >

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

2024-03-11 Thread Ahmad Fatoum
Hello Steffen, On 08.03.24 12:17, Steffen Trumtrar wrote: > 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. AFAICS, this new sdhci_wait_idle2 is what Linux does by default.

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

2024-03-11 Thread Ahmad Fatoum
Hi Steffen, On 08.03.24 12:17, Steffen Trumtrar wrote: > @@ -2322,9 +2322,31 @@ void mci_of_parse_node(struct mci_host *host, > > host->broken_cd = of_property_read_bool(np, "broken-cd"); > host->non_removable = of_property_read_bool(np, "non-removable"); > - host->no_sd =

Re: [PATCH] ARM: i.MX93: ele: start TRNG on i.MX93 rev a1

2024-03-11 Thread Ahmad Fatoum
Hello Sascha, On 11.03.24 09:06, Sascha Hauer wrote: > On i.MX93 a0 the TRNG seems to be started automatically. On rev a1 it's > not and OP-TEE panics with "Cannot retrieve random data from ELE". Start > the TRNG to let OP-TEE startup successfully. > > Signed-off-by: Sascha Hauer > --- >

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:17, Steffen Trumtrar wrote: > 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 Reviewed-by: Ahmad Fatoum > --- > include/mci.h | 15

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:17, Steffen Trumtrar wrote: > 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 Reviewed-by: Ahmad Fatoum > --- > drivers/mci/arasan-sdhci.c | 121

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:17, Steffen Trumtrar wrote: > +static unsigned long arasan_zynqmp_sampleclk_recalc_rate(struct clk_hw *hw, > + unsigned long > parent_rate) > +{ > + return 0; In HS200 mode, Linux reports this as 200MHz. Returning zero here

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

2024-03-11 Thread Ahmad Fatoum
On 08.03.24 12:17, Steffen Trumtrar wrote: > 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 Reviewed-by: Ahmad Fatoum > --- > include/mci.h | 18

[PATCH] ARM: i.MX93: ele: start TRNG on i.MX93 rev a1

2024-03-11 Thread Sascha Hauer
On i.MX93 a0 the TRNG seems to be started automatically. On rev a1 it's not and OP-TEE panics with "Cannot retrieve random data from ELE". Start the TRNG to let OP-TEE startup successfully. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/ele.c | 20 1 file changed, 20