From: Sascha Hauer <s.hauer@pengutronix.de>
To: Bryan Brattlof <bb@ti.com>
Cc: Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
Tero Kristo <kristo@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Dhruva Gole <d-gole@ti.com>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 2/3] arm64: dts: ti: k3-am62l: add initial infrastructure
Date: Fri, 16 May 2025 12:23:23 +0200 [thread overview]
Message-ID: <aCcSG5ah12N0yOwi@pengutronix.de> (raw)
In-Reply-To: <20250507-am62lx-v5-2-4b57ea878e62@ti.com>
Hi All,
On Wed, May 07, 2025 at 10:09:20PM -0500, Bryan Brattlof wrote:
> + rti0: watchdog@e000000 {
> + compatible = "ti,j7-rti-wdt";
> + reg = <0x00 0x0e000000 0x00 0x100>;
> + clocks = <&scmi_clk 273>;
> + power-domains = <&scmi_pds 60>;
> + assigned-clocks = <&scmi_clk 273>;
> + assigned-clock-parents = <&scmi_clk 1>;
> + };
> +
> + rti1: watchdog@e010000 {
> + compatible = "ti,j7-rti-wdt";
> + reg = <0x00 0x0e010000 0x00 0x100>;
> + clocks = <&scmi_clk 279>;
> + power-domains = <&scmi_pds 61>;
> + assigned-clocks = <&scmi_clk 279>;
> + assigned-clock-parents = <&scmi_clk 1>;
> + };
In the TI downstream TF-A we have this in the readme:
| AM62L Clock SCMI ID List:
| =========================
|
| **Note:** For using the clock parents, the scmi clock ID will not be the actual number itself,
| rather will be starting with 0 for respective parents similar to how it's being done in TI SCI
| Documentation: https://software-dl.ti.com/tisci/esd/09_02_07/5_soc_doc/am62ax/clocks.html
|
| For eg. for AM62LX_DEV_MCASP0_AUX_CLK device, clock ID will be 192, however if we require the parent
| to be AM62LX_DEV_MCASP0_AUX_CLK_PARENT_HSDIV4_16FFT_WKUP_0_HSDIVOUT1_CLK then we would represent in
| the device tree as:
|
| ```
| assigned-clocks = <&scmi_clk 192>;
| assigned-clock-parents = <&scmi_clk 1>;
This doesn't work. It's not conforming to the SCMI specification and it
also doesn't work with the Linux SCMI clk driver which will hang on a
cat /sys/kernel/debug/clk/clk_summary. This is because all clock
parents will be the SCMI clocks with the lowest ids including the clocks
with the lowest ids which will expose themselves as parents.
It also prevents the userspace from being able to make a tree structure
from the clock tree.
The corresponding TF-A code is requested for upstreaming here [1] where
I also commented on with the same issue.
Please stop spreading this further. The parents must be the actual
clk_id, not numbers from 0..n.
Sascha
[1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/34834
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-05-16 10:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-08 3:09 [PATCH v5 0/3] arm64: dts: ti: introduce basic support for the AM62L Bryan Brattlof
2025-05-08 3:09 ` [PATCH v5 1/3] dt-bindings: arm: ti: Add binding for AM62L SoCs Bryan Brattlof
2025-05-08 4:08 ` Rob Herring (Arm)
2025-05-08 6:51 ` Krzysztof Kozlowski
2025-05-08 13:14 ` Bryan Brattlof
2025-05-08 15:46 ` Krzysztof Kozlowski
2025-05-08 3:09 ` [PATCH v5 2/3] arm64: dts: ti: k3-am62l: add initial infrastructure Bryan Brattlof
2025-05-08 6:52 ` Krzysztof Kozlowski
2025-05-08 6:56 ` Krzysztof Kozlowski
2025-05-08 12:33 ` Nishanth Menon
2025-05-08 13:12 ` Bryan Brattlof
2025-05-16 10:23 ` Sascha Hauer [this message]
2025-05-16 12:23 ` Bryan Brattlof
2025-05-27 12:06 ` Sascha Hauer
2025-06-03 13:38 ` Sascha Hauer
2025-06-03 13:47 ` Bryan Brattlof
2025-05-08 3:09 ` [PATCH v5 3/3] arm64: dts: ti: k3-am62l: add initial reference board file Bryan Brattlof
2025-05-09 14:16 ` [PATCH v5 0/3] arm64: dts: ti: introduce basic support for the AM62L Rob Herring (Arm)
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=aCcSG5ah12N0yOwi@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=bb@ti.com \
--cc=conor+dt@kernel.org \
--cc=d-gole@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=kristo@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=robh@kernel.org \
--cc=vigneshr@ti.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;
as well as URLs for NNTP newsgroup(s).