[PATCH 3/4] riscv: dts: thead: enable AP6256 Wi-Fi on Milk-V Meles
Drew Fustini
fustini at kernel.org
Tue Sep 29 15:38:58 PDT 2026
On Tue, Sep 29, 2026 at 06:22:47PM +0800, Han Gao wrote:
> Connect AP6256 to SDIO1 with its fixed supplies and PMIC LPO clock.
> Use GPIO0_20 for WL_REG_ON and GPIO0_21 for the host-wake interrupt.
> Keep GPIO1_24 low to select the external antenna by default.
>
> Use the existing BCM43456 binding and the 198 MHz board limit.
> Keep module power during suspend and assign mmc2 to SDIO1.
>
> Signed-off-by: Han Gao <gaohan at iscas.ac.cn>
> ---
> arch/riscv/boot/dts/thead/th1520-milkv-meles.dts | 93 ++++++++++++++++++++++++
> 1 file changed, 93 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts
> index 3714047190789bfccd8ff6810342d7ff865e74e4..92b44cb90f57f4830efd29145744c005afa73119 100644
> --- a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts
> +++ b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts
[..]
> @@ -206,6 +249,26 @@ rx-pins {
> };
> };
>
> +&padctrl1_apsys {
> + wifi_enable_pins: wifi-enable-0 {
> + gpio-pins {
> + pins = "GPIO0_20";
> + bias-disable;
> + drive-strength = <7>;
> + input-disable;
> + };
> + };
> +
> + wifi_host_wake_pins: wifi-host-wake-0 {
> + gpio-pins {
> + pins = "GPIO0_21";
This node needs function = "gpio". It is interrupt-only so nothing
selects the GPIO mux. I can fix this up when applying to save a v2.
Reviewed-by: Drew Fustini <fustini at kernel.org>
More information about the linux-riscv
mailing list