Skip to contentSkip to conversation

Exynos850 ACPM SRAM devicetree node

PATCH Applied Alexey Klimov 4 participants 8 messages Sep 14 – Sep 20

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v4 cover Exynos850 ACPM SRAM devicetree node

Hi all,

this is a small series that adds sram node required for ACPM communication. Bindings update adds new compatible "samsung,exynos850-acpm-sram" there and excludes it from having child nodes and not required properties. The node becomes a simple one:

apm_sram: sram@2039000 {
	compatible = "samsung,exynos850-acpm-sram";
	reg = <0x2039000 0x40000>;
}

The ACPM driver will just continue to parse shmem phandle, so as far as I can see no updates there are required.

---
Changes in v4:
- extended/added a bit more explanation in the commit message of patch 1/2
as Sam suggested;
- fixed size of sram apm node (thanks to Sam for noticing!);
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- sram node moved to the beginning of SoC section in DT change,
reg property updated to match section requirement address-cells=1;
- updated trailers;
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- small update of the initial commit message
"Add SRAM node" -> "Add acpm SRAM node"
- new commit, updates dt bindings to exclude sram node to have child nodes and related properties, this adds new compatible samsung,exynos850-acpm-sram
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alexey Klimov (2):
dt-bindings: sram: Document samsung,exynos850-acpm-sram
arm64: dts: exynos850: Add acpm SRAM node

 Documentation/devicetree/bindings/sram/sram.yaml | 2 ++
 arch/arm64/boot/dts/exynos/exynos850.dtsi        | 5 +++++
 2 files changed, 7 insertions(+)

---
base-commit: 1a1de54f7369cd2b5bac0f265910e60ad3a6b4c3
change-id: 20260413-exynos850_sram-ca1200b99e82

Best regards,

Signature · 1 line
Alexey Klimov <[email protected]>
#1 lore raw

PATCH v4 1/2 dt-bindings: sram: Document samsung,exynos850-acpm-sram

Document "samsung,exynos850-acpm-sram" which represents an SRAM region used for ACPM communication on Samsung-based SoCs.

The SRAM is consumed as a whole, is not split up using child nodes and properties related to this are not required, that is why "mmio-sram" compatible can't be used for ACPM purposes because it requires child nodes to be declared, which are not needed and make no sense in case of ACPM.

---
 Documentation/devicetree/bindings/sram/sram.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/sram/sram.yaml +2 -0
index b83fc6831947..b9c4d4f3199b 100644
@@ -43,6 +43,7 @@ properties:
         - qcom,rpm-msg-ram
         - qcom,shikra-imem
         - rockchip,rk3288-pmu-sram
+        - samsung,exynos850-acpm-sram
 
   reg:
     maxItems: 1
@@ -159,6 +160,7 @@ if:
           enum:
             - qcom,rpm-msg-ram
             - rockchip,rk3288-pmu-sram
+            - samsung,exynos850-acpm-sram
 then:
   required:
     - "#address-cells"
Signature · 1 line
2.51.0
maintainer Reviewed-by on v4 1/2
#2 lore raw

Re: [PATCH v4 1/2] dt-bindings: sram: Document samsung,exynos850-acpm-sram

Quoted 9 lines · Alexey Klimov

Document "samsung,exynos850-acpm-sram" which represents an SRAM region used for ACPM communication on Samsung-based SoCs.

The SRAM is consumed as a whole, is not split up using child nodes and properties related to this are not required, that is why "mmio-sram" compatible can't be used for ACPM purposes because it requires child nodes to be declared, which are not needed and make no sense in case of ACPM.

Quoted 4 lines

---

Quoted 27 lines
 Documentation/devicetree/bindings/sram/sram.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/sram/sram.yaml +2 -1
index b83fc6831947..b9c4d4f3199b 100644
@@ -43,6 +43,7 @@ properties:
         - qcom,rpm-msg-ram
         - qcom,shikra-imem
         - rockchip,rk3288-pmu-sram
+        - samsung,exynos850-acpm-sram
 
   reg:
     maxItems: 1
@@ -159,6 +160,7 @@ if:
           enum:
             - qcom,rpm-msg-ram
             - rockchip,rk3288-pmu-sram
+            - samsung,exynos850-acpm-sram
 then:
   required:
     - "#address-cells"
 
--

2.51.0

maintainer Applied
#3 lore raw

Re: (subset) [PATCH v4 1/2] dt-bindings: sram: Document samsung,exynos850-acpm-sram

In reply to Alexey Klimov
Quoted 9 lines · Alexey Klimov

Document "samsung,exynos850-acpm-sram" which represents an SRAM region used for ACPM communication on Samsung-based SoCs.

The SRAM is consumed as a whole, is not split up using child nodes and properties related to this are not required, that is why "mmio-sram" compatible can't be used for ACPM purposes because it requires child nodes to be declared, which are not needed and make no sense in case of ACPM.

[...]

Applied, thanks!

[1/2] dt-bindings: sram: Document samsung,exynos850-acpm-sram

      https://git.kernel.org/krzk/linux/c/ca4fb89e677527e32d16c5eb779eb34bccd2b967

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#4 lore raw

PATCH v4 2/2 arm64: dts: exynos850: Add acpm SRAM node

In reply to Alexey Klimov

SRAM is used by the ACPM protocol to retrieve the ACPM channels information and configuration data. Add the SRAM node.

---
 arch/arm64/boot/dts/exynos/exynos850.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/exynos/exynos850.dtsi +5 -0
index 911643008b9f..2128749d7647 100644
@@ -176,6 +176,11 @@ soc: soc@0 {
 		#size-cells = <1>;
 		ranges = <0x0 0x0 0x0 0x20000000>;
 
+		apm_sram: sram@2039000 {
+			compatible = "samsung,exynos850-acpm-sram";
+			reg = <0x2039000 0x30000>;
+		};
+
 		chipid@10000000 {
 			compatible = "samsung,exynos850-chipid";
 			reg = <0x10000000 0x100>;
Signature · 1 line
2.51.0
maintainer Reviewed-by on v4 2/2
#5 lore raw

Re: [PATCH v4 2/2] arm64: dts: exynos850: Add acpm SRAM node

Quoted 6 lines · Alexey Klimov

SRAM is used by the ACPM protocol to retrieve the ACPM channels information and configuration data. Add the SRAM node.

---

Quoted 23 lines
 arch/arm64/boot/dts/exynos/exynos850.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/exynos/exynos850.dtsi +5 -1
index 911643008b9f..2128749d7647 100644
@@ -176,6 +176,11 @@ soc: soc@0 {
                #size-cells = <1>;
                ranges = <0x0 0x0 0x0 0x20000000>;
 
+               apm_sram: sram@2039000 {
+                       compatible = "samsung,exynos850-acpm-sram";
+                       reg = <0x2039000 0x30000>;
+               };
+
                chipid@10000000 {
                        compatible = "samsung,exynos850-chipid";
                        reg = <0x10000000 0x100>;
 
--

2.51.0

maintainer Reviewed-by on v4 2/2
#6 lore raw

Re: [PATCH v4 2/2] arm64: dts: exynos850: Add acpm SRAM node

In reply to Alexey Klimov
Quoted 6 lines · Alexey Klimov

SRAM is used by the ACPM protocol to retrieve the ACPM channels information and configuration data. Add the SRAM node.

---

Quoted 23 lines
 arch/arm64/boot/dts/exynos/exynos850.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/exynos/exynos850.dtsi +5 -1
index 911643008b9f..2128749d7647 100644
@@ -176,6 +176,11 @@ soc: soc@0 {
                #size-cells = <1>;
                ranges = <0x0 0x0 0x0 0x20000000>;
 
+               apm_sram: sram@2039000 {
+                       compatible = "samsung,exynos850-acpm-sram";
+                       reg = <0x2039000 0x30000>;
+               };
+
                chipid@10000000 {
                        compatible = "samsung,exynos850-chipid";
                        reg = <0x10000000 0x100>;
 
--

2.51.0

maintainer Applied
#7 lore raw

Re: (subset) [PATCH v4 2/2] arm64: dts: exynos850: Add acpm SRAM node

In reply to Alexey Klimov
Quoted 2 lines · Alexey Klimov

SRAM is used by the ACPM protocol to retrieve the ACPM channels information and configuration data. Add the SRAM node.

Applied, thanks!

[2/2] arm64: dts: exynos850: Add acpm SRAM node

      https://git.kernel.org/krzk/linux/c/089d44f32868e6a5fc3f817073b59b298fbc9e73

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>