* [PATCH v2] arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC
@ 2026-11-24 9:13 Abhinaba Rakshit
2026-11-24 9:22 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Abhinaba Rakshit @ 2026-11-24 9:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Neeraj Soni, Kuldeep Singh
Cc: linux-arm-msm, devicetree, Abhinaba Rakshit
Add an ICE node to LeMans SoC description and enable it by adding a
phandle to the SDHC node.
Signed-off-by: Abhinaba Rakshit <abhinaba.rakshit@oss.qualcomm.com>
---
This patchseries enables Inline Crypto Engine for LeMans platform
for SDHC storage.
Testing:
* dtbs_check.
* Validated on LeMans-evk with custom Mezzanine board for SDHC support.
Dependencies
============
[1] Enable ICE clock scaling
https://lore.kernel.org/all/20260824-enable-ice-clock-scaling-v12-0-09271f583dc6@oss.qualcomm.com/
---
Changes in v2:
- Rebase ICE SDHC on latest tip.
- Rename ice_mmc_opp_table to sdhc_ice_opp_table.
- Link to v1: https://lore.kernel.org/r/20261109-enable-ice-sdcc-for-lemans-v1-1-1f25debeea49@oss.qualcomm.com
---
arch/arm64/boot/dts/qcom/lemans-embedded.dtsi | 29 +++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi b/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
index 0be39bb9de1e1cdbb7d67a992172861a5a10a05a..4cb3af416a3fccb094ecc3022aa937669a8d4ce6 100644
--- a/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
+++ b/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
@@ -1651,6 +1651,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
power-domains = <&rpmhpd SA8775P_CX>;
resets = <&gcc GCC_SDCC1_BCR>;
+ qcom,ice = <&sdhc_ice>;
+
sdhc_opp_table: opp-table {
compatible = "operating-points-v2";
@@ -1849,6 +1851,33 @@ lpass_ag_noc: interconnect@3c40000 {
qcom,bcm-voters = <&apps_bcm_voter>;
};
+ sdhc_ice: crypto@87c8000 {
+ compatible = "qcom,sa8775p-inline-crypto-engine",
+ "qcom,inline-crypto-engine";
+ reg = <0x0 0x087c8000 0x0 0x18000>;
+ clocks = <&gcc GCC_SDCC1_ICE_CORE_CLK>,
+ <&gcc GCC_SDCC1_AHB_CLK>;
+ clock-names = "core",
+ "iface";
+ power-domains = <&rpmhpd SA8775P_CX>;
+
+ operating-points-v2 = <&sdhc_ice_opp_table>;
+
+ sdhc_ice_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ opp-150000000 {
+ opp-hz = /bits/ 64 <150000000>;
+ required-opps = <&rpmhpd_opp_svs_l1>;
+ };
+
+ opp-300000000 {
+ opp-hz = /bits/ 64 <300000000>;
+ required-opps = <&rpmhpd_opp_nom>;
+ };
+ };
+ };
+
usb_0_hsphy: phy@88e4000 {
compatible = "qcom,sa8775p-usb-hs-phy",
"qcom,usb-snps-hs-5nm-phy";
---
base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
change-id: 20261124-enable-ice-sdhc-for-lemans-7949b5298939
Best regards,
--
Abhinaba Rakshit <abhinaba.rakshit@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC
2026-11-24 9:13 [PATCH v2] arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC Abhinaba Rakshit
@ 2026-11-24 9:22 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-24 9:22 UTC (permalink / raw)
To: Abhinaba Rakshit; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: lemans: sdhc missing cqhci reg and
supports-cqe for ICE
--
commit a0ea4743f5f8f7228cdfec72ff2a38085407ac93
Author: Abhinaba Rakshit <abhinaba.rakshit@oss.qualcomm.com>
arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC
This commit adds the sdhc_ice node to lemans-embedded.dtsi and links it to
the SDHC controller via qcom,ice.
> diff --git a/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi b/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
> index 0be39bb9de1e1..4cb3af416a3fc 100644
> --- a/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
> +++ b/arch/arm64/boot/dts/qcom/lemans-embedded.dtsi
> @@ -1651,6 +1651,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
> power-domains = <&rpmhpd SA8775P_CX>;
> resets = <&gcc GCC_SDCC1_BCR>;
>
> + qcom,ice = <&sdhc_ice>;
> +
[Severity: High]
Does &sdhc also need supports-cqe and the cqhci register range in
lemans.dtsi for sdhc_ice to be initialized?
sdhci_msm_probe() only calls sdhci_msm_cqe_add_host() ->
sdhci_msm_ice_init() when supports-cqe is present, and
sdhci_msm_cqe_add_host() calls cqhci_pltfm_init(), which requires a memory
resource named "cqhci" to map the CQHCI crypto registers:
drivers/mmc/host/sdhci-msm.c:sdhci_msm_probe() {
...
if (of_property_read_bool(node, "supports-cqe"))
ret = sdhci_msm_cqe_add_host(host, pdev);
else
ret = sdhci_add_host(host);
...
}
Because sdhc: mmc@87c4000 in arch/arm64/boot/dts/qcom/lemans.dtsi only
defines the hc register range (<0x0 0x087c4000 0x0 0x1000>) without the
cqhci range (<0x0 0x087c5000 0x0 0x1000>), reg-names = "hc", "cqhci", or
supports-cqe, sdhci_msm_ice_init() is never reached and inline encryption is
never enabled. Meanwhile, qcom_ice_probe() enables GCC_SDCC1_ICE_CORE_CLK and
GCC_SDCC1_AHB_CLK and sdhci_msm_ice_suspend() never gates them because
MMC_CAP2_CRYPTO is not set, and enabling supports-cqe on a board DT or
overlay will make cqhci_pltfm_init() fail with -EINVAL.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-enable-ice-sdhc-for-lemans-v2-1-0bfa9ed6b4bb@oss.qualcomm.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-24 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 9:13 [PATCH v2] arm64: dts: qcom: lemans: Enable the Inline Crypto Engine for SDHC Abhinaba Rakshit
2026-11-24 9:22 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox