Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 8907e9dc83..75cdb049fb 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -1988,7 +1988,7 @@ static
To make the MMC/SD CID information accessible for scripting all
available CID fields are added as parameters during device probing. As
some fields have different data types for MMC and SD cards a string
representation is chosen these cases.
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci
The oem id (OID) field is a 2 character long ASCII string for SD cards
and a 8-bit binary number for MMC cards. Both are used in their string
representation.
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 16
1 file changed, 12 insertions(+), 4 deletions(-)
diff
The field MDT (manufacturing date) was written with a small typo back in
commit 7051227d2e68ad67078b9e7afb15ad5826161686, this commit fixes it.
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/mci
The product revision PRV field has a slightly different position for MMC
and SD cards. As we almost certainly don't want to use the BCD
representation for scripting the PRV is printed in a human friendly
representation.
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 12
t32)
Signed-off-by: Stefan Kerkmann
---
Stefan Kerkmann (9):
mci: core: rename mtd to mdt
mci: core: add cbx extraction function
mci: core: add product name extraction function
mci: core: add manufacturing date extraction function
mci: core: parse cid into paramet
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 5e686c17d2..2f0f4c25f8 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -2123,6 +2123,8 @@ static void
The product name field PNM is available for both SD cards (len=5) and
MMC cards (len=6). The currently used method doesn't respect the length
for MMC cards.
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 25 +
1 file changed, 25 insertions(+)
diff --git
The CBX field is only present for eMMC and designates the type:
00 - Device (Removable)
01 - BGA (Discrete embedded)
10 - POP
11 - Reserved
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/mci/mci-core.c b
This function operates on a string buffer and concatenates both the year
and month. It will be used later when the mdt is added as a parameter.
Signed-off-by: Stefan Kerkmann
---
drivers/mci/mci-core.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/mci/mci-core.c b
ream
Linux implementation.
Signed-off-by: Stefan Kerkmann
---
Stefan Kerkmann (3):
net: phy: allow PHY drivers to implement their own software reset
net: phy: document core PHY structures
net: phy: dp83867: sync dp83867_phy_rest
drivers/net/phy/dp83
This is a port of linux commit 4069a572d423b73919ae40a500dfc4b10f8a6f32
("net: phy: Document core PHY structures"), that copies the Doxygen
comments for the PHY structure where applicable.
Signed-off-by: Stefan Kerkmann
---
include/linux/phy.h | 20 +++-
1 file c
oring of commit 095cd32961aab64cfe72941ce43d99876852e12b
("net: phy: dp83867: reset PHY on probe") which already ported parts of
the function, but diverted from the upstream implementation.
Signed-off-by: Stefan Kerkmann
---
drivers/net/phy/dp83867.c | 28 ++-
ow applied always even if
.config_init is undefined. This shouldn't be possible to happen though,
because phy_driver_register will populate the member with
genphy_config_init in that case, so the member should never be NULL.
Signed-off-by: Stefan Kerkmann
---
drivers/net/phy/phy.c | 16 ++-
-nxp.git
Signed-off-by: Marc Kleine-Budde
Signed-off-by: Stefan Kerkmann
---
arch/arm/dts/imx8mp-karo-qsxp-ml81-upstream.dtsi | 71
arch/arm/dts/imx8mp-karo-qsxp-ml81.dtsi | 112 +++
arch/arm/dts/imx8mp-karo.dtsi| 398 +++
3 files changed, 581
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
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
-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
]:
https://karo-electronics.github.io/docs/getting-started/qsbase4/quickstart-qsbase4.html
[2]: https://github.com/karo-electronics/meta-karo-nxp.git
Signed-off-by: Stefan Kerkmann
---
arch/arm/dts/imx8mp-karo-qsxp-ml81-qsbase4.dts | 82 ++
1 file changed, 82 insertions(+)
diff
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
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 a/include
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
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. T
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 wr
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
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 /
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
-nxp.git
Signed-off-by: Marc Kleine-Budde
Signed-off-by: Stefan Kerkmann
---
arch/arm/dts/imx8mp-karo-qsxp-ml81.dts | 160 +
arch/arm/dts/imx8mp-karo.dtsi | 407 +
2 files changed, 567 insertions(+)
diff --git a/arch/arm/dts/imx8mp-karo-qsxp-ml81
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 a/include
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
]:
https://karo-electronics.github.io/docs/getting-started/qsbase4/quickstart-qsbase4.html
[2]: https://github.com/karo-electronics/meta-karo-nxp.git
Signed-off-by: Stefan Kerkmann
---
arch/arm/dts/imx8mp-karo-qsxp-ml81-qsbase4.dts | 86 ++
1 file changed, 86 insertions(+)
diff
-by: Stefan Kerkmann
---
Marc Kleine-Budde (4):
net: phy: micrel: update id table from Linux kernel
net: phy: micrel: add support for ksz9131 phy
arm: dts: karo: import dts for karo-qsxp-ml81
arm: imx8mp: add karo electronics qsxp imx8mp som support
Sebastian Reichel (1
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
Hi Sascha,
On 28.02.24 12:05, Sascha Hauer wrote:
> 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:
>>>> Inst
t; it implemented.
>
> Since we're here, provide also names to bits from TRM instead of using
> BIT() macro in the code.
Reviewed-by: Ahmad Fatoum
Reviewed-by: Andrey Zhizhikin
Signed-off-by: Andrey Zhizhikin
Signed-off-by: Stefan Kerkmann
---
arch/arm/mach-imx/tzasc.c | 42 +++
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_` as well.
Reviewed-by: Ahmad Fatoum
Signed-off-by: Stefan Kerkmann
This series ports the U-Boot commit 1289ff7bd7e4 ("imx8m: lock
id_swap_bypass bit in tzc380 enable") to barebox and refactors the tzasc
driver for the imx platform to use the `cpu_is_mx8xyz` macros.
Signed-off-by: Stefan Kerkmann
---
Changes in v2:
- Rebased onto next to pickup code
as the `imx_init` function is discarded during linking as
the whole `init_call` section is not linked into the final binary.
Reviewed-by: Ahmad Fatoum
Signed-off-by: Stefan Kerkmann
---
arch/arm/mach-imx/Makefile | 2 +-
arch/arm/mach-imx/atf.c| 5 +
include/mach/imx/generic.h | 5 +
3 files
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
the `cpu_is_mx8xyz` macro family to determine which bits should be set.
As the tzasc driver is imx
t; it implemented.
>
> Since we're here, provide also names to bits from TRM instead of using
> BIT() macro in the code.
Signed-off-by: Andrey Zhizhikin
Signed-off-by: Stefan Kerkmann
---
arch/arm/mach-imx/tzasc.c | 42 --
1 file changed, 32 insert
This series ports the U-Boot commit 1289ff7bd7e4 ("imx8m: lock
id_swap_bypass bit in tzc380 enable") to barebox and refactors the tzasc
driver for the imx platform to use the `cpu_is_mx8xyz` macros.
Signed-off-by: Stefan Kerkmann
---
Stefan Kerkmann (3):
arm: mach-imx: t
as the `imx_init` function is discarded during linking as
the whole `init_call` section is not linked into the final binary.
Signed-off-by: Stefan Kerkmann
---
arch/arm/mach-imx/Makefile | 2 +-
arch/arm/mach-imx/atf.c| 5 +
include/mach/imx/generic.h | 5 +
3 files changed, 11 insertions(+), 1
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_` as well.
Signed-off-by: Stefan Kerkmann
---
arch/arm/mach-imx/atf.c
;
fdt_ensure_space -> allocate only 128k for fdt->dt -> memcopy 8M into fdt->dt
buffer -> crash
The fix is to grow fdt->dt to hold at least the new property. The power
of 2 increment is untouched to keep the same behaviour otherwise.
Signed-off-by: Stefan Kerkmann
---
drivers/of/fdt.c |
I have encountered the oob write while attempting to modify a large FIT
image with of_property. While hunting for the root cause I noticed that
there is a potential memory leak in fdt_ensure_space as well. Both is
fixed in this series.
Signed-off-by: Stefan Kerkmann
---
Changes in v2:
- Review
If the reallocation failed the old memory remains allocated and is never
freed, this is fixed by freeing the old memory on error.
Signed-off-by: Stefan Kerkmann
Reviewed-by: Ahmad Fatoum
---
drivers/of/fdt.c | 28 +---
1 file changed, 21 insertions(+), 7 deletions
Hello Ahmad,
On 31.01.24 18:21, Ahmad Fatoum wrote:
On 31.01.24 17:57, Stefan Kerkmann wrote:
OOB writes can be triggered when fdt->dt_size * 2 is still smaller than
the property for which memory should be allocated. This can happen under
rare circumstances when editing a
Hi Sascha,
On 01.02.24 08:47, Sascha Hauer wrote:
In the subject: s/ftd/fdt/
Applied.
Sascha
On Wed, Jan 31, 2024 at 05:57:00PM +0100, Stefan Kerkmann wrote:
OOB writes can be triggered when fdt->dt_size * 2 is still smaller than
the property for which memory should be alloca
Hello Ahmad,
On 31.01.24 18:15, Ahmad Fatoum wrote:
Hello Stefan,
On 31.01.24 17:56, Stefan Kerkmann wrote:
If the reallocation failed the old memory remains allocated and is never
freed, this is fixed by freeing the old memory on error.
Signed-off-by: Stefan Kerkmann
---
drivers/of/fdt.c
If the reallocation failed the old memory remains allocated and is never
freed, this is fixed by freeing the old memory on error.
Signed-off-by: Stefan Kerkmann
---
drivers/of/fdt.c | 27 ---
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/drivers/of/fdt.c
;
fdt_ensure_space -> allocate only 128k for fdt->dt -> memcopy 8M into fdt->dt
buffer -> crash
The fix is to grow fdt->dt to hold at least the new property. The power
of 2 increment is untouched to keep the same behaviour otherwise.
Signed-off-by: Stefan Kerkmann
---
drivers/of/fdt.c |
I have encountered the oob write while attempting to modify a large FIT
image with of_property. While hunting for the root cause I noticed that
there is a potential memory leak in fdt_ensure_space as well. Both is
fixed in this series.
Signed-off-by: Stefan Kerkmann
---
Stefan Kerkmann (2
Hello Ahmad, Hello Sascha,
On 17.01.24 08:20, Sascha Hauer wrote:
On Tue, Jan 16, 2024 at 09:13:48AM +0100, Ahmad Fatoum wrote:
Hello Stefan,
On 12.01.24 16:21, Stefan Kerkmann wrote:
+static enum hab_status hab_sip_report_event(enum hab_status status
for HAB boot. As
the peripheral is identical to the other SOCs found in the i.MX family
the standard implementation was simply added.
[1]: see Figure 6-25 OTP Memory Footprint, i.MX8MP RM Rev. 1
[2]: see Figure 6-28 OTP Memory Footprint, i.MX8MM RM Rev. 3
Signed-off-by: Stefan Kerkmann
---
drivers
On 12.01.24 16:21, Stefan Kerkmann wrote:
The existing habv4 rom vector table had some mismatches in the API of
the function pointers which broke calling into the HAB rom - mainly
observed with the `report_event` function. The suspected culprit here is
the `bytes` pointer which was `uint32_t
--
Pengutronix e.K. | Stefan Kerkmann |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-128 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9|
-off-by: Stefan Kerkmann
---
drivers/hab/habv4.c | 48 ++--
1 file changed, 38 insertions(+), 10 deletions(-)
diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c
index 92bee8399d..4e401ca9d3 100644
--- a/drivers/hab/habv4.c
+++ b/drivers/hab/habv4.c
IP enum was extended with FSL_SIP_HAB_AUTH_IMG_NO_DCD which is
supported by the upstream TF-A release 2.10.
Signed-off-by: Stefan Kerkmann
---
drivers/hab/habv4.c | 54 +
1 file changed, 34 insertions(+), 20 deletions(-)
diff --git a/drivers/hab/habv4.c
cause for the ram parsing workaround, with the corrections to
the API these hangs were no longer observed.
Signed-off-by: Stefan Kerkmann
---
Changes in v2:
- Fixed coding style from review comments
- Added FSL_SIP_HAB_AUTH_IMG_NO_DCD to hab_sip_cmd found in TF-A 2.10
- Added imx8mp to known good
-by: Stefan Kerkmann
---
drivers/hab/habv4.c | 43 ++-
1 file changed, 38 insertions(+), 5 deletions(-)
diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c
index dfa0207435..db5862a92a 100644
--- a/drivers/hab/habv4.c
+++ b/drivers/hab/habv4.c
@@ -180,6
All function signatures have been taken from the NXP manual "High
Assurance Boot Version 4 Application Programming Interface Reference
Manual" revision 1.4 under section "4.5 ROM vector table". A copy can be
obtained from the imx code signing tool (imx-cst).
Signed-off
cause for the ram parsing workaround, with the corrections to
the API these hangs were no longer observed.
Signed-off-by: Stefan Kerkmann
---
Stefan Kerkmann (2):
habv4: correct habv4 rom vector table
habv4: use hab rom implementation of report_event
drivers/hab/habv4.c | 93
These where missed in b90e9ad8f7922b6a694c119017168bea1b6e16a1 and thus
didn't render the code blocks.
Signed-off-by: Stefan Kerkmann
---
Documentation/user/barebox.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/user/barebox.rst b/Documentation/user/barebox.rst
index
This small series fixes one small usage of `bootm` and adds a section
for chainloading a Barebox FIT image from U-Boot.
To: open list:BAREBOX
Signed-off-by: Stefan Kerkmann
---
Changes in v2:
- Added missing SOB
- Added Acked-by from Ahmad Fatoum
- Link to v1:
https://lore.kernel.org/r
barebox-dt-2nd.img is in the `zImage` format, therefore use the proper
command for booting on 32-bit platforms.
Signed-off-by: Stefan Kerkmann
Acked-by: Ahmad Fatoum
---
Documentation/user/barebox.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/user
This documents an alternate method for chainloading Barebox from U-Boot
by packing the Barebox image and matching device tree into an FIT image.
Signed-off-by: Stefan Kerkmann
Acked-by: Ahmad Fatoum
---
Documentation/user/barebox.rst | 26 ++
1 file changed, 26
This small series fixes one small usage of `bootm` and adds a section
for chainloading a Barebox FIT image from U-Boot.
To: open list:BAREBOX
Signed-off-by: Stefan Kerkmann
---
Stefan Kerkmann (2):
doc: user: barebox: bootz instead of bootm
doc: user: barebox: add chainloading
barebox-dt-2nd.img is in the `zImage` format, therefore use the proper
command for booting on 32-bit platforms.
---
Documentation/user/barebox.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/user/barebox.rst b/Documentation/user/barebox.rst
index
This documents an alternate method for chainloading Barebox from U-Boot
by packing the Barebox image and matching device tree into an FIT image.
---
Documentation/user/barebox.rst | 26 ++
1 file changed, 26 insertions(+)
diff --git a/Documentation/user/barebox.rst
Signed-off-by: Ahmad Fatoum
Signed-off-by: Stefan Kerkmann
---
To work around an erratum in the Altera DRAM controller, the previous
booting stage may have increased the amount of rows to fake having 4G of
RAM. In that case, we assume the previous booting stage will have fixed
up a proper memory
70 matches
Mail list logo