Skip to contentSkip to conversation

MediaTek eMMC inline encryption support

PATCH RESEND New Peng Zhou 1 participant 2 messages Apr 14, 2021

Subsystems (4)
lore
Share & tools
lore

Peng Zhou

author
#0 lore raw

v3 cover MediaTek eMMC inline encryption support

Hello,

Mediatek eMMC hardware IP has Inline Crypto Engine (ICE), we support inline encryption now.

For Inline Crypto Engine (ICE), see:
- https://lore.kernel.org/linux-arm-msm/
[email protected]/T/

This patchset supports Mediatek eMMC inline encryption which meets the upcoming version of the eMMC specification such as v5.1 or v5.2.

Patch 1-2, add crypto property and crypto clock, patch 3, document the device tree description about crypto clock.

Please noted that there is a special way of on/off crypto hardware IP in our SoCs, the enable bit must be controlled under ARM highest security level, that means must in ARM trusted firmware(ATF).

Changed in v3:
- Removed "mmc: Mediatek: enable crypto hardware engine" patch temporarily. Needs finding a better way for enable crypto hardware IP through ATF, so remove "mmc: Mediatek: enable crypto hardware engine" patch temporarily, we could enable it in ATF directly when boot up which will be a workaround solution. Discussing about this, see: https://lore.kernel.org/linux-mmc/
YE%[email protected]/T/#t
- We will put the above mentioned patch in a single patch

Peng Zhou (3):
mmc: Mediatek: add Inline Crypto Engine support
arm64: dts: Mediatek: MT6779: add mmc node with ICE setting
dt-bingdings: mmc: Mediatek: add ICE clock

 Documentation/devicetree/bindings/mmc/mtk-sd.yaml |  6 ++++--
 arch/arm64/boot/dts/mediatek/mt6779.dtsi          | 14 ++++++++++++++
 drivers/mmc/host/mtk-sd.c                         | 15 ++++++++++++++-
 3 files changed, 32 insertions(+), 3 deletions(-)
author
#1 lore raw

PATCH RESEND v3 3/3 dt-bingdings: mmc: Mediatek: add ICE clock

From: Peng Zhou <[email protected]>

Document the binding for crypto clock of the Inline Crypto Engine (ICE) on Mediatek SoCs.

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +4 -2
index 01630b0ecea7..a81c14c88906 100644
@@ -37,7 +37,7 @@ properties:
     description:
       Should contain phandle for the clock feeding the MMC controller.
     minItems: 2
-    maxItems: 8
+    maxItems: 9
     items:
       - description: source clock (required).
       - description: HCLK which used for host (required).
@@ -47,10 +47,11 @@ properties:
       - description: peripheral bus clock gate (required for MT8192).
       - description: AXI bus clock gate (required for MT8192).
       - description: AHB bus clock gate (required for MT8192).
+      - description: crypto clock used for data encrypt/decrypt (optional).
 
   clock-names:
     minItems: 2
-    maxItems: 8
+    maxItems: 9
     items:
       - const: source
       - const: hclk
@@ -60,6 +61,7 @@ properties:
       - const: pclk_cg
       - const: axi_cg
       - const: ahb_cg
+      - const: crypto
 
   pinctrl-names:
     items:
Signature · 1 line
2.18.0