All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ricardo Pardini" <ricardo@pardini.net>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: rockchip: Add Seeed Studio reComputer RK3576 Dev Kit
Date: Fri, 04 Dec 2026 12:14:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-249771@kernel.org> (raw)
In-Reply-To: <20261204-rk3576-recomputer-devkit-v2-2-d44d449c100e@pardini.net>

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] arm64: dts: rockchip: missing PDO_FIXED_DATA_SWAP in usbc0
  source-pdos
- [Medium] arm64: dts: rockchip: fixed codec sysclk locks es8311_sound
  to 48 kHz
- [Low] arm64: dts: rockchip: use generic sound node name instead of
  es8311-sound
- [Low] arm64: dts: rockchip: remove redundant status = okay override on
  tsadc
--

commit 6e6109d3753c7657bc8a924072ca1921566967f9
Author: Ricardo Pardini <ricardo@pardini.net>

arm64: dts: rockchip: Add Seeed Studio reComputer RK3576 Dev Kit

This commit adds the devicetree for the Seeed Studio reComputer RK3576
Dev Kit board and registers it in the Rockchip arm64 devicetree Makefile.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3576-recomputer-devkit.dts b/arch/arm64/boot/dts/rockchip/rk3576-recomputer-devkit.dts
> new file mode 100644
> index 0000000000000..eb047f5a5c5a9
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3576-recomputer-devkit.dts
> @@ -0,0 +1,1181 @@

[ ... ]

> +	es8311_sound: es8311-sound {
> +		compatible = "simple-audio-card";

[Severity: Low]
Should this node use the generic devicetree name "sound" instead of
embedding the codec model name ("es8311-sound")?  In rk3576.dtsi only
hdmi-sound is defined under the root node, so "sound" is available, as
used by other RK3576 boards.

[ ... ]

> +		simple-audio-card,mclk-fs = <256>;

[ ... ]

> +		simple-audio-card,codec {
> +			sound-dai = <&es8311>;
> +			system-clock-frequency = <12288000>;
> +		};
> +	};

[Severity: Medium]
Does setting system-clock-frequency alongside simple-audio-card,mclk-fs
lock es8311_sound to 48 kHz only?

When system-clock-frequency is specified, simple_util_parse_clk() marks
the codec clock as fixed, and simple_util_startup() constrains
SNDRV_PCM_HW_PARAM_RATE to 12288000 / 256 (48000 Hz), rejecting all
other hardware sample rates such as 44.1 kHz or 96 kHz.

Since CLK_SAI1_MCLKOUT_TO_IO propagates clk_set_rate() up to
MCLK_SAI1_8CH_SRC and es8311_set_sysclk() dynamically scales MCLK across
8 kHz to 96 kHz, removing system-clock-frequency here (and
assigned-clock-rates on es8311) would let simple-audio-card scale MCLK
dynamically.

[ ... ]

> +		connector {
> +			compatible = "usb-c-connector";
> +			label = "USB-C";
> +			data-role = "dual";
> +			power-role = "source";
> +			source-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;

[Severity: Medium]
Should source-pdos include PDO_FIXED_DATA_SWAP here?

Because this connector is source-only with data-role = "dual", FUSB302
always attaches as Source in the DFP (host) role, so switching to UFP
(device) mode requires a USB PD DR_Swap.  tcpm_pd_send_source_caps()
transmits source-pdos verbatim without setting PDO_FIXED_DATA_SWAP, so
compliant partners see Dual-Role Data = 0 in Source_Capabilities PDO0
and reject or refuse to initiate DR_Swap.

[ ... ]

> +&tsadc {
> +	status = "okay";
> +};

[Severity: Low]
Is this &tsadc override needed?  In rk3576.dtsi, tsadc@2ae70000 has no
status = "disabled" property so it is already enabled by default, and
this node adds no board-specific properties.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-rk3576-recomputer-devkit-v2-0-d44d449c100e@pardini.net?part=2

      reply	other threads:[~2026-12-04 12:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 11:49 [PATCH v2 0/2] arm64: dts: rockchip: Add Seeed Studio reComputer RK3576 Dev Kit Ricardo Pardini
2026-12-04 11:49 ` Ricardo Pardini via B4 Relay
2026-12-04 11:49 ` Ricardo Pardini via B4 Relay
2026-12-04 11:49 ` [PATCH v2 1/2] dt-bindings: arm: " Ricardo Pardini
2026-12-04 11:49   ` Ricardo Pardini via B4 Relay
2026-12-04 11:49   ` Ricardo Pardini via B4 Relay
2026-12-04 11:49 ` [PATCH v2 2/2] arm64: dts: " Ricardo Pardini
2026-12-04 11:49   ` Ricardo Pardini via B4 Relay
2026-12-04 11:49   ` Ricardo Pardini via B4 Relay
2026-12-04 12:14   ` 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=sashiko-outbox-249771@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ricardo@pardini.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.