Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH 0/3] SDM670 shared memory and socinfo
@ 2024-05-24  1:20 Richard Acayan
  2024-05-24  1:20 ` [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670 Richard Acayan
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Richard Acayan @ 2024-05-24  1:20 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree
  Cc: Richard Acayan

This adds the smem region to the SDM670 device tree and adds the SDM670
SoC ID to the socinfo driver. In addition to socinfo, the shared memory
region is also used for SMP2P and the remote processors, but they are
not added yet.

Richard Acayan (3):
  dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
  soc: qcom: socinfo: Add SDM670 SoC ID table entry
  arm64: dts: qcom: sdm670: add smem region

 arch/arm64/boot/dts/qcom/sdm670.dtsi | 18 ++++++++++++++++++
 drivers/soc/qcom/socinfo.c           |  1 +
 include/dt-bindings/arm/qcom,ids.h   |  1 +
 3 files changed, 20 insertions(+)

-- 
2.45.1


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

* [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
  2024-05-24  1:20 [PATCH 0/3] SDM670 shared memory and socinfo Richard Acayan
@ 2024-05-24  1:20 ` Richard Acayan
  2024-05-24 15:25   ` Konrad Dybcio
  2024-05-25 16:59   ` Krzysztof Kozlowski
  2024-05-24  1:20 ` [PATCH 2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry Richard Acayan
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 9+ messages in thread
From: Richard Acayan @ 2024-05-24  1:20 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree
  Cc: Richard Acayan

The socinfo driver uses SoC IDs from the device tree bindings.
Add the SoC ID for SDM670.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
 include/dt-bindings/arm/qcom,ids.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/arm/qcom,ids.h b/include/dt-bindings/arm/qcom,ids.h
index 19ac7b36f608..76e01686e818 100644
--- a/include/dt-bindings/arm/qcom,ids.h
+++ b/include/dt-bindings/arm/qcom,ids.h
@@ -175,6 +175,7 @@
 #define QCOM_ID_SDA630			327
 #define QCOM_ID_MSM8905			331
 #define QCOM_ID_SDX202			333
+#define QCOM_ID_SDM670			336
 #define QCOM_ID_SDM450			338
 #define QCOM_ID_SM8150			339
 #define QCOM_ID_SDA845			341
-- 
2.45.1


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

* [PATCH 2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry
  2024-05-24  1:20 [PATCH 0/3] SDM670 shared memory and socinfo Richard Acayan
  2024-05-24  1:20 ` [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670 Richard Acayan
@ 2024-05-24  1:20 ` Richard Acayan
  2024-05-24 15:25   ` Konrad Dybcio
  2024-05-24  1:20 ` [PATCH 3/3] arm64: dts: qcom: sdm670: add smem region Richard Acayan
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Richard Acayan @ 2024-05-24  1:20 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree
  Cc: Richard Acayan

There is support for SDM670 already, but not recognized by the socinfo
driver. Add the table entry so SDM670 can be found in sysfs.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
 drivers/soc/qcom/socinfo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index e8ff9819ac47..8817eb8c1f1c 100644
--- a/drivers/soc/qcom/socinfo.c
+++ b/drivers/soc/qcom/socinfo.c
@@ -347,6 +347,7 @@ static const struct soc_id soc_id[] = {
 	{ qcom_board_id(SDA630) },
 	{ qcom_board_id(MSM8905) },
 	{ qcom_board_id(SDX202) },
+	{ qcom_board_id(SDM670) },
 	{ qcom_board_id(SDM450) },
 	{ qcom_board_id(SM8150) },
 	{ qcom_board_id(SDA845) },
-- 
2.45.1


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

* [PATCH 3/3] arm64: dts: qcom: sdm670: add smem region
  2024-05-24  1:20 [PATCH 0/3] SDM670 shared memory and socinfo Richard Acayan
  2024-05-24  1:20 ` [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670 Richard Acayan
  2024-05-24  1:20 ` [PATCH 2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry Richard Acayan
@ 2024-05-24  1:20 ` Richard Acayan
  2024-05-28  3:32 ` (subset) [PATCH 0/3] SDM670 shared memory and socinfo Bjorn Andersson
  2024-05-28 14:13 ` Bjorn Andersson
  4 siblings, 0 replies; 9+ messages in thread
From: Richard Acayan @ 2024-05-24  1:20 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree
  Cc: Richard Acayan

The shared memory region is used for information about the SoC and
communication with remote processors. Add the smem region for SDM670.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
 arch/arm64/boot/dts/qcom/sdm670.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
index 80e81c4233b3..187c6698835d 100644
--- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
@@ -509,6 +509,18 @@ aop_cmd_db_mem: aop-cmd-db-mem@85fe0000 {
 			no-map;
 		};
 
+		smem@86000000 {
+			compatible = "qcom,smem";
+			reg = <0 0x86000000 0 0x200000>;
+			no-map;
+			hwlocks = <&tcsr_mutex 3>;
+		};
+
+		tz_mem: tz@86200000 {
+			reg = <0 0x86200000 0 0x2d00000>;
+			no-map;
+		};
+
 		camera_mem: camera-mem@8ab00000 {
 			reg = <0 0x8ab00000 0 0x500000>;
 			no-map;
@@ -1139,6 +1151,12 @@ mmss_noc: interconnect@1740000 {
 			qcom,bcm-voters = <&apps_bcm_voter>;
 		};
 
+		tcsr_mutex: hwlock@1f40000 {
+			compatible = "qcom,tcsr-mutex";
+			reg = <0 0x01f40000 0 0x20000>;
+			#hwlock-cells = <1>;
+		};
+
 		tlmm: pinctrl@3400000 {
 			compatible = "qcom,sdm670-tlmm";
 			reg = <0 0x03400000 0 0xc00000>;
-- 
2.45.1


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

* Re: [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
  2024-05-24  1:20 ` [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670 Richard Acayan
@ 2024-05-24 15:25   ` Konrad Dybcio
  2024-05-25 16:59   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2024-05-24 15:25 UTC (permalink / raw)
  To: Richard Acayan, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree

On 24.05.2024 3:20 AM, Richard Acayan wrote:
> The socinfo driver uses SoC IDs from the device tree bindings.
> Add the SoC ID for SDM670.
> 
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---

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

Konrad

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

* Re: [PATCH 2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry
  2024-05-24  1:20 ` [PATCH 2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry Richard Acayan
@ 2024-05-24 15:25   ` Konrad Dybcio
  0 siblings, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2024-05-24 15:25 UTC (permalink / raw)
  To: Richard Acayan, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree

On 24.05.2024 3:20 AM, Richard Acayan wrote:
> There is support for SDM670 already, but not recognized by the socinfo
> driver. Add the table entry so SDM670 can be found in sysfs.
> 
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---

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

Konrad

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

* Re: [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
  2024-05-24  1:20 ` [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670 Richard Acayan
  2024-05-24 15:25   ` Konrad Dybcio
@ 2024-05-25 16:59   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-25 16:59 UTC (permalink / raw)
  To: Richard Acayan, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree

On 24/05/2024 03:20, Richard Acayan wrote:
> The socinfo driver uses SoC IDs from the device tree bindings.
> Add the SoC ID for SDM670.
> 
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---
>  include/dt-bindings/arm/qcom,ids.h | 1 +
>  1 file changed, 1 insertion(+)
> 

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

Best regards,
Krzysztof


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

* Re: (subset) [PATCH 0/3] SDM670 shared memory and socinfo
  2024-05-24  1:20 [PATCH 0/3] SDM670 shared memory and socinfo Richard Acayan
                   ` (2 preceding siblings ...)
  2024-05-24  1:20 ` [PATCH 3/3] arm64: dts: qcom: sdm670: add smem region Richard Acayan
@ 2024-05-28  3:32 ` Bjorn Andersson
  2024-05-28 14:13 ` Bjorn Andersson
  4 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2024-05-28  3:32 UTC (permalink / raw)
  To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, devicetree, Richard Acayan


On Thu, 23 May 2024 21:20:24 -0400, Richard Acayan wrote:
> This adds the smem region to the SDM670 device tree and adds the SDM670
> SoC ID to the socinfo driver. In addition to socinfo, the shared memory
> region is also used for SMP2P and the remote processors, but they are
> not added yet.
> 
> Richard Acayan (3):
>   dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
>   soc: qcom: socinfo: Add SDM670 SoC ID table entry
>   arm64: dts: qcom: sdm670: add smem region
> 
> [...]

Applied, thanks!

[3/3] arm64: dts: qcom: sdm670: add smem region
      commit: 265d9989df5012adc5bec8e894dff0572c195a0c

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

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

* Re: (subset) [PATCH 0/3] SDM670 shared memory and socinfo
  2024-05-24  1:20 [PATCH 0/3] SDM670 shared memory and socinfo Richard Acayan
                   ` (3 preceding siblings ...)
  2024-05-28  3:32 ` (subset) [PATCH 0/3] SDM670 shared memory and socinfo Bjorn Andersson
@ 2024-05-28 14:13 ` Bjorn Andersson
  4 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2024-05-28 14:13 UTC (permalink / raw)
  To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, devicetree, Richard Acayan


On Thu, 23 May 2024 21:20:24 -0400, Richard Acayan wrote:
> This adds the smem region to the SDM670 device tree and adds the SDM670
> SoC ID to the socinfo driver. In addition to socinfo, the shared memory
> region is also used for SMP2P and the remote processors, but they are
> not added yet.
> 
> Richard Acayan (3):
>   dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
>   soc: qcom: socinfo: Add SDM670 SoC ID table entry
>   arm64: dts: qcom: sdm670: add smem region
> 
> [...]

Applied, thanks!

[1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670
      commit: 1866407831deb945a16c60c38246f28c2475b28a
[2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry
      commit: 48e4da7919bea2f5c0e20b218385ffe8d5492ab2

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

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

end of thread, other threads:[~2024-05-28 14:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24  1:20 [PATCH 0/3] SDM670 shared memory and socinfo Richard Acayan
2024-05-24  1:20 ` [PATCH 1/3] dt-bindings: arm: qcom,ids: Add SoC ID for SDM670 Richard Acayan
2024-05-24 15:25   ` Konrad Dybcio
2024-05-25 16:59   ` Krzysztof Kozlowski
2024-05-24  1:20 ` [PATCH 2/3] soc: qcom: socinfo: Add SDM670 SoC ID table entry Richard Acayan
2024-05-24 15:25   ` Konrad Dybcio
2024-05-24  1:20 ` [PATCH 3/3] arm64: dts: qcom: sdm670: add smem region Richard Acayan
2024-05-28  3:32 ` (subset) [PATCH 0/3] SDM670 shared memory and socinfo Bjorn Andersson
2024-05-28 14:13 ` Bjorn Andersson

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