Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Coia Prant" <coiaprant@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/3] arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2
Date: Tue, 30 Jun 2026 15:52:38 +0000	[thread overview]
Message-ID: <20260630155238.EF2421F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260630153810.3574714-7-coiaprant@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The `press-threshold-microvolt` values for the ADC keys are incorrectly set to the midpoints instead of the nominal voltages, breaking the closest-match logic.
- [Medium] The `uart8` pinmux configuration for the AP6356S Bluetooth module omits the RTS pin, breaking hardware flow control.
--

commit fa96250010d1434d5bd9c7fed26ebc77f8c2f9f1
Author: Coia Prant <coiaprant@gmail.com>

arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2

This patch adds support for the Graperain G3568 v2, an RK3568-based
development board. It defines the device tree including CPU, memory, network,
wireless, storage, display, and standard IO interfaces.

Link: https://image.chukouplus.com/upload/C_153/product_file/20211022/6daddec9e400458816dd4c57ba807fc3.pdf
Link: https://blog.gov.cooking/archives/research-graperain-g3568-v2-and-flash.html

> diff --git a/arch/arm64/boot/dts/rockchip/rk3568-graperain-g3568-v2.dts b/arch/arm64/boot/dts/rockchip/rk3568-graperain-g3568-v2.dts
> new file mode 100644
> index 0000000000000..221992d6c6003
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3568-graperain-g3568-v2.dts
> @@ -0,0 +1,894 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)

[ ... ]

> +	adc-keys {
> +		compatible = "adc-keys";
> +		io-channels = <&saradc 0>;
> +		io-channel-names = "buttons";
> +		keyup-threshold-microvolt = <1800000>;
> +		poll-interval = <100>;
> +
> +		button-esc {
> +			label = "esc";
> +			linux,code = <KEY_ESC>;
> +			press-threshold-microvolt = <1250000>;
> +		};
> +
> +		button-menu {
> +			label = "menu";
> +			linux,code = <KEY_MENU>;
> +			press-threshold-microvolt = <1600000>;
> +		};

[Severity: Medium]
Are these threshold values correct? The commit message declares nominal
voltages (e.g., 1.1V for ESC and 1.4V for MENU), but the values here seem to
be configured to the midpoints.

The adc-keys driver dynamically matches the read voltage to the closest
defined threshold. By configuring midpoints instead of actual nominal
voltages, the distance calculations can become skewed.

For example, when the MENU key (nominal 1.4V) is pressed, its distance to
the configured MENU threshold (1.6V) is 200mV, but its distance to the ESC
threshold (1.25V) is only 150mV.

Won't the driver incorrectly register the MENU key as ESC?

> +		button-vol-down {
> +			label = "volume down";
> +			linux,code = <KEY_VOLUMEDOWN>;
> +			press-threshold-microvolt = <600000>;
> +		};
> +
> +		button-vol-up {
> +			label = "volume up";
> +			linux,code = <KEY_VOLUMEUP>;
> +			press-threshold-microvolt = <100000>;
> +		};
> +	};

[ ... ]

> +/* used for WiFi/BT AP6356S */
> +&uart8 {
> +	pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
> +	status = "okay";
> +};

[Severity: Medium]
Does this UART configuration omit the RTS pin (&uart8m0_rtsn)?

High-speed Bluetooth modules like the AP6356S require hardware flow control to
prevent packet loss. Without the host RTS pin explicitly muxed, the Bluetooth
module may receive an invalid or floating RTS signal.

Could this prevent it from successfully transmitting data to the host or
cause buffer overflows when hardware flow control is utilized?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260630153810.3574714-2-coiaprant@gmail.com?part=3

      reply	other threads:[~2026-06-30 15:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30 15:38 [PATCH v2 0/3] Add devicetree for the Graperain G3568 v2 Coia Prant
2026-06-30 15:38 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add graperain Coia Prant
2026-07-01  7:05   ` Krzysztof Kozlowski
2026-06-30 15:38 ` [PATCH v2 2/3] dt-bindings: arm: rockchip: Add Graperain G3568 series Coia Prant
2026-07-01  7:07   ` Krzysztof Kozlowski
2026-07-01  9:57     ` Coia Prant
2026-06-30 15:38 ` [PATCH v2 3/3] arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2 Coia Prant
2026-06-30 15:52   ` 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=20260630155238.EF2421F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=coiaprant@gmail.com \
    --cc=conor+dt@kernel.org \
    --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