mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region
@ 2024-05-29 10:19 Tengfei Fan
  2024-05-29 10:19 ` [PATCH 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
  2024-05-29 10:19 ` [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  0 siblings, 2 replies; 5+ messages in thread
From: Tengfei Fan @ 2024-05-29 10:19 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, andersson
  Cc: linux-arm-msm, devicetree, linux-kernel, kernel, Tengfei Fan

Add IMEM and PIL info region for the SA8775p platform.

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

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             | 15 +++++++++++++++
 2 files changed, 16 insertions(+)


base-commit: 9d99040b1bc8dbf385a8aa535e9efcdf94466e19
-- 
2.25.1


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

* [PATCH 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible
  2024-05-29 10:19 [PATCH 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
@ 2024-05-29 10:19 ` Tengfei Fan
  2024-05-29 10:19 ` [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  1 sibling, 0 replies; 5+ messages in thread
From: Tengfei Fan @ 2024-05-29 10:19 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, andersson
  Cc: linux-arm-msm, devicetree, linux-kernel, 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	[flat|nested] 5+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-29 10:19 [PATCH 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
  2024-05-29 10:19 ` [PATCH 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
@ 2024-05-29 10:19 ` Tengfei Fan
  2024-05-29 12:36   ` Mukesh Ojha
  1 sibling, 1 reply; 5+ messages in thread
From: Tengfei Fan @ 2024-05-29 10:19 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, andersson
  Cc: linux-arm-msm, devicetree, linux-kernel, 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 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index 5632fa896b93..eb33b1587802 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -3025,6 +3025,21 @@ tlmm: pinctrl@f000000 {
 			wakeup-parent = <&pdc>;
 		};
 
+		sram: sram@146d8000 {
+			compatible = "qcom,sa8775p-imem", "syscon", "simple-mfd";
+			reg = <0x0 0x146d8000 0x0 0x1000>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			ranges = <0x0 0x0 0x146d8000 0x1000>;
+
+			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	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-29 10:19 ` [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
@ 2024-05-29 12:36   ` Mukesh Ojha
  2024-05-30  0:27     ` Tengfei Fan
  0 siblings, 1 reply; 5+ messages in thread
From: Mukesh Ojha @ 2024-05-29 12:36 UTC (permalink / raw)
  To: Tengfei Fan, robh, krzk+dt, conor+dt, andersson
  Cc: linux-arm-msm, devicetree, linux-kernel, kernel



On 5/29/2024 3:49 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 | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> index 5632fa896b93..eb33b1587802 100644
> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
> @@ -3025,6 +3025,21 @@ tlmm: pinctrl@f000000 {
>   			wakeup-parent = <&pdc>;
>   		};
>   
> +		sram: sram@146d8000 {
> +			compatible = "qcom,sa8775p-imem", "syscon", "simple-mfd";
> +			reg = <0x0 0x146d8000 0x0 0x1000>;
> +
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +
> +			ranges = <0x0 0x0 0x146d8000 0x1000>;

This could be moved up along with reg region.

-Mukesh

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

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

* Re: [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region
  2024-05-29 12:36   ` Mukesh Ojha
@ 2024-05-30  0:27     ` Tengfei Fan
  0 siblings, 0 replies; 5+ messages in thread
From: Tengfei Fan @ 2024-05-30  0:27 UTC (permalink / raw)
  To: Mukesh Ojha, robh, krzk+dt, conor+dt, andersson
  Cc: linux-arm-msm, devicetree, linux-kernel, kernel



On 5/29/2024 8:36 PM, Mukesh Ojha wrote:
> 
> 
> On 5/29/2024 3:49 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 | 15 +++++++++++++++
>>   1 file changed, 15 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi 
>> b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
>> index 5632fa896b93..eb33b1587802 100644
>> --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
>> @@ -3025,6 +3025,21 @@ tlmm: pinctrl@f000000 {
>>               wakeup-parent = <&pdc>;
>>           };
>> +        sram: sram@146d8000 {
>> +            compatible = "qcom,sa8775p-imem", "syscon", "simple-mfd";
>> +            reg = <0x0 0x146d8000 0x0 0x1000>;
>> +
>> +            #address-cells = <1>;
>> +            #size-cells = <1>;
>> +
>> +            ranges = <0x0 0x0 0x146d8000 0x1000>;
> 
> This could be moved up along with reg region.
> 
> -Mukesh

Sure, I will move up along with reg region in the next version patch series.

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

-- 
Thx and BRs,
Tengfei Fan

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

end of thread, other threads:[~2024-05-30  0:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-29 10:19 [PATCH 0/2] arm64: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
2024-05-29 10:19 ` [PATCH 1/2] dt-bindings: soc: qcom: add qcom,sa8775p-imem compatible Tengfei Fan
2024-05-29 10:19 ` [PATCH 2/2] arm64: dts: qcom: sa8775p: Add IMEM and PIL info region Tengfei Fan
2024-05-29 12:36   ` Mukesh Ojha
2024-05-30  0:27     ` Tengfei Fan

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

all inboxes | Powered by JetHome®