Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Dario Binacchi" <dario.binacchi@amarulasolutions.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 13/15] arm64: dts: st: support Engicam MicroGEA-STM32MP257-RMM board
Date: Mon, 18 May 2026 15:07:58 +0000	[thread overview]
Message-ID: <20260518150759.039F4C2BCB7@smtp.kernel.org> (raw)
In-Reply-To: <20260518143150.3138712-14-dario.binacchi@amarulasolutions.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Incorrect clock override on the parent `&sai1` node.
- [Low] Redundant redeclaration of labeled sub-nodes 'sai1a' and 'sai1b'.
--

commit 33b586ab74c039ad01865906f417ac15ced15e98
Author: Dario Binacchi <dario.binacchi@amarulasolutions.com>

arm64: dts: st: support Engicam MicroGEA-STM32MP257-RMM board

This commit adds device tree support for the Engicam MicroGEA-STM32MP257-RMM
board. It configures peripherals including eMMC, DRAM, CAN, LEDs, LCD panel,
SD card, audio codec, and buzzer.

> diff --git a/arch/arm64/boot/dts/st/stm32mp257-engicam-microgea-rmm.dts b/arch/arm64/boot/dts/st/stm32mp257-engicam-microgea-rmm.dts
> new file mode 100644
> index 0000000000000..1d5e023b3b442
> --- /dev/null
> +++ b/arch/arm64/boot/dts/st/stm32mp257-engicam-microgea-rmm.dts

[ ... ]

> +&sai1 {
> +	pinctrl-names = "default", "sleep";
> +	pinctrl-0 = <&sai1a_pins_a>, <&sai1b_pins_a>;
> +	pinctrl-1 = <&sai1a_sleep_pins_a>, <&sai1b_sleep_pins_a>;
> +	status = "okay";
> +	clocks = <&rcc CK_KER_SAI1>;

Does overriding the clocks property here remove the peripheral bus clock
reference? The base SoC device tree defines this as clocks = <&rcc CK_BUS_SAI1>
with clock-names = "pclk".

If the bus clock is omitted, the clock framework might disable it, potentially
leading to bus faults when the st,stm32mp25-sai driver accesses the registers.

Should the kernel clock (CK_KER_SAI1) be provided only to the sai1a and sai1b
sub-nodes instead?

> +
> +	sai1a: audio-controller@40290004 {

This isn't a bug, but does redefining the entire node structure and redeclaring
the label for sai1a (and sai1b below) clutter the tree and potentially trigger
duplicate label warnings?

The idiomatic approach is usually to reference the existing labeled nodes
directly at the root level using &sai1a and &sai1b.

> +		#clock-cells = <0>;
> +		dma-names = "tx";
> +		status = "okay";
> +
> +		sai1a_port: port {
> +			sai1a_endpoint: endpoint {
> +				remote-endpoint = <&sgtl5000_tx_endpoint>;
> +				dai-format = "i2s";
> +				mclk-fs = <512>;
> +			};
> +		};
> +	};
> +
> +	sai1b: audio-controller@40290024 {
> +		dma-names = "rx";
> +		st,sync = <&sai1a 2>;
> +		clocks = <&rcc CK_KER_SAI1>, <&sai1a>;
> +		clock-names = "sai_ck", "MCLK";
> +		status = "okay";

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260518143150.3138712-1-dario.binacchi@amarulasolutions.com?part=13

      reply	other threads:[~2026-05-18 15:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-18 14:31 [PATCH 00/15] arm64: support Engicam MicroGEA-STM32MP257-RMM board Dario Binacchi
2026-05-18 14:31 ` [PATCH 01/15] dt-bindings: arm: stm32: " Dario Binacchi
2026-05-18 16:44   ` Conor Dooley
2026-05-18 14:31 ` [PATCH 02/15] arm64: dts: st: add SDMMC2 support on stm32mp25 Dario Binacchi
2026-05-18 14:31 ` [PATCH 03/15] arm64: dts: st: add CAN1 " Dario Binacchi
2026-05-18 14:57   ` sashiko-bot
2026-05-18 14:31 ` [PATCH 04/15] arm64: dts: st: add i2c1 pins for stm32mp25 Dario Binacchi
2026-05-18 14:31 ` [PATCH 05/15] arm64: dts: st: add ltdc " Dario Binacchi
2026-05-18 14:31 ` [PATCH 06/15] arm64: dts: st: add can1 " Dario Binacchi
2026-05-18 14:31 ` [PATCH 07/15] arm64: dts: st: add pwm2/pwm4 " Dario Binacchi
2026-05-18 14:31 ` [PATCH 08/15] arm64: dts: st: add sai1 " Dario Binacchi
2026-05-18 14:31 ` [PATCH 09/15] arm64: dts: st: add sdmmc2 " Dario Binacchi
2026-05-18 14:31 ` [PATCH 10/15] arm64: dts: st: add spi1 " Dario Binacchi
2026-05-18 14:31 ` [PATCH 11/15] arm64: dts: st: add usart1 " Dario Binacchi
2026-05-18 14:31 ` [PATCH 12/15] arm64: dts: st: support Engicam MicroGEA-STM32MP257 SoM Dario Binacchi
2026-05-18 14:31 ` [PATCH 13/15] arm64: dts: st: support Engicam MicroGEA-STM32MP257-RMM board Dario Binacchi
2026-05-18 15:07   ` 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=20260518150759.039F4C2BCB7@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=devicetree@vger.kernel.org \
    --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