Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Marek Vasut" <marek.vasut+renesas@mailbox.org>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org,
	wsa+renesas@sang-engineering.com, robh@kernel.org
Subject: Re: [PATCH v3] arm64: dts: renesas: r8a779md: Add support for R-Car M3Le R8A779MD Geist
Date: Fri, 22 May 2026 18:12:32 +0000	[thread overview]
Message-ID: <20260522181232.EE22E1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260522172000.15096-1-marek.vasut+renesas@mailbox.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Undocumented compatible strings for new hardware variants
- [Low] Inverted brightness-levels array violating semantics and causing logic error
--

commit 8e773037ec40fa18ba2cb58aa7b9d32280d8b5cb
Author: Nguyen Tran <nguyen.tran.pz@bp.renesas.com>

arm64: dts: renesas: r8a779md: Add support for R-Car M3Le R8A779MD Geist

Add support for the Geist board based on the Renesas R-Car R8A779MD (M3Le)
SoC, a register-compatible variant of the R8A77965 (M3-N) with reduced set
of peripherals.

> diff --git a/arch/arm64/boot/dts/renesas/r8a779md-geist.dts b/arch/arm64/boot/dts/renesas/r8a779md-geist.dts
> new file mode 100644
> index 0000000000000..11024bd12eb63
> --- /dev/null
> +++ b/arch/arm64/boot/dts/renesas/r8a779md-geist.dts
> @@ -0,0 +1,720 @@
> +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +/*
> + * Device Tree Source for the Geist board with R-Car M3Le
> + *
> + * Copyright (C) 2025-2026 Renesas Electronics Corp.
> + */
> +
> +/dts-v1/;
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/input/input.h>
> +#include "r8a779md.dtsi"
> +
> +/ {
> +	model = "Renesas Geist board based on r8a779md";
> +	compatible = "renesas,geist", "renesas,r8a779md", "renesas,r8a77965";

[Severity: Low]
Are the YAML device tree bindings for the new renesas,geist and
renesas,r8a779md compatible strings included in a separate patch?

According to the subsystem guidelines, new compatible strings must be added
to the schema. For renesas,r8a779md (a variant of renesas,r8a77965),
omitting it from existing if-then conditional blocks where previous
generations appear causes schema validation to be incomplete, rendering
dtbs_check unable to validate the node correctly.

[ ... ]

> +	backlight: backlight {
> +		compatible = "pwm-backlight";
> +		pwms = <&pwm1 0 50000>;
> +
> +		brightness-levels = <256 128 64 16 8 4 0>;

[Severity: Low]
Does this inverted brightness-levels array violate the device tree
specification to work around missing PWM_POLARITY_INVERTED support?

The DT common.yaml specification requires brightness levels to be strictly
increasing, with 0 being the darkest.

This inverted array introduces a logic error in
drivers/video/backlight/pwm_bl.c. In pwm_backlight_is_linear(), max_val (0)
- min_val (256) triggers an unsigned integer underflow (4294967040).

This underflow creates a massive arbitrary error margin, completely
breaking the linearity check and causing the driver to unconditionally
misclassify the backlight as linear in sysfs.

> +		default-brightness-level = <6>;
> +
> +		power-supply = <&reg_12v>;
> +		enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
> +	};

[ ... ]

> +&i2c2 {
> +	pinctrl-0 = <&i2c2_pins>;
> +	pinctrl-names = "default";
> +	clock-frequency = <100000>;
> +	status = "okay";

[ ... ]

> +	/* Pin-to-pin, register map, and control compatible with CS2000 and CS2200 */
> +	cs2500: clock-controller@4f {
> +		#clock-cells = <0>;
> +		compatible = "cirrus,cs2500", "cirrus,cs2000-cp";

[Severity: Low]
Is the cirrus,cs2500 compatible string missing its YAML binding schema?

Just like the board compatible strings above, adding a new hardware variant
requires updating the device tree bindings.

> +		reg = <0x4f>;
> +		clocks = <&audio_clkout>, <&x12_clk>;
> +		clock-names = "clk_in", "ref_clk";
> +
> +		assigned-clocks = <&cs2500>;
> +		assigned-clock-rates = <24576000>; /* 1/1 divide */
> +	};
> +};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260522172000.15096-1-marek.vasut+renesas@mailbox.org?part=1

  reply	other threads:[~2026-05-22 18:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-04 14:43 [PATCH v2 0/7] arm64: dts: renesas: r8a779md: Add support for R-Car M3Le R8A779MD SoC and Geist board Marek Vasut
2026-05-04 14:43 ` [PATCH v2 1/7] dt-bindings: mmc: renesas,sdhi: Document R-Car M3Le support Marek Vasut
2026-05-05 16:31   ` Conor Dooley
2026-05-11 15:39   ` Ulf Hansson
2026-05-04 14:43 ` [PATCH v2 2/7] mmc: renesas_sdhi: add R-Car M3Le compatibility string Marek Vasut
2026-05-11 15:39   ` Ulf Hansson
2026-05-04 14:43 ` [PATCH v2 3/7] dt-bindings: clock: cs2000-cp: document CS2500 Marek Vasut
2026-05-06 10:19   ` Geert Uytterhoeven
2026-05-31  8:36     ` Geert Uytterhoeven
2026-05-04 14:43 ` [PATCH v2 4/7] dt-bindings: soc: renesas: Document Renesas R-Car R8A779MD Geist Marek Vasut
2026-05-22 15:28   ` Geert Uytterhoeven
2026-05-04 14:43 ` [PATCH v2 5/7] soc: renesas: Identify Renesas R-Car R8A779MD M3Le SoC Marek Vasut
2026-05-22 15:29   ` Geert Uytterhoeven
2026-05-04 14:43 ` [PATCH v2 6/7] arm64: dts: renesas: r8a779md: Add Renesas R-Car R8A779MD M3Le DTs Marek Vasut
2026-05-22 15:34   ` Geert Uytterhoeven
2026-05-04 14:43 ` [PATCH v2 7/7] arm64: dts: renesas: r8a779md: Add support for R-Car M3Le R8A779MD Geist Marek Vasut
2026-05-22 15:47   ` Geert Uytterhoeven
2026-05-22 17:19     ` [PATCH v3] " Marek Vasut
2026-05-22 18:12       ` sashiko-bot [this message]
2026-05-25 10:21       ` Geert Uytterhoeven
2026-05-22 17:21     ` [PATCH v2 7/7] " Marek Vasut

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=20260522181232.EE22E1F00A3D@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /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