Devicetree
 help / color / mirror / Atom feed
From: Stefano Radaelli <stefano.radaelli21@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org,
	imx@lists.linux.dev, Frank.Li@kernel.org
Subject: Re: [PATCH v7 2/3] ARM: dts: imx7d: add Variscite VAR-SOM-MX7 support
Date: Mon, 31 Aug 2026 15:18:19 +0200	[thread overview]
Message-ID: <apV_G_t1swul34ZB@GLaDOS.station> (raw)
In-Reply-To: <20260831130506.94DB41F000E9@smtp.kernel.org>

On Mon, Aug 31, 2026 at 01:05:06PM +0000, sashiko-bot@kernel.org wrote:
> 
> > diff --git a/arch/arm/boot/dts/nxp/imx/imx7d-var-som-wm8731.dtsi b/arch/arm/boot/dts/nxp/imx/imx7d-var-som-wm8731.dtsi
> > new file mode 100644
> > index 0000000000000..ab05de43cc53a
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/nxp/imx/imx7d-var-som-wm8731.dtsi
> 
> [ ... ]
> 
> > +&i2c2 {
> > +	wm8731: audio-codec@1a {
> > +		compatible = "wlf,wm8731";
> > +		reg = <0x1a>;
> > +		#sound-dai-cells = <0>;
> > +		AVDD-supply = <&vgen6_reg>;
> > +		DBVDD-supply = <&vgen6_reg>;
> > +		DCVDD-supply = <&vgen6_reg>;
> > +		HPVDD-supply = <&vgen6_reg>;
> > +		clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
> 
> [Severity: High]
> Does the codec driver incorrectly bind to IMX7D_AUDIO_MCLK_ROOT_DIV instead of
> the physical SAI1 root clock driving the pin, causing the ASoC driver to read
> an incorrect frequency?

IMX7D_AUDIO_MCLK_ROOT_DIV is intentional here.
The codec MCLK is provided by the dedicated audio MCLK root,
while the SAI1 root clock is configured separately for the SAI interface.
This configuration has also been validated on the hardware.

> 
> > +		clock-names = "mclk";
> > +		assigned-clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_SRC>,
> > +				  <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
> > +		assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
> > +		assigned-clock-rates = <0>, <12288000>;
> > +	};
> > +};
> > +
> > +&sai1 {
> > +	pinctrl-names = "default", "sleep";
> > +	pinctrl-0 = <&pinctrl_sai1>, <&pinctrl_sai1_mclk>;
> > +	pinctrl-1 = <&pinctrl_sai1_sleep>, <&pinctrl_sai1_mclk_sleep>;
> > +	assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>,
> > +			  <&clks IMX7D_SAI1_ROOT_CLK>;
> > +	assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
> > +	assigned-clock-rates = <0>, <36864000>;
> > +	status = "okay";
> > +};
> 
> [Severity: High]
> Is the sai1 node missing the fsl,sai-mclk-direction-output property, leaving
> the codec's MCLK pin undriven?
> 

This is intentional. fsl,sai-mclk-direction-output is optional and
is not required for this hardware configuration.
The SAI1 MCLK pinmux and current clock setup have been validated
on the board without this property.

> 
> > +&i2c1 {
> > +	clock-frequency = <100000>;
> > +	pinctrl-names = "default", "gpio";
> > +	pinctrl-0 = <&pinctrl_i2c1>;
> > +	pinctrl-1 = <&pinctrl_i2c1_gpio>;
> > +	scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
> > +	sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
> > +	status = "okay";
> > +
> > +	pfuze300: pmic@8 {
> > +		compatible = "fsl,pfuze3000";
> > +		reg = <0x08>;
> > +
> > +		regulators {
> > +			sw1a_reg: sw1a {
> > +				regulator-min-microvolt = <700000>;
> > +				regulator-max-microvolt = <3300000>;
> 
> [Severity: High]
> Is it safe to set regulator-max-microvolt to 3.3V for the VDD_ARM regulator?
> Since this could allow the PMIC to supply up to 3.3V to the core, does this
> exceed the i.MX7Dual hardware absolute maximum tolerances (around 1.3V)?

This is intentional and matches the existing validated board
configuration. The regulator constraints are not used to drive VDD_ARM
to 3.3 V during normal operation.

  reply	other threads:[~2026-08-31 13:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 12:50 [PATCH v7 0/3] Add support for Variscite VAR-SOM-MX7 and MX7CustomBoard Stefano Radaelli
2026-08-31 12:50 ` [PATCH v7 1/3] dt-bindings: arm: fsl: add Variscite VAR-SOM-MX7 boards Stefano Radaelli
2026-08-31 12:50 ` [PATCH v7 2/3] ARM: dts: imx7d: add Variscite VAR-SOM-MX7 support Stefano Radaelli
2026-08-31 13:05   ` sashiko-bot
2026-08-31 13:18     ` Stefano Radaelli [this message]
2026-08-31 12:50 ` [PATCH v7 3/3] ARM: dts: imx7d: add Variscite MX7CustomBoard support Stefano Radaelli

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=apV_G_t1swul34ZB@GLaDOS.station \
    --to=stefano.radaelli21@gmail.com \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --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