* [PATCH v1 0/3] verdin-imx8mp: enable caam
@ 2022-10-04 11:06 Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 1/3] arm: dts: verdin-imx8mp: enable caam in SPL Andrejs Cainikovs
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Andrejs Cainikovs @ 2022-10-04 11:06 UTC (permalink / raw)
To: Marcel Ziswiler, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team
Cc: u-boot, Andrejs Cainikovs
This patch series enables Cryptographic Accelerator and
Assurance Module (aka CAAM) on verdin-imx8mp SoM.
Andrejs Cainikovs (3):
arm: dts: verdin-imx8mp: enable caam in SPL
verdin-imx8mp: spl: initialize caam
configs: verdin-imx8mp: enable caam
arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi | 16 ++++++++++++++++
board/toradex/verdin-imx8mp/spl.c | 11 +++++++++++
configs/verdin-imx8mp_defconfig | 1 +
3 files changed, 28 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/3] arm: dts: verdin-imx8mp: enable caam in SPL
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
@ 2022-10-04 11:06 ` Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam Andrejs Cainikovs
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Andrejs Cainikovs @ 2022-10-04 11:06 UTC (permalink / raw)
To: Marcel Ziswiler, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team
Cc: u-boot, Andrejs Cainikovs
CAAM is initialized in SPL, so relevant device tree nodes needs to be
updated.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
---
arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi b/arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi
index 5fd3b991180..8a4cdc717d2 100644
--- a/arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi
@@ -35,6 +35,10 @@
};
+&crypto {
+ u-boot,dm-spl;
+};
+
&eqos {
/delete-property/ assigned-clocks;
/delete-property/ assigned-clock-parents;
@@ -141,6 +145,18 @@
u-boot,dm-spl;
};
+&sec_jr0 {
+ u-boot,dm-spl;
+};
+
+&sec_jr1 {
+ u-boot,dm-spl;
+};
+
+&sec_jr2 {
+ u-boot,dm-spl;
+};
+
&uart3 {
u-boot,dm-spl;
};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 1/3] arm: dts: verdin-imx8mp: enable caam in SPL Andrejs Cainikovs
@ 2022-10-04 11:06 ` Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 3/3] configs: verdin-imx8mp: enable caam Andrejs Cainikovs
2022-10-04 21:05 ` [PATCH v1 0/3] " Marcel Ziswiler
3 siblings, 0 replies; 6+ messages in thread
From: Andrejs Cainikovs @ 2022-10-04 11:06 UTC (permalink / raw)
To: Marcel Ziswiler, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team
Cc: u-boot, Andrejs Cainikovs
This change initializes Cryptographic Accelerator and Assurance Module.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
---
board/toradex/verdin-imx8mp/spl.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/board/toradex/verdin-imx8mp/spl.c b/board/toradex/verdin-imx8mp/spl.c
index 6f1931ffaca..1838b464a0d 100644
--- a/board/toradex/verdin-imx8mp/spl.c
+++ b/board/toradex/verdin-imx8mp/spl.c
@@ -17,6 +17,8 @@
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/arch/ddr.h>
+#include <dm/device.h>
+#include <dm/uclass.h>
#include <power/pmic.h>
#include <power/pca9450.h>
@@ -43,6 +45,15 @@ void spl_dram_init(void)
void spl_board_init(void)
{
+ if (IS_ENABLED(CONFIG_FSL_CAAM)) {
+ struct udevice *dev;
+ int ret;
+
+ ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(caam_jr), &dev);
+ if (ret)
+ printf("Failed to initialize caam_jr: %d\n", ret);
+ }
+
/*
* Set GIC clock to 500Mhz for OD VDD_SOC. Kernel driver does
* not allow to change it. Should set the clock after PMIC
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 3/3] configs: verdin-imx8mp: enable caam
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 1/3] arm: dts: verdin-imx8mp: enable caam in SPL Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam Andrejs Cainikovs
@ 2022-10-04 11:06 ` Andrejs Cainikovs
2022-10-04 21:05 ` [PATCH v1 0/3] " Marcel Ziswiler
3 siblings, 0 replies; 6+ messages in thread
From: Andrejs Cainikovs @ 2022-10-04 11:06 UTC (permalink / raw)
To: Marcel Ziswiler, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team
Cc: u-boot, Andrejs Cainikovs
This change enables Cryptographic Accelerator and Assurance Module.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
---
configs/verdin-imx8mp_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/verdin-imx8mp_defconfig b/configs/verdin-imx8mp_defconfig
index 5d0c57c52e4..dc77c8de076 100644
--- a/configs/verdin-imx8mp_defconfig
+++ b/configs/verdin-imx8mp_defconfig
@@ -145,3 +145,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_IMX_WATCHDOG=y
CONFIG_OF_LIBFDT_OVERLAY=y
+CONFIG_FSL_CAAM=y
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/3] verdin-imx8mp: enable caam
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
` (2 preceding siblings ...)
2022-10-04 11:06 ` [PATCH v1 3/3] configs: verdin-imx8mp: enable caam Andrejs Cainikovs
@ 2022-10-04 21:05 ` Marcel Ziswiler
3 siblings, 0 replies; 6+ messages in thread
From: Marcel Ziswiler @ 2022-10-04 21:05 UTC (permalink / raw)
To: festevam, Andrejs Cainikovs, uboot-imx, sbabic; +Cc: u-boot
Hi Andrejs
On Tue, 2022-10-04 at 13:06 +0200, Andrejs Cainikovs wrote:
> This patch series enables Cryptographic Accelerator and
> Assurance Module (aka CAAM) on verdin-imx8mp SoM.
>
> Andrejs Cainikovs (3):
> arm: dts: verdin-imx8mp: enable caam in SPL
> verdin-imx8mp: spl: initialize caam
> configs: verdin-imx8mp: enable caam
Whole series
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi | 16 ++++++++++++++++
> board/toradex/verdin-imx8mp/spl.c | 11 +++++++++++
> configs/verdin-imx8mp_defconfig | 1 +
> 3 files changed, 28 insertions(+)
Thanks!
Cheers
Marcel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam
@ 2022-10-24 13:55 sbabic
0 siblings, 0 replies; 6+ messages in thread
From: sbabic @ 2022-10-24 13:55 UTC (permalink / raw)
To: Andrejs Cainikovs, u-boot
> This change initializes Cryptographic Accelerator and Assurance Module.
> Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-10-24 14:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 11:06 [PATCH v1 0/3] verdin-imx8mp: enable caam Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 1/3] arm: dts: verdin-imx8mp: enable caam in SPL Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam Andrejs Cainikovs
2022-10-04 11:06 ` [PATCH v1 3/3] configs: verdin-imx8mp: enable caam Andrejs Cainikovs
2022-10-04 21:05 ` [PATCH v1 0/3] " Marcel Ziswiler
2022-10-24 13:55 [PATCH v1 2/3] verdin-imx8mp: spl: initialize caam sbabic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).