Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Moteen Shah" <m-shah@ti.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 2/2] arm64: dts: ti: Add audio overlay for k3-j721s2-evm
Date: Tue, 19 May 2026 15:04:30 +0000	[thread overview]
Message-ID: <20260519150430.E642DC2BCB3@smtp.kernel.org> (raw)
In-Reply-To: <20260519142341.2531948-3-m-shah@ti.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The audio device tree overlay fails to disable conflicting CAN node devices from the base board, causing McASP audio signal routing to be silently broken when CAN interfaces are brought up.
--

commit c1ba2c3319437f9663a75e0a335a9f4615ec2ea6
Author: Jayesh Choudhary <j-choudhary@ti.com>

arm64: dts: ti: Add audio overlay for k3-j721s2-evm

Add device tree overlay to enable analog audio support on J721S2-EVM
using PCM3168A codec connected to McASP4 serializers.

> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-evm-audio.dtso b/arch/arm64/boot/dts/ti/k3-j721s2-evm-audio.dtso
> new file mode 100644
> index 0000000000000..6ed4d6fc414d9
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-evm-audio.dtso
[ ... ]
> +&mux0 {
> +	idle-state = <0>;
> +};
> +
> +&mux1 {
> +	idle-state = <0>;
> +};

Will this signal routing be silently broken if the CAN interfaces are brought
up?

The base board device tree (k3-j721s2-common-proc-board.dts) enables
main_mcan3 and main_mcan5, which use PHYs configured with mux-states = <&mux0 1>
and <&mux1 1>. The McASP node here does not claim the mux via the mux-control
API, relying entirely on the idle-state fallback.

When the CAN interfaces are brought up (e.g., ifconfig can3 up), the CAN PHY
driver will call mux_state_select(), actively driving the mux controllers to
state 1. This overrides the idle-state 0 required for audio, physically breaking
the McASP signal routing without the audio driver's knowledge.

Should the overlay explicitly disable main_mcan3 and main_mcan5 to prevent this
hardware conflict?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260519142341.2531948-1-m-shah@ti.com?part=2

      reply	other threads:[~2026-05-19 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19 14:23 [PATCH v4 0/2] Enable audio support for J721S2 EVM Moteen Shah
2026-05-19 14:23 ` [PATCH v4 1/2] dt-bindings: ti: Update audio-refclk binding and j721e system controller Moteen Shah
2026-05-19 14:23 ` [PATCH v4 2/2] arm64: dts: ti: Add audio overlay for k3-j721s2-evm Moteen Shah
2026-05-19 15:04   ` sashiko-bot [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=20260519150430.E642DC2BCB3@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=m-shah@ti.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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