public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region
@ 2024-05-31  9:35 Tengfei Fan
  2024-05-31  9:35 ` [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Tengfei Fan @ 2024-05-31  9:35 UTC (permalink / raw)
  To: andersson, konrad.dybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel,
	Tengfei Fan

Add IMEM and PIL info region for the SA8775p platform.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---

v1 -> v2:
  - Adjust the position of the "ranges" property

Tengfei Fan (2):
  dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible
  arm64: dts: qcom: sa8775p: Add IMEM and PIL info region

 .../devicetree/bindings/sram/qcom,imem.yaml        |  1 +
 arch/arm64/boot/dts/qcom/sa8775p.dtsi              | 14 ++++++++++++++
 2 files changed, 15 insertions(+)


base-commit: 0e1980c40b6edfa68b6acf926bab22448a6e40c9
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible
  2024-05-31  9:35 [PATCH v2 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
@ 2024-05-31  9:35 ` Tengfei Fan
  2024-05-31  9:42   ` Krzysztof Kozlowski
  2024-05-31  9:35 ` [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  2024-06-02  3:53 ` [PATCH v2 0/2] arm64: " Bjorn Andersson
  2 siblings, 1 reply; 8+ messages in thread
From: Tengfei Fan @ 2024-05-31  9:35 UTC (permalink / raw)
  To: andersson, konrad.dybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel,
	Tengfei Fan

Add qcom,sa8775p-imem compatible name support.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---
 Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml
index 8025a852bc9c..faef3d6e0a94 100644
--- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml
+++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml
@@ -22,6 +22,7 @@ properties:
           - qcom,msm8974-imem
           - qcom,qcs404-imem
           - qcom,qdu1000-imem
+          - qcom,sa8775p-imem
           - qcom,sc7180-imem
           - qcom,sc7280-imem
           - qcom,sdm630-imem
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-31  9:35 [PATCH v2 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  2024-05-31  9:35 ` [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
@ 2024-05-31  9:35 ` Tengfei Fan
  2024-05-31 10:10   ` Dmitry Baryshkov
                     ` (2 more replies)
  2024-06-02  3:53 ` [PATCH v2 0/2] arm64: " Bjorn Andersson
  2 siblings, 3 replies; 8+ messages in thread
From: Tengfei Fan @ 2024-05-31  9:35 UTC (permalink / raw)
  To: andersson, konrad.dybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel,
	Tengfei Fan

Add a simple-mfd representing IMEM on SA8775p and define the PIL
relocation info region, so that post mortem tools will be able
to locate the loaded remoteprocs.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---
 arch/arm64/boot/dts/qcom/sa8775p.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index eae0de9720b5..89496728d840 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -3044,6 +3044,20 @@ tlmm: pinctrl@f000000 {
 			wakeup-parent = <&pdc>;
 		};
 
+		sram: sram@146d8000 {
+			compatible = "qcom,sa8775p-imem", "syscon", "simple-mfd";
+			reg = <0x0 0x146d8000 0x0 0x1000>;
+			ranges = <0x0 0x0 0x146d8000 0x1000>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			pil-reloc@94c {
+				compatible = "qcom,pil-reloc-info";
+				reg = <0x94c 0xc8>;
+			};
+		};
+
 		apps_smmu: iommu@15000000 {
 			compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500";
 			reg = <0x0 0x15000000 0x0 0x100000>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible
  2024-05-31  9:35 ` [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
@ 2024-05-31  9:42   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-31  9:42 UTC (permalink / raw)
  To: Tengfei Fan, andersson, konrad.dybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel

On 31/05/2024 11:35, Tengfei Fan wrote:
> Add qcom,sa8775p-imem compatible name support.
> 
> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
> ---
>  Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 +

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-31  9:35 ` [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
@ 2024-05-31 10:10   ` Dmitry Baryshkov
  2024-05-31 12:36   ` Konrad Dybcio
  2024-05-31 14:40   ` Mukesh Ojha
  2 siblings, 0 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2024-05-31 10:10 UTC (permalink / raw)
  To: Tengfei Fan
  Cc: andersson, konrad.dybcio, robh, krzk+dt, conor+dt, linux-arm-msm,
	devicetree, linux-kernel, quic_kbajaj, kernel

On Fri, May 31, 2024 at 05:35:31PM +0800, Tengfei Fan wrote:
> Add a simple-mfd representing IMEM on SA8775p and define the PIL
> relocation info region, so that post mortem tools will be able
> to locate the loaded remoteprocs.
> 
> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
> ---
>  arch/arm64/boot/dts/qcom/sa8775p.dtsi | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-31  9:35 ` [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  2024-05-31 10:10   ` Dmitry Baryshkov
@ 2024-05-31 12:36   ` Konrad Dybcio
  2024-05-31 14:40   ` Mukesh Ojha
  2 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2024-05-31 12:36 UTC (permalink / raw)
  To: Tengfei Fan, andersson, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel

On 31.05.2024 11:35 AM, Tengfei Fan wrote:
> Add a simple-mfd representing IMEM on SA8775p and define the PIL
> relocation info region, so that post mortem tools will be able
> to locate the loaded remoteprocs.
> 
> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-31  9:35 ` [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  2024-05-31 10:10   ` Dmitry Baryshkov
  2024-05-31 12:36   ` Konrad Dybcio
@ 2024-05-31 14:40   ` Mukesh Ojha
  2 siblings, 0 replies; 8+ messages in thread
From: Mukesh Ojha @ 2024-05-31 14:40 UTC (permalink / raw)
  To: Tengfei Fan, andersson, konrad.dybcio, robh, krzk+dt, conor+dt
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel



On 5/31/2024 3:05 PM, Tengfei Fan wrote:
> Add a simple-mfd representing IMEM on SA8775p and define the PIL
> relocation info region, so that post mortem tools will be able
> to locate the loaded remoteprocs.
> 
> Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
> ---
>   arch/arm64/boot/dts/qcom/sa8775p.dtsi | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> index eae0de9720b5..89496728d840 100644
> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> @@ -3044,6 +3044,20 @@ tlmm: pinctrl@f000000 {
>   			wakeup-parent = <&pdc>;
>   		};
>   
> +		sram: sram@146d8000 {
> +			compatible = "qcom,sa8775p-imem", "syscon", "simple-mfd";
> +			reg = <0x0 0x146d8000 0x0 0x1000>;
> +			ranges = <0x0 0x0 0x146d8000 0x1000>;
> +
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +
> +			pil-reloc@94c {
> +				compatible = "qcom,pil-reloc-info";
> +				reg = <0x94c 0xc8>;
> +			};
> +		};
> +

Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com>

-Mukesh


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-31  9:35 [PATCH v2 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  2024-05-31  9:35 ` [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
  2024-05-31  9:35 ` [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
@ 2024-06-02  3:53 ` Bjorn Andersson
  2 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-06-02  3:53 UTC (permalink / raw)
  To: konrad.dybcio, robh, krzk+dt, conor+dt, Tengfei Fan
  Cc: linux-arm-msm, devicetree, linux-kernel, quic_kbajaj, kernel


On Fri, 31 May 2024 17:35:29 +0800, Tengfei Fan wrote:
> Add IMEM and PIL info region for the SA8775p platform.
> 
> 

Applied, thanks!

[1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible
      commit: 9ca6eaf1337693e4e626359b76016912921dc557
[2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
      commit: 93f340084d05e7c109c0de20cca429492a377c37

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-02  3:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31  9:35 [PATCH v2 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
2024-05-31  9:35 ` [PATCH v2 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
2024-05-31  9:42   ` Krzysztof Kozlowski
2024-05-31  9:35 ` [PATCH v2 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
2024-05-31 10:10   ` Dmitry Baryshkov
2024-05-31 12:36   ` Konrad Dybcio
2024-05-31 14:40   ` Mukesh Ojha
2024-06-02  3:53 ` [PATCH v2 0/2] arm64: " Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox