2022-04-12 07:56:07

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 0/7] SDX65 devicetree updates

Hello,

This series adds devicetree nodes for SDX65. It adds
reserved memory nodes, SDHCI, smmu and tcsr mutex support.

Thanks,
Rohit.

Rohit Agarwal (7):
ARM: dts: qcom: sdx65: Add reserved memory nodes
dt-bindings: mmc: sdhci-msm: Document the SDX65 compatible
ARM: dts: qcom: sdx65: Add support for SDHCI controller
dt-bindings: arm-smmu: Add binding for SDX65 SMMU
ARM: dts: qcom: sdx65: Enable ARM SMMU
ARM: dts: qcom: sdx65: Add support for TCSR Mutex
ARM: dts: qcom: sdx65: Add Shared memory manager support

.../devicetree/bindings/iommu/arm,smmu.yaml | 1 +
.../devicetree/bindings/mmc/sdhci-msm.txt | 1 +
arch/arm/boot/dts/qcom-sdx65-mtp.dts | 21 ++++
arch/arm/boot/dts/qcom-sdx65.dtsi | 110 +++++++++++++++++++++
4 files changed, 133 insertions(+)

--
2.7.4


2022-04-12 09:37:58

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 7/7] ARM: dts: qcom: sdx65: Add Shared memory manager support

Add smem node to support shared memory manager on SDX65 platform.

Signed-off-by: Rohit Agarwal <[email protected]>
---
arch/arm/boot/dts/qcom-sdx65.dtsi | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi
index 5c28c94..b0eec91 100644
--- a/arch/arm/boot/dts/qcom-sdx65.dtsi
+++ b/arch/arm/boot/dts/qcom-sdx65.dtsi
@@ -174,6 +174,12 @@
#hwlock-cells = <1>;
};

+ smem {
+ compatible = "qcom,smem";
+ memory-region = <&smem_mem>;
+ hwlocks = <&tcsr_mutex 3>;
+ };
+
sdhc_1: sdhci@8804000 {
compatible = "qcom,sdx65-sdhci", "qcom,sdhci-msm-v5";
reg = <0x08804000 0x1000>;
--
2.7.4

2022-04-12 21:49:21

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 2/7] dt-bindings: mmc: sdhci-msm: Document the SDX65 compatible

The SDHCI controller on SDX65 is based on MSM SDHCI v5 IP. Hence,
document the compatible with "qcom,sdhci-msm-v5" as the fallback.

Signed-off-by: Rohit Agarwal <[email protected]>
---
Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
index 6a8cc26..e1023e8 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
+++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
@@ -24,6 +24,7 @@ Required properties:
"qcom,sc7280-sdhci", "qcom,sdhci-msm-v5";
"qcom,sdm845-sdhci", "qcom,sdhci-msm-v5"
"qcom,sdx55-sdhci", "qcom,sdhci-msm-v5";
+ "qcom,sdx65-sdhci", "qcom,sdhci-msm-v5";
"qcom,sm8250-sdhci", "qcom,sdhci-msm-v5"
NOTE that some old device tree files may be floating around that only
have the string "qcom,sdhci-msm-v4" without the SoC compatible string
--
2.7.4

2022-04-12 22:03:53

by Manivannan Sadhasivam

[permalink] [raw]
Subject: Re: [PATCH 0/7] SDX65 devicetree updates

On Mon, Apr 11, 2022 at 12:25:36PM +0530, Rohit Agarwal wrote:
> Hello,
>
> This series adds devicetree nodes for SDX65. It adds
> reserved memory nodes, SDHCI, smmu and tcsr mutex support.
>

Please CC me to all SDX65 related patches as I'd like to review them.

Thanks,
Mani

> Thanks,
> Rohit.
>
> Rohit Agarwal (7):
> ARM: dts: qcom: sdx65: Add reserved memory nodes
> dt-bindings: mmc: sdhci-msm: Document the SDX65 compatible
> ARM: dts: qcom: sdx65: Add support for SDHCI controller
> dt-bindings: arm-smmu: Add binding for SDX65 SMMU
> ARM: dts: qcom: sdx65: Enable ARM SMMU
> ARM: dts: qcom: sdx65: Add support for TCSR Mutex
> ARM: dts: qcom: sdx65: Add Shared memory manager support
>
> .../devicetree/bindings/iommu/arm,smmu.yaml | 1 +
> .../devicetree/bindings/mmc/sdhci-msm.txt | 1 +
> arch/arm/boot/dts/qcom-sdx65-mtp.dts | 21 ++++
> arch/arm/boot/dts/qcom-sdx65.dtsi | 110 +++++++++++++++++++++
> 4 files changed, 133 insertions(+)
>
> --
> 2.7.4
>

2022-04-12 22:25:00

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 4/7] dt-bindings: arm-smmu: Add binding for SDX65 SMMU

Add devicetree binding for Qualcomm SDX65 SMMU.

Signed-off-by: Rohit Agarwal <[email protected]>
---
Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
index da5381c..1f99bff 100644
--- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
+++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml
@@ -39,6 +39,7 @@ properties:
- qcom,sc8180x-smmu-500
- qcom,sdm845-smmu-500
- qcom,sdx55-smmu-500
+ - qcom,sdx65-smmu-500
- qcom,sm6350-smmu-500
- qcom,sm8150-smmu-500
- qcom,sm8250-smmu-500
--
2.7.4

2022-04-12 23:50:32

by Rohit Agarwal

[permalink] [raw]
Subject: [PATCH 5/7] ARM: dts: qcom: sdx65: Enable ARM SMMU

Add a node for the ARM SMMU found in the SDX65.

Signed-off-by: Rohit Agarwal <[email protected]>
---
arch/arm/boot/dts/qcom-sdx65.dtsi | 40 +++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi
index 632ac78..2481769 100644
--- a/arch/arm/boot/dts/qcom-sdx65.dtsi
+++ b/arch/arm/boot/dts/qcom-sdx65.dtsi
@@ -181,6 +181,46 @@
status = "disabled";
};

+ apps_smmu: iommu@15000000 {
+ compatible = "qcom,sdx65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