From nobody Tue Feb 10 09:57:52 2026 Received: from smtp1.ms.mff.cuni.cz (smtp-in1.ms.mff.cuni.cz [195.113.20.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CFDF2EC563; Sun, 26 Oct 2025 18:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.234 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761503282; cv=none; b=XC9yJMzjtb4IDrSWQitt4z2Gh7cnCUnL1AgKfrHeKIP/t7frm6f6MsTXx9WVjRNDQtNQmTjO/Mu2PPaE8+G1A6QOshSCY8JcPIpXrTIXr9aOhY2SbIlHg4klL1sFmccxRdRXN7GYt2wCncHxhKxdqdabBXAAj1ywGPtVSD0lSew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761503282; c=relaxed/simple; bh=yFASgLRDtRYXPG3h1mK4uhOiMIbjSF5JoGsaQ9e4l2w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V/iowJ6fiaiNT3bBnXdVJkLjUK+Eh/hmnxs23jkfsrojmdRr722Teb6w5lYq0Wa19RvNUnVKa+xxbK17dmWkKASGDokx/bha3aR35RkMZrW1sAQ0Ak/islft70I0lGx9/KeQDx2HUkA2/l4eeR2EgixCXbIJUR4eaUVpgbHX68o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz; spf=pass smtp.mailfrom=matfyz.cz; dkim=pass (2048-bit key) header.d=mff.cuni.cz header.i=@mff.cuni.cz header.b=nc/kNpfL; arc=none smtp.client-ip=195.113.20.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=matfyz.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mff.cuni.cz header.i=@mff.cuni.cz header.b="nc/kNpfL" X-SubmittedBy: id balejk@matfyz.cz subject /postalCode=110+2000/O=Univerzita+20Karlova/street=Ovocn+5CxC3+5CxBD+20trh+20560/5/ST=Praha,+20Hlavn+5CxC3+5CxAD+20m+5CxC4+5Cx9Bsto/C=CZ/CN=Karel+20Balej/emailAddress=balejk@matfyz.cz serial F5FD910E8FE2121B897F7E55B84E351D issued by /C=NL/O=GEANT+20Vereniging/CN=GEANT+20Personal+20CA+204 auth type TLS.CUNI DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mff.cuni.cz; s=submission; t=1761503221; x=1762803221; bh=kXvC+cpea6VJnQ0B5yli7LjVJmmWX99wab1EyMVPdqM=; h=From; b=nc/kNpfLOmnmOYmYHzI1PNp5IcU//eVt2rbfKh2nJ9dwaGyvovdduaF9oa/oAealW B/272boPVasQRGutlh3EnNq+lK8HQih7Dgf90cXevSdCjIVEw0QjYJ9/ZMVXmQiT4a tOxXxgcxsCcGNlwRojtO9jQKC6CPVrtKn+0wsFLtH3FliEm4rtW2OWb2dVtNc1j3LB 7kX87C19oeSEiYQb/6b1QWqrBR12qrpNamOuNuwkwldv/nQTIoAP0uWoB9ykdqQQGs HoWQLoSvtppXNsKdZ5Zdg387LugtXV35q8jpjS1evZxN30TvhiGDvEaXgYRxeOs3d9 sZEI9qXFqOfng== Received: from localhost (internet5.mraknet.com [185.200.108.250]) (authenticated) by smtp1.ms.mff.cuni.cz (8.16.1/8.16.1) with ESMTPS id 59QIR0MQ043059 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Sun, 26 Oct 2025 19:27:01 +0100 (CET) (envelope-from balejk@matfyz.cz) From: Karel Balej To: Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Duje=20Mihanovi=C4=87?= , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Brian Norris , Francesco Dolcini , Ulf Hansson , Frank Li , linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Karel Balej , Jeff Chen , Peng Fan Subject: [DONOTAPPLY RFC PATCH v2 2/4] net: mwifiex: add support for the SD8777 chipset Date: Sun, 26 Oct 2025 19:20:39 +0100 Message-ID: <20251026182602.26464-3-balejk@matfyz.cz> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251026182602.26464-1-balejk@matfyz.cz> References: <20251026182602.26464-1-balejk@matfyz.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Marvell SD8777 is a wireless chipset used for instance in the PXA1908 SoC found for example in the samsung,coreprimevelte smartphone, with which this was tested. The driver seems to be compatible with this chipset so enable this support by adding the necessary information based on the downstream code. Signed-off-by: Karel Balej --- drivers/net/wireless/marvell/mwifiex/sdio.c | 21 +++++++++++++++++++++ drivers/net/wireless/marvell/mwifiex/sdio.h | 1 + include/linux/mmc/sdio_ids.h | 1 + 3 files changed, 23 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wire= less/marvell/mwifiex/sdio.c index f039d6f19183..a1adb78fabaf 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -318,6 +318,23 @@ static const struct mwifiex_sdio_card_reg mwifiex_reg_= sd89xx =3D { 0x68, 0x69, 0x6a}, }; =20 +static const struct mwifiex_sdio_device mwifiex_sdio_sd8777 =3D { + .firmware =3D SD8777_DEFAULT_FW_NAME, + .reg =3D &mwifiex_reg_sd87xx, + .max_ports =3D 16, + .mp_agg_pkt_limit =3D 8, + .tx_buf_size =3D MWIFIEX_TX_DATA_BUF_SIZE_2K, + .mp_tx_agg_buf_size =3D MWIFIEX_MP_AGGR_BUF_SIZE_16K, + .mp_rx_agg_buf_size =3D MWIFIEX_MP_AGGR_BUF_SIZE_16K, + .supports_sdio_new_mode =3D false, + .has_control_mask =3D true, + .can_dump_fw =3D false, + .can_auto_tdls =3D true, + .can_ext_scan =3D true, + .fw_ready_extra_delay =3D false, + .host_mlme =3D false, +}; + static const struct mwifiex_sdio_device mwifiex_sdio_sd8786 =3D { .firmware =3D SD8786_DEFAULT_FW_NAME, .reg =3D &mwifiex_reg_sd87xx, @@ -516,6 +533,7 @@ static struct memory_type_mapping mem_type_mapping_tbl[= ] =3D { }; =20 static const struct of_device_id mwifiex_sdio_of_match_table[] __maybe_unu= sed =3D { + { .compatible =3D "marvell,sd8777" }, { .compatible =3D "marvell,sd8787" }, { .compatible =3D "marvell,sd8897" }, { .compatible =3D "marvell,sd8978" }, @@ -954,6 +972,8 @@ static void mwifiex_sdio_coredump(struct device *dev) =20 /* WLAN IDs */ static const struct sdio_device_id mwifiex_ids[] =3D { + {SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8777_WLAN), + .driver_data =3D (unsigned long)&mwifiex_sdio_sd8777}, {SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8786_WLAN), .driver_data =3D (unsigned long) &mwifiex_sdio_sd8786}, {SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8787_WLAN), @@ -3201,6 +3221,7 @@ MODULE_AUTHOR("Marvell International Ltd."); MODULE_DESCRIPTION("Marvell WiFi-Ex SDIO Driver version " SDIO_VERSION); MODULE_VERSION(SDIO_VERSION); MODULE_LICENSE("GPL v2"); +MODULE_FIRMWARE(SD8777_DEFAULT_FW_NAME); MODULE_FIRMWARE(SD8786_DEFAULT_FW_NAME); MODULE_FIRMWARE(SD8787_DEFAULT_FW_NAME); MODULE_FIRMWARE(SD8797_DEFAULT_FW_NAME); diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.h b/drivers/net/wire= less/marvell/mwifiex/sdio.h index 65d142286c46..c6425191ad84 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.h +++ b/drivers/net/wireless/marvell/mwifiex/sdio.h @@ -18,6 +18,7 @@ =20 #include "main.h" =20 +#define SD8777_DEFAULT_FW_NAME "mrvl/sd8777_uapsta.bin" #define SD8786_DEFAULT_FW_NAME "mrvl/sd8786_uapsta.bin" #define SD8787_DEFAULT_FW_NAME "mrvl/sd8787_uapsta.bin" #define SD8797_DEFAULT_FW_NAME "mrvl/sd8797_uapsta.bin" diff --git a/include/linux/mmc/sdio_ids.h b/include/linux/mmc/sdio_ids.h index 673cbdf43453..61e95b5a528c 100644 --- a/include/linux/mmc/sdio_ids.h +++ b/include/linux/mmc/sdio_ids.h @@ -95,6 +95,7 @@ #define SDIO_DEVICE_ID_MARVELL_8797_BT 0x912a #define SDIO_DEVICE_ID_MARVELL_8897_WLAN 0x912d #define SDIO_DEVICE_ID_MARVELL_8897_BT 0x912e +#define SDIO_DEVICE_ID_MARVELL_8777_WLAN 0x9131 #define SDIO_DEVICE_ID_MARVELL_8887_F0 0x9134 #define SDIO_DEVICE_ID_MARVELL_8887_WLAN 0x9135 #define SDIO_DEVICE_ID_MARVELL_8887_BT 0x9136 --=20 2.51.1