Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Alexey Klimov <alexey.klimov@linaro.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Sam Protsenko <semen.protsenko@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Alim Akhtar <alim.akhtar@samsung.com>
Subject: Re: [PATCH] arm64: dts: exynos850: Add SRAM node
Date: Wed, 6 May 2026 15:11:58 +0300	[thread overview]
Message-ID: <b7657812-3afc-4b13-a579-6f07d061e2d9@linaro.org> (raw)
In-Reply-To: <DI6LNH2F0DP5.H1ZM8MTSDQJR@linaro.org>



On 4/30/26 6:37 PM, Alexey Klimov wrote:
> On Tue Apr 14, 2026 at 10:08 AM BST, Krzysztof Kozlowski wrote:
>> On 14/04/2026 11:00, Alexey Klimov wrote:
>>> On Mon Apr 13, 2026 at 4:23 PM BST, Krzysztof Kozlowski wrote:
>>>> On 13/04/2026 16:52, Alexey Klimov wrote:
>>>>> 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 <alexey.klimov@linaro.org>
>>>>> ---
>>>>>  arch/arm64/boot/dts/exynos/exynos850.dtsi | 8 ++++++++
>>>>>  1 file changed, 8 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm64/boot/dts/exynos/exynos850.dtsi b/arch/arm64/boot/dts/exynos/exynos850.dtsi
>>>>> index cb55015c8dce..cf4a6168846c 100644
>>>>> --- a/arch/arm64/boot/dts/exynos/exynos850.dtsi
>>>>> +++ b/arch/arm64/boot/dts/exynos/exynos850.dtsi
>>>>> @@ -910,6 +910,14 @@ spi_2: spi@11d20000 {
>>>>>  			};
>>>>>  		};
>>>>>  	};
>>>>> +
>>>>> +	apm_sram: sram@2039000 {
>>>>> +		compatible = "mmio-sram";
>>>>> +		reg = <0x0 0x2039000 0x40000>;
>>>>> +		#address-cells = <1>;
>>>>> +		#size-cells = <1>;
>>>>> +		ranges = <0x0 0x0 0x2039000 0x40000>;
>>>>
>>>> You miss here children.
>>>
>>> Thank you! I guess I should convert it to smth like this:
>>>
>>> apm_sram: sram@2039000 {
>>> 		compatible = "mmio-sram";
>>> 		reg = <0x0 0x2039000 0x40000>;
>>> 		ranges = <0x0 0x0 0x2039000 0x40000>;
>>> 		#address-cells = <1>;
>>> 		#size-cells = <1>;
>>>
>>> 		acpm_sram_region: sram-section@0 {
>>> 			reg = <0x0 0x40000>;
>>
>> This covers entire block, so feels pointless. Maybe requirement of
>> children should be dropped. What's the point of having children? Why
>> does the driver need them?
> 
> Thinking further about this. I was looking at the schema file and
> different commits and it the right approach could be:
> 
> - add separate compatible for mmio-sram region for this case. Similar
> to scmi and scpi, i'd say it should be "exynos,acpm-sram" or
> "samsung,acpm-sram";
> 
> - update schema sram.yaml to exclude requirement for having child nodes
> and properties like ranges, address and size cells
> Similar like in commit, for instance, git show d0fe6491ddd22
> (or git show 2d4a22e79a5fd).

this works fine, but only if the sram is consumed as a whole, and only by
ACPM. Is this the case for exynos850?

Cheers,
ta


      reply	other threads:[~2026-05-06 12:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-13 14:52 [PATCH] arm64: dts: exynos850: Add SRAM node Alexey Klimov
2026-04-13 15:23 ` Krzysztof Kozlowski
2026-04-14  9:00   ` Alexey Klimov
2026-04-14  9:08     ` Krzysztof Kozlowski
2026-04-14 10:20       ` Tudor Ambarus
2026-04-30 15:37       ` Alexey Klimov
2026-05-06 12:11         ` Tudor Ambarus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7657812-3afc-4b13-a579-6f07d061e2d9@linaro.org \
    --to=tudor.ambarus@linaro.org \
    --cc=alexey.klimov@linaro.org \
    --cc=alim.akhtar@samsung.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=semen.protsenko@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox