Exynos850 ACPM SRAM devicetree node
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]>
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
@@ -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
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
Reviewed-by Krzysztof Kozlowski <[email protected]>Reviewed-by Sam Protsenko <[email protected]>Signed-off-by Alexey Klimov <[email protected]>---
Quoted 27 lines
Documentation/devicetree/bindings/sram/sram.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/sram/sram.yaml +2
-1@@ -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
Re: (subset) [PATCH v4 1/2] dt-bindings: sram: Document samsung,exynos850-acpm-sram
In reply to Alexey KlimovQuoted 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]>
PATCH v4 2/2 arm64: dts: exynos850: Add acpm SRAM node
In reply to Alexey KlimovSRAM 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
@@ -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
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.
Signed-off-by Alexey Klimov <[email protected]>---
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@@ -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
Re: [PATCH v4 2/2] arm64: dts: exynos850: Add acpm SRAM node
In reply to Alexey KlimovQuoted 6 lines · Alexey Klimov
SRAM is used by the ACPM protocol to retrieve the ACPM channels information and configuration data. Add the SRAM node.
Signed-off-by Alexey Klimov <[email protected]>---
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@@ -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
Re: (subset) [PATCH v4 2/2] arm64: dts: exynos850: Add acpm SRAM node
In reply to Alexey KlimovQuoted 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]>