From: Jian Hu <jian.hu@amlogic.com>
To: Ronald Claveau <linux-kernel-dev@aliel.fr>
Cc: devicetree <devicetree@vger.kernel.org>,
linux-clk <linux-clk@vger.kernel.org>,
linux-amlogic <linux-amlogic@lists.infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Stephen Boyd <sboyd@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
robh+dt <robh+dt@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Subject: Re: [PATCH 3/3] arm64: dts: amlogic: t7: Add clock controller nodes
Date: Wed, 11 Mar 2026 19:48:32 +0800 [thread overview]
Message-ID: <172d5b9b-2274-4c01-92f5-c9f70efff7f6@amlogic.com> (raw)
In-Reply-To: <b6677544-d679-4f01-bcce-f9ce1518f942@aliel.fr>
On 3/11/2026 3:53 PM, Ronald Claveau wrote:
> [ EXTERNAL EMAIL ]
>
> On 3/5/26 8:43 AM, Jian Hu wrote:
>> Add the required clock controller nodes for Amlogic T7 SoC family:
>> - SCMI clock controller
>> - PLL clock controller
>> - Peripheral clock controller
>>
>> Signed-off-by: Jian Hu <jian.hu@amlogic.com>
>> ---
>> arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 125 ++++++++++++++++++++
>> 1 file changed, 125 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
>> index 6510068bcff9..6ea1b583b13d 100644
>> --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
>> +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
>> @@ -6,6 +6,9 @@
>> #include <dt-bindings/interrupt-controller/arm-gic.h>
>> #include <dt-bindings/power/amlogic,t7-pwrc.h>
>> #include "amlogic-t7-reset.h"
>> +#include <dt-bindings/clock/amlogic,t7-scmi.h>
>> +#include <dt-bindings/clock/amlogic,t7-pll-clkc.h>
>> +#include <dt-bindings/clock/amlogic,t7-peripherals-clkc.h>
>>
>> / {
>> interrupt-parent = <&gic>;
>> @@ -201,6 +204,33 @@ pwrc: power-controller {
>> };
>> };
>>
>> + sram@f7042000 {
>> + compatible = "mmio-sram";
> Applying your patches shows the following errors
>
>
> [ 0.019608] sram sram@f7042000: error -EINVAL: invalid resource (null)
> [ 0.019622] sram sram@f7042000: could not map SRAM registers
> [ 0.019627] sram sram@f7042000: probe with driver sram failed with
> error -22
>
> Adding a reg remove those errors on kernel logs
> reg = <0x0 0xf7042000 0x0 0x100>;
>
> Can you have a look on this ?
Thanks for your feedback!
The -EINVAL error is caused by the missing 'reg' property in the sram node.
The SRAM driver requires this property to get the physical address range
for MMIO mapping.
The 'ranges' property remains correct, and the 'reg' in the sram@0
subnode is correct.
The SCMI clock driver works fine.
I will add the 'reg' property to the sram node to fix the kernel error
logs in v2.
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + ranges = <0 0x0 0xf7042000 0x100>;
>> +
>> + scmi_shmem: sram@0 {
>> + compatible = "arm,scmi-shmem";
>> + reg = <0x0 0x100>;
>> + };
>> + };
>> +
[...]
>>
>> --
>> Best regards,
>> Ronald
>>
prev parent reply other threads:[~2026-03-11 11:49 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 7:43 [PATCH 0/3] Add the missing mpll3 clock and clock controller nodes Jian Hu
2026-03-05 7:43 ` [PATCH 1/3] dt-bindings: clock: amlogic: Fix a typo Jian Hu
2026-03-05 8:57 ` Jerome Brunet
2026-03-06 6:57 ` Jian Hu
2026-03-06 8:11 ` Krzysztof Kozlowski
2026-03-09 3:28 ` Jian Hu
2026-03-05 7:43 ` [PATCH 2/3] dt-bindings: clock: amlogic: t7: Add missing mpll3 parent clock Jian Hu
2026-03-05 9:03 ` Jerome Brunet
2026-03-06 7:36 ` Jian Hu
2026-03-06 8:14 ` Krzysztof Kozlowski
2026-03-10 7:42 ` Jian Hu
2026-03-05 13:45 ` Rob Herring (Arm)
2026-03-06 7:53 ` Jian Hu
2026-03-06 8:12 ` Krzysztof Kozlowski
2026-03-10 6:51 ` Jian Hu
2026-03-10 7:08 ` Krzysztof Kozlowski
2026-03-10 12:38 ` Jian Hu
2026-03-05 7:43 ` [PATCH 3/3] arm64: dts: amlogic: t7: Add clock controller nodes Jian Hu
2026-03-05 9:04 ` Jerome Brunet
2026-03-06 7:42 ` Jian Hu
2026-03-06 7:47 ` Ronald Claveau
2026-03-06 8:10 ` Jian Hu
2026-03-10 17:30 ` Ferass El Hafidi
2026-03-11 3:36 ` Jian Hu
2026-03-11 7:53 ` Ronald Claveau
2026-03-11 11:48 ` Jian Hu [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=172d5b9b-2274-4c01-92f5-c9f70efff7f6@amlogic.com \
--to=jian.hu@amlogic.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel-dev@aliel.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.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