Enable iface clock and power domain for kodiak and monaco ice sdhc
v2 cover Enable iface clock and power domain for kodiak and monaco ice sdhc
Previously, ice used to exists jointly with ufs/mmc driver and not a standalone driver.
With recent efforts of making ice as separate module after decoupling from ufs driver. Update sdhc ice kodiak/moanco DT nodes to adapt power domain and iface clock to probe successfully.
The patchset is motivation to fix ice mmc where ice ufs is fixed with below series.
https://lore.kernel.org/linux-arm-msm/20260323-qcom_ice_power_and_clk_vote-v4-0-e36044bbdfe9@oss.qualcomm.com/T/#m5da5dd7a18318583b23ffeb42fa07ef1438042d5
Testing:
* dtbs check
* Custom monaco/kodiak device with emmc storage.
This series depends on the following prerequisite patchsets:
[1] Add explicit clock vote and enable power-domain for QCOM-ICE
https://lore.kernel.org/linux-arm-msm/20260323-qcom_ice_power_and_clk_vote-v4-0-e36044bbdfe9@oss.qualcomm.com
[2] Enable Inline crypto engine for kodiak and monaco
https://lore.kernel.org/lkml/[email protected]/
---
Changes in v2:
- Reorder clocks entries in different lines.
- Add power-domain as it's mandatory DT property as per new bindings.
- Drop reviewed-by tags as patchset has some extra changes.
- Link to v1: https://patch.msgid.link/20260406-ice_emmc_clock_addition-v1-0-e7b237bf7a69@oss.qualcomm.com
---
Kuldeep Singh (2):
arm64: dts: qcom: kodiak: Add iface clock and power domain for ice sdhc
arm64: dts: qcom: monaco: Add iface clock and power domain for ice sdhc
arch/arm64/boot/dts/qcom/kodiak.dtsi | 6 +++++- arch/arm64/boot/dts/qcom/monaco.dtsi | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-)
---
base-commit: 816f193dd0d95246f208590924dd962b192def78
change-id: 20260406-ice_emmc_clock_addition-e19f36c1fca5
Best regards,
Signature · 1 line
Kuldeep Singh <[email protected]>
PATCH v2 1/2 arm64: dts: qcom: kodiak: Add iface clock and power domain for ice sdhc
Qualcomm in-line crypto engine (ICE) platform driver specifies and votes for its own resources. Before accessing ICE hardware during probe, to avoid potential unclocked register access issues (when clk_ignore_unused is not passed on the kernel command line), in addition to the 'core' clock the 'iface' clock should also be turned on by the driver. This can only be done if power domain is enabled.
Specify both power domain and the iface clock.
--- arch/arm64/boot/dts/qcom/kodiak.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/kodiak.dtsi +5 -1
@@ -1082,7 +1082,11 @@ sdhc_ice: crypto@7c8000 { compatible = "qcom,sc7280-inline-crypto-engine", "qcom,inline-crypto-engine"; reg = <0x0 0x007c8000 0x0 0x18000>; - clocks = <&gcc GCC_SDCC1_ICE_CORE_CLK>; + clocks = <&gcc GCC_SDCC1_ICE_CORE_CLK>, + <&gcc GCC_SDCC1_AHB_CLK>; + clock-names = "core", + "iface"; + power-domains = <&rpmhpd SC7280_CX>; }; gpi_dma0: dma-controller@900000 {
Signature · 1 line
2.34.1
Re: [PATCH v2 1/2] arm64: dts: qcom: kodiak: Add iface clock and power domain for ice sdhc
Quoted 11 lines · Kuldeep Singh
Qualcomm in-line crypto engine (ICE) platform driver specifies and votes for its own resources. Before accessing ICE hardware during probe, to avoid potential unclocked register access issues (when
clk_ignore_unusedis not passed on the kernel command line), in addition to the 'core' clock the 'iface' clock should also be turned on by the driver. This can only be done if power domain is enabled.Specify both power domain and the iface clock.
Signed-off-by Kuldeep Singh <[email protected]>---
Konrad
PATCH v2 2/2 arm64: dts: qcom: monaco: Add iface clock and power domain for ice sdhc
In reply to Kuldeep SinghQualcomm in-line crypto engine (ICE) platform driver specifies and votes for its own resources. Before accessing ICE hardware during probe, to avoid potential unclocked register access issues (when clk_ignore_unused is not passed on the kernel command line), in addition to the 'core' clock the 'iface' clock should also be turned on by the driver. This can only be done if power domain is enabled.
Specify both power domain and the iface clock.
--- arch/arm64/boot/dts/qcom/monaco.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/monaco.dtsi +5 -1
@@ -4873,7 +4873,11 @@ sdhc_ice: crypto@87c8000 { compatible = "qcom,qcs8300-inline-crypto-engine", "qcom,inline-crypto-engine"; reg = <0x0 0x087c8000 0x0 0x18000>; - clocks = <&gcc GCC_SDCC1_ICE_CORE_CLK>; + clocks = <&gcc GCC_SDCC1_ICE_CORE_CLK>, + <&gcc GCC_SDCC1_AHB_CLK>; + clock-names = "core", + "iface"; + power-domains = <&rpmhpd RPMHPD_CX>; }; usb_1_hsphy: phy@8904000 {
Signature · 1 line
2.34.1
Re: [PATCH v2 2/2] arm64: dts: qcom: monaco: Add iface clock and power domain for ice sdhc
Quoted 11 lines · Kuldeep Singh
Qualcomm in-line crypto engine (ICE) platform driver specifies and votes for its own resources. Before accessing ICE hardware during probe, to avoid potential unclocked register access issues (when
clk_ignore_unusedis not passed on the kernel command line), in addition to the 'core' clock the 'iface' clock should also be turned on by the driver. This can only be done if power domain is enabled.Specify both power domain and the iface clock.
Signed-off-by Kuldeep Singh <[email protected]>---
Konrad
Quoted 17 lines · Kuldeep Singh
Previously, ice used to exists jointly with ufs/mmc driver and not a standalone driver.
With recent efforts of making ice as separate module after decoupling from ufs driver. Update sdhc ice kodiak/moanco DT nodes to adapt power domain and iface clock to probe successfully.
The patchset is motivation to fix ice mmc where ice ufs is fixed with below series.
https://lore.kernel.org/linux-arm-msm/20260323-qcom_ice_power_and_clk_vote-v4-0-e36044bbdfe9@oss.qualcomm.com/T/#m5da5dd7a18318583b23ffeb42fa07ef1438042d5Testing:
* dtbs check
* Custom monaco/kodiak device with emmc storage.This series depends on the following prerequisite patchsets:
Quoted 7 lines
[1] Add explicit clock vote and enable power-domain for QCOM-ICE
https://lore.kernel.org/linux-arm-msm/20260323-qcom_ice_power_and_clk_vote-v4-0-e36044bbdfe9@oss.qualcomm.com[2] Enable Inline crypto engine for kodiak and monaco
https://lore.kernel.org/lkml/[email protected]/Signed-off-by Kuldeep Singh <[email protected]>
Below 2 series are clubbed and sent together as new series. -
https://lore.kernel.org/lkml/[email protected]/
-
https://lore.kernel.org/linux-arm-msm/20260409-ice_emmc_clock_addition-v2-0-90bbcc057361@oss.qualcomm.com/
Kindly refer below series now,
https://lore.kernel.org/linux-arm-msm/[email protected]/
Regards
Kuldeep