Re: [PATCH v7 09/11] arm64: dts: ti: k3-am62a7-sk: Reserve main_timer2 for C7x DSP

Andrew Davis
2025-04-28T16:28:32Z

On 4/15/25 10:31 AM, Judith Mendez wrote:
> From: Hari Nagalla <hnagalla@ti.com>
>
> C7x DSP uses main_timer2, so mark it as reserved in linux DT.
>

The set of peripherals used by this C7x core depends on the firmware
running on the core. Long term we should think on a better way of
communicating this from firmware to Linux. Same goes for the next
two patches.

For now since these timers are always used by all firmware, this
will be safe to do, but for other peripherals we will need that
better solution.

Reviewed-by: Andrew Davis <afd@ti.com>

> Signed-off-by: Hari Nagalla <hnagalla@ti.com>
> Signed-off-by: Judith Mendez <jm@ti.com>
> ---
> arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
> index 7d817b447c1d0..8d7645bb90337 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
> +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
> @@ -682,6 +682,11 @@ &main_uart1 {
> status = "reserved";
> };
>
> +/* main_timer2 is used by C7x DSP */
> +&main_timer2 {
> + status = "reserved";
> +};
> +
> &usbss0 {
> status = "okay";
> ti,vbus-divider;