Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Thomas Gerner" <thomas.gerner@muenchen-mail.de>
Cc: conor+dt@kernel.org, krzk+dt@kernel.org,
	devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH] Enable wifi on the BeagleV-Ahead
Date: Wed, 13 May 2026 23:43:47 +0000	[thread overview]
Message-ID: <20260513234347.D4A11C19425@smtp.kernel.org> (raw)
In-Reply-To: <20260512173440.163179-1-thomas.gerner@muenchen-mail.de>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Missing mandatory fallback compatible string `brcm,bcm4329-fmac` silently breaks driver interrupt parsing.
- [Low] Pinctrl node names violate the `thead,th1520-pinctrl` schema constraints.
--

commit 36b13556394c8110c85a42dc09295453444c2a36
Author: Thomas Gerner <thomas.gerner@muenchen-mail.de>

Enable wifi on the BeagleV-Ahead
    
The BeagleV-Ahead board uses an AP6203BM WiFi chip from AMPAK Technology
Inc. connected to SDIO1.

> diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> index 91f3f9b987bc3..86da4bd8ceaf9 100644
> --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
[ ... ]
> @@ -239,6 +244,28 @@ rx-pins {
>  			slew-rate = <0>;
>  		};
>  	};
> +
> +	wifi_pins: wifi-pins {
> +		host-wake-wl {

Does this naming follow the thead,th1520-pinctrl schema constraints?

The schema requires pad group nodes to match the regex -[0-9]+$ (for
example, wifi-0) and inner pin-mux child nodes to match -pins$ (for
example, host-wake-pins).

Using wifi-pins and host-wake-wl / reg-on-wl will trigger dtbs_check
validation errors.

> +			pins = "GPIO2_25";
> +			function = "gpio";
> +			bias-disable;
> +			drive-strength = <1>;
> +			input-enable;
> +			input-schmitt-disable;
> +			slew-rate = <0>;
> +		};
> +
> +		reg-on-wl {
[ ... ]
> +	wifi@1 {
> +		compatible = "cypress,cyw43012-fmac";

Does this compatible string need the brcm,bcm4329-fmac fallback?

In drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c, brcmf_of_probe()
explicitly checks for this fallback:

	if (!of_device_is_compatible(np, "brcm,bcm4329-fmac"))
		return;

Without the fallback string, the driver skips parsing the interrupts
property, which breaks the wake-on-WLAN functionality intended by
configuring the host-wake pin.

> +		reg = <1>;
> +		interrupt-parent = <&gpio2>;
> +		interrupts = <25 IRQ_TYPE_EDGE_RISING>;
> +		interrupt-names = "host-wake";
> +	};
> +};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260512173440.163179-1-thomas.gerner@muenchen-mail.de?part=1

      parent reply	other threads:[~2026-05-13 23:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 14:11 [PATCH] Enable wifi on the BeagleV-Ahead Thomas Gerner
2026-05-12  5:28 ` sashiko-bot
2026-05-12 17:33 ` Thomas Gerner
2026-05-12 18:39   ` Shengyu Qu
2026-05-13 17:38     ` Thomas Gerner
2026-05-13 23:43   ` 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=20260513234347.D4A11C19425@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=thomas.gerner@muenchen-mail.de \
    /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