From: Laurentiu Mihalcea <laurentiumihalcea111@gmail.com>
To: Frank Li <Frank.li@nxp.com>, Daniel Baluta <daniel.baluta@nxp.com>
Cc: shawnguo@kernel.org, robh@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, krzk+dt@kernel.org, conor+dt@kernel.org,
festevam@gmail.com, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, aisheng.dong@nxp.com,
daniel.baluta@gmail.com, laurentiu.mihalcea@nxp.com,
shengjiu.wang@nxp.com, iuliana.prodan@nxp.com,
a.fatoum@pengutronix.de, Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH v4 5/6] arm64: dts: imx8mp: Add fsl,dsp-ctrl property for dsp
Date: Wed, 12 Feb 2025 21:04:47 +0200 [thread overview]
Message-ID: <da63fc79-76f6-443f-b1fe-c4242cb45328@gmail.com> (raw)
In-Reply-To: <Z6zGLn3B6SVXhTV1@lizhi-Precision-Tower-5810>
On 2/12/2025 6:02 PM, Frank Li wrote:
> On Wed, Feb 12, 2025 at 10:52:21AM +0200, Daniel Baluta wrote:
>> Audio block control contains a set of registers and some of them used for
>> DSP configuration.
>>
>> Drivers (rproc, SOF) are using fsl,dsp-ctrl property in order to control
>> the DSP, particularly for Run/Stall bit.
>>
>> Note that audio block control doesn't offer the functionality to reset
>> thte DSP. Reset is done via DAP interface.
>>
>> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
>> Reviewed-by: Peng Fan <peng.fan@nxp.com>
>> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
>> ---
>> arch/arm64/boot/dts/freescale/imx8mp.dtsi | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>> index 14cfbd228b45..46b33fbb9bd1 100644
>> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
>> @@ -1609,7 +1609,7 @@ sdma2: dma-controller@30e10000 {
>> };
>>
>> audio_blk_ctrl: clock-controller@30e20000 {
>> - compatible = "fsl,imx8mp-audio-blk-ctrl";
>> + compatible = "fsl,imx8mp-audio-blk-ctrl", "syscon";
>> reg = <0x30e20000 0x10000>;
>> #clock-cells = <1>;
>> #reset-cells = <1>;
>> @@ -2425,6 +2425,7 @@ dsp: dsp@3b6e8000 {
>> mboxes = <&mu2 0 0>, <&mu2 1 0>, <&mu2 3 0>;
>> firmware-name = "imx/dsp/hifi4.bin";
>> memory-region = <&dsp_reserved>;
>> + fsl,dsp-ctrl = <&audio_blk_ctrl>;
> I think kk's comments in v3
>
> "This should have been implemented as reset controller, not syscon. It's
> really poor choice to call everything syscon. It does not scale, does
> not provide you runtime PM or probe ordering (device links). Quick look
> at your drivers suggest that you have exacvtly that problems."
>
> The above is quite good suggestion.
>
> Your reply "But for Run/Stall bits we need to use a syscon.",
>
> Run/Stall actually is reset, Most system, release reset signal means dsp/core
> RUN.
>
> Frank
RESET and STALL are quite different signals w/ different purposes so
calling them both RESET is confusing and inaccurate.
The syscon is used here to control the STALL signal (name of the bit we're using is RunStall)
and has nothing to do with the RESET signal, which is why it's implemented as a syscon rather
than a reset controller.
While Krzysztof's comment does make sense, I still find it odd to have this implemented as a
reset controller despite it not having anything to do with the RESET signal.
Also, do note that the two nodes are in clock provider-consumer relationship
so unless I'm gravely mistaken this should at least guarantee the probe order.
next prev parent reply other threads:[~2025-02-12 19:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 8:52 [PATCH v4 0/6] Configure imx8mp dsp node for rproc usage Daniel Baluta
2025-02-12 8:52 ` [PATCH v4 1/6] arm64: dts: imx8mp: Add mu2 root clock Daniel Baluta
2025-02-12 8:52 ` [PATCH v4 2/6] arm64: dts: imx8mp: Configure dsp node for rproc usage Daniel Baluta
2025-02-12 8:52 ` [PATCH v4 3/6] arm64: dts: imx8mp: Add DSP clocks Daniel Baluta
2025-02-12 8:52 ` [PATCH v4 4/6] dt-bindings: clock: imx8mp: Add syscon compatible Daniel Baluta
2025-02-12 8:52 ` [PATCH v4 5/6] arm64: dts: imx8mp: Add fsl,dsp-ctrl property for dsp Daniel Baluta
2025-02-12 16:02 ` Frank Li
2025-02-12 19:04 ` Laurentiu Mihalcea [this message]
2025-02-12 19:48 ` Frank Li
2025-02-12 8:52 ` [PATCH v4 6/6] arm64: dts: Add dsp rproc related mem regions Daniel Baluta
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=da63fc79-76f6-443f-b1fe-c4242cb45328@gmail.com \
--to=laurentiumihalcea111@gmail.com \
--cc=Frank.li@nxp.com \
--cc=a.fatoum@pengutronix.de \
--cc=aisheng.dong@nxp.com \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@gmail.com \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=iuliana.prodan@nxp.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=laurentiu.mihalcea@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shengjiu.wang@nxp.com \
/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