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 v3 3/3] arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2
Date: Wed, 01 Jul 2026 16:59:58 +0000 [thread overview]
Message-ID: <20260701165958.BC7CB1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260701164543.3967388-9-coiaprant@gmail.com>
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [Medium] The Broadcom SDIO Wi-Fi node uses an undocumented compatible string without the required generic fallback, breaking driver OF parsing.
- [Medium] The adc-keys press-threshold-microvolt values are calculated as midpoints rather than target voltages, causing the MENU button to be incorrectly detected as the ESC button.
- [Medium] Incomplete Bluetooth I2S audio configuration: missing pinctrl and sound card binding.
- [Low] Copy-paste error in bluetooth pinctrl node names indicating the wrong GPIO bank and pin numbers.
--
commit 808ebde69e3acf8280f05f45c66fcb212e1918cd
Author: Coia Prant <coiaprant@gmail.com>
arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2
The Graperain G3568 v2 is an RK3568-based development board. This patch
introduces the device tree file to support its hardware features, including
Ethernet, wireless connectivity, and physical buttons.
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
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3568-graperain-g3568-v2.dts
> @@ -0,0 +1,931 @@
> +// 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]
Will this configuration correctly identify the MENU button? The commit message
notes the hardware voltage for MENU is 1400000 microvolts.
Because the adc-keys driver matches based on the smallest absolute difference,
a 1400000 microvolt reading is closer to the ESC threshold
(1400000 - 1250000 = 150000) than the MENU threshold
(1600000 - 1400000 = 200000).
Could this cause pressing the MENU button to register as an ESC key press
instead?
[ ... ]
> +/* used for AP6356S Bluetooth Sound */
> +&i2s3_2ch {
> + status = "okay";
> +};
[Severity: Medium]
Does this node require pinctrl and a simple-audio-card binding to function?
It appears the I2S interface is enabled, but without routing the signals to
the external AP6356S chip pins and linking the I2S CPU DAI to the Bluetooth
codec DAI, ALSA might not register the sound card.
[ ... ]
> +&pinctrl {
> + bluetooth {
> + bt_reg_on_h_gpio3_a0: bt-reg-on-h-gpio4-b2 {
> + rockchip,pins = <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> +
> + bt_wake_host_h_gpio3_a1: bt-wake-host-h-gpio4-b4 {
> + rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
> + };
> +
> + host_wake_bt_h_gpio3_a2: host-wake-bt-h-gpio4-b5 {
> + rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> + };
[Severity: Low]
This isn't a functional bug, but do the node names here have a copy-paste
error? They indicate gpio4-b2, gpio4-b4, and gpio4-b5, but the contents
configure pins on GPIO bank 3 (RK_PA0, RK_PA1, RK_PA2).
[ ... ]
> +/* used for AP6356S WiFi */
> +&sdmmc2 {
> + bus-width = <4>;
> + cap-sd-highspeed;
> + cap-sdio-irq;
> + keep-power-in-suspend;
> + mmc-pwrseq = <&sdio_pwrseq>;
> + non-removable;
> + pinctrl-names = "default";
> + pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
> + sd-uhs-sdr104;
> + vmmc-supply = <&vcc3v3_sys>;
> + vqmmc-supply = <&vcc_1v8>;
> + status = "okay";
> +
> + wifi@1 {
> + compatible = "brcm,bcm4356-fmac";
> + reg = <1>;
> + };
> +};
[Severity: Medium]
Is the generic fallback compatible string missing here? The brcmfmac driver
explicitly checks for brcm,bcm4329-fmac during OF probing. Without this
fallback, the driver's OF parser aborts and properties like a
bootloader-injected local-mac-address might be ignored.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701164543.3967388-3-coiaprant@gmail.com?part=3
next prev parent reply other threads:[~2026-07-01 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 16:45 [PATCH v3 0/3] Add devicetree for the Graperain G3568 v2 Coia Prant
2026-07-01 16:45 ` [PATCH v3 1/3] dt-bindings: vendor-prefixes: Add graperain Coia Prant
2026-07-01 16:45 ` [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Graperain G3568 series Coia Prant
2026-07-02 6:33 ` Krzysztof Kozlowski
2026-07-01 16:45 ` [PATCH v3 3/3] arm64: dts: rockchip: Add devicetree for the Graperain G3568 v2 Coia Prant
2026-07-01 16:59 ` sashiko-bot [this message]
2026-07-01 17:38 ` Coia Prant
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=20260701165958.BC7CB1F000E9@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