arm64: dts: imx8mm: Add CAAM node
Subsystems (4)
PATCH 1/2 arm64: dts: imx8mm: Add CAAM node
Add node for CAAM - Cryptographic Acceleration and Assurance Module.
Signed-off-by Michael Trimarchi <[email protected]>
--- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm.dtsi +31 -0
@@ -667,6 +667,37 @@ status = "disabled"; }; + crypto: crypto@30900000 { + compatible = "fsl,sec-v4.0"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x30900000 0x40000>; + ranges = <0 0x30900000 0x40000>; + interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8MM_CLK_AHB>, + <&clk IMX8MM_CLK_IPG_ROOT>; + clock-names = "aclk", "ipg"; + status = "disabled"; + + sec_jr0: jr0@1000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x1000 0x1000>; + interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; + }; + + sec_jr1: jr1@2000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x2000 0x1000>; + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; + }; + + sec_jr2: jr2@3000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x3000 0x1000>; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + i2c1: i2c@30a20000 { compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c"; #address-cells = <1>;
Signature · 1 line
2.17.1
PATCH 2/2 crypto: caam - add clock entry for i.MX8MM
Add clock entry needed to support i.MX8MM.
[ 1.040682] caam 30900000.crypto: Entropy delay = 3200 [ 1.045935] caam 30900000.crypto: Entropy delay = 3600 [ 1.118813] caam 30900000.crypto: Instantiated RNG4 SH0 [ 1.186476] caam 30900000.crypto: Instantiated RNG4 SH1 [ 1.191726] caam 30900000.crypto: device ID = 0x0a16040100000000 (Era 9) [ 1.198434] caam 30900000.crypto: job rings = 3, qi = 0 [ 1.222717] caam algorithms registered in /proc/crypto [ 1.231297] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
Signed-off-by Michael Trimarchi <[email protected]>
--- drivers/crypto/caam/ctrl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/crypto/caam/ctrl.c +4 -2
@@ -99,10 +99,11 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc,if (ctrlpriv->virt_en ==1 ||/* -* Apparently on i.MX8MQ it doesn't matter if virt_en == 1 +* Apparently on i.MX8MQ and i.MX8MM it doesn't matter if virt_en == 1 * and the following steps should be performed regardless */ -of_machine_is_compatible ("fsl,imx8mq" )) { +of_machine_is_compatible ("fsl,imx8mq" ) || +of_machine_is_compatible ("fsl,imx8mm" )) {clrsetbits_32 (&ctrl->deco_rsr,0 ,DECORSR_JR0 ); while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&
@@ -509,6 +510,7 @@ static const struct soc_device_attribute caam_imx_soc_table[] = { { .soc_id = "i.MX6*", .data = &caam_imx6_data }, { .soc_id = "i.MX7*", .data = &caam_imx7_data }, { .soc_id = "i.MX8MQ", .data = &caam_imx7_data }, + { .soc_id = "i.MX8MM", .data = &caam_imx7_data }, { .family = "Freescale i.MX" }, {/* sentinel */ } };
Signature · 1 line
2.17.1
Quoted 3 lines · Michael Trimarchi
Add node for CAAM - Cryptographic Acceleration and Assurance Module.
I believe a series similar to this was already done and applied:
https://patchwork.kernel.org/patch/11300663/
adam
Quoted 55 lines
Signed-off-by Michael Trimarchi <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+)arch/arm64/boot/dts/freescale/imx8mm.dtsi +31
-1@@ -667,6 +667,37 @@ status = "disabled"; }; + crypto: crypto@30900000 { + compatible = "fsl,sec-v4.0"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x30900000 0x40000>; + ranges = <0 0x30900000 0x40000>; + interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8MM_CLK_AHB>, + <&clk IMX8MM_CLK_IPG_ROOT>; + clock-names = "aclk", "ipg"; + status = "disabled"; + + sec_jr0: jr0@1000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x1000 0x1000>; + interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; + }; + + sec_jr1: jr1@2000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x2000 0x1000>; + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; + }; + + sec_jr2: jr2@3000 { + compatible = "fsl,sec-v4.0-job-ring"; + reg = <0x3000 0x1000>; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + i2c1: i2c@30a20000 { compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c"; #address-cells = <1>; --2.17.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel