Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 67 additions & 28 deletions Documentation/devicetree/bindings/mmc/sdhci-msm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description: platform specific settings for DLL_CONFIG reg.

qcom,ice:
$ref: /schemas/types.yaml#/definitions/phandle
description:
phandle to the Inline Crypto Engine (ICE) hardware block for this controller.

iommus:
minItems: 1
maxItems: 8
Expand Down Expand Up @@ -192,35 +197,69 @@ allOf:
enum:
- qcom,sdhci-msm-v4
then:
properties:
reg:
minItems: 2
items:
- description: Host controller register map
- description: SD Core register map
- description: CQE register map
- description: Inline Crypto Engine register map
reg-names:
minItems: 2
items:
- const: hc
- const: core
- const: cqhci
- const: ice
if:
required:
- qcom,ice
then:
properties:
reg:
minItems: 2
items:
- description: Host controller register map
- description: SD Core register map
- description: CQE register map
reg-names:
minItems: 2
items:
- const: hc
- const: core
- const: cqhci
else:
properties:
reg:
minItems: 2
items:
- description: Host controller register map
- description: SD Core register map
- description: CQE register map
- description: Inline Crypto Engine register map
reg-names:
minItems: 2
items:
- const: hc
- const: core
- const: cqhci
- const: ice
else:
properties:
reg:
minItems: 1
items:
- description: Host controller register map
- description: CQE register map
- description: Inline Crypto Engine register map
reg-names:
minItems: 1
items:
- const: hc
- const: cqhci
- const: ice
if:
required:
- qcom,ice
then:
properties:
reg:
minItems: 1
items:
- description: Host controller register map
- description: CQE register map
reg-names:
minItems: 1
items:
- const: hc
- const: cqhci
else:
properties:
reg:
minItems: 1
items:
- description: Host controller register map
- description: CQE register map
- description: Inline Crypto Engine register map
reg-names:
minItems: 1
items:
- const: hc
- const: cqhci
- const: ice

unevaluatedProperties: false

Expand Down
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/qcom/monaco.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4533,6 +4533,8 @@
supports-cqe;
dma-coherent;

qcom,ice = <&sdhc_ice>;

status = "disabled";

sdhc1_opp_table: opp-table {
Expand Down Expand Up @@ -4560,6 +4562,13 @@
};
};

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>;
};

usb_1_hsphy: phy@8904000 {
compatible = "qcom,qcs8300-usb-hs-phy",
"qcom,usb-snps-hs-7nm-phy";
Expand Down
9 changes: 9 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7280.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,8 @@
qcom,dll-config = <0x0007642c>;
qcom,ddr-config = <0x80040868>;

qcom,ice = <&sdhc_ice>;

mmc-ddr-1_8v;
mmc-hs200-1_8v;
mmc-hs400-1_8v;
Expand All @@ -1076,6 +1078,13 @@
};
};

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>;
};

gpi_dma0: dma-controller@900000 {
#dma-cells = <3>;
compatible = "qcom,sc7280-gpi-dma", "qcom,sm6350-gpi-dma";
Expand Down