Message ID | 20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com |
---|---|
Headers | show
Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) (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 563B515AAC1; Wed, 28 Aug 2024 07:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.117 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830881; cv=fail; b=fJ8vpXtISzuLEA/Xek3pBv/XiCFmnIa5ymC5Y/etj+ci+FBxErebD/NNCL7LqZrB93v5OQ40jYoxFWyv7WrVJPqUBzxxfl/5uLoSsyGOo3TSOUdGvUv0/xRo9g1b3LHz7I35gzyIuVxDifzRdW08SeBiqMFJD0iMu+w0mpkborw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724830881; c=relaxed/simple; bh=fFKqfRCCt9hv8l+BGLOj4f9IVlAZh40IH2KQTOj8BBE=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=MZIb8kO1j9u1Tc3IbmXYY5fH4vJe4o7ewhZsiTCOuZAv7B7czi1L+y+9c2PuGOsSGzDjiHKNZjCVsrEsLDQoKZD5Ar1NL+4zFnQsAZ00MBiasLKnSTC+3yBCDPk5eM/lSzNoJM1+cY96y2geRh+/ny0XA8Mco5I3gU3urOCT3BI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.255.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pQu16Av7Ku6y44XKFa4gd1uyUkjJIVRZbWxZs0KO0j0v34IJiHKgS7oTLtJ6STARRF6O5caGHGj2XmVtSVxFX0J6PiHoqYX1QEEnumUQYRkrnz15h+7QOnmfyJx0ZuEC6nxYBysszpR+mW4jU1ix9zmQ493ZtvraHVXMo+1VUaQBr9QN/xSLy7UJyQZd9VpF67PU5cv+NMr26CiNkyh2bcUFblaQiQOLEhp0Su6s+xMzhqxKggVNNt9ZmCeiLP7sJZR0gKKkVeN15hlwuXv5EPSAjqsMsFnXRy76Pp2FvxxUlaN/i18auxOcgnCsB6YOHm4+vKuYwxzJec8yZDHtSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ma1tEF9rizPRqq5WfhGPcqyQ59WJdEPBYyfRJkmKx8E=; b=B1wZ22+S0ETs/6J4Iw+S2QtjLUeaU+KMtO4g9GGyyAm8BjQrglZrnD9KHQRCB+MPgKiho/+9vAtqE5C6rZk75k3lbkJa09GeTCKdhc+1bG4HgxZFM4SmgJFtdWAc5c3rI4qXvb74ueU9tpX1oeMoqovDUmOFfcjGHkx2NUv0OohoqlgacY3uRoOyqWccy2DA/22Wwz161MRlvf0FNg9HhCk0KnpqdQ4T7DNgn7HQlnRfbblYQlFQ3SIIuEbLrmgPtQsCQpHjgDP0g55+eOOSQ8D05J+FD8eAE92OevEPr6Ss2mj/7tJ5QEqey21JpnTipvG1/kS8idO69WMVC9++Ig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by KL1PR03MB7765.apcprd03.prod.outlook.com (2603:1096:820:ec::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Wed, 28 Aug 2024 07:41:11 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%4]) with mapi id 15.20.7875.019; Wed, 28 Aug 2024 07:41:10 +0000 From: Jacobe Zang <jacobe.zang@wesion.com> Subject: [PATCH v12 0/5] Add AP6276P wireless support Date: Wed, 28 Aug 2024 15:40:47 +0800 Message-Id: <20240828-wireless-mainline-v12-0-9064ac7acf1d@wesion.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAH/UzmYC/x2M3QpAQBQGX0Xn2habhFeRi/35cGot7SmUvLvN5 UzNPCRIDKGheCjhZOE9Zqh1WZBbTVyg2GdButJN1elOXZwQIKI2wzFwhLLOWdP7tsdsKXdHwsz 3Px2n9/0A1PUsumQAAAA= To: Kalle Valo <kvalo@kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, van Spriel <arend@broadcom.com>, Arend van Spriel <arend.vanspriel@broadcom.com> Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jacobe Zang <jacobe.zang@wesion.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Ondrej Jirman <megi@xff.cz>, Sai Krishna <saikrishnag@marvell.com> X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724830868; l=4070; i=jacobe.zang@wesion.com; s=20240828; h=from:subject:message-id; bh=fFKqfRCCt9hv8l+BGLOj4f9IVlAZh40IH2KQTOj8BBE=; b=RtaUYiC7725FzYZPerG58//3/wkDadYEKeBdyDbizU39cgseesNspBEsyIcSLVS8dt0SYoAIM Or4LTSEnTz8AVO1TGgE3xnRInQL1WbM23BPUB2Qnl5xofClz/Pcu45T X-Developer-Key: i=jacobe.zang@wesion.com; a=ed25519; pk=CkP5TjIqHSwHJwZXTGtadoXZucYvakXcO3HjbR6FoeU= X-ClientProxiedBy: TYCP286CA0372.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::20) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: <linux-wireless.vger.kernel.org> List-Subscribe: <mailto:linux-wireless+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-wireless+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7765:EE_ X-MS-Office365-Filtering-Correlation-Id: 17049843-790d-4eeb-c288-08dcc734c93a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|1800799024|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?TYHzBKEi46l0x3xISajFbXdq0ucrFrO?= =?utf-8?q?5Pqbvkd9ntVDzpOHJQ1yQCBlc8XPkBDBTemil+KWSQysG+xG31FsGHtan5K6Pw++n?= =?utf-8?q?z00J5e22a6Io/kRS2gWmVATFNqz/E7jU4bWrLUi6gZEajx2d/SGp2rTM9Qzdw/fH4?= =?utf-8?q?dQq8R5qX3uK9f+4XZf6zriG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LZ/jLE0Psg?= =?utf-8?q?1qbKM8rw2eKvuW8rbfOCeFECXsbmoVN2UKhBmhJJTuOM7t6cCrC3ueQJZhavoJ2y/?= =?utf-8?q?cNqJd750+gVZrGqsQQlqXY22y0pWpNOtabyAUFG8u0Nmo8R7vWHUTzyn59Hfi1MBV?= =?utf-8?q?zHH2PBjnp8qU/i5j6X4UEd8HIGZsnnkutvHiWPAlwEiJIUl02bHhQvbCQ/pof8xUz?= =?utf-8?q?xjk5hZRJ17OFhZYFde/EVVRNlCx/I3mttebdOjia4R7dll8rfVVHV1ldFzcF0IDre?= =?utf-8?q?JC+cmVGGFyL23pZyC/u0pd+NdwMB+H5og1RfVdoM0tCmOj4fNzxKLSk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(366016)(1800799024)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PtRzo7MgAwCzWfQuRhE6/lr9H7gX?= =?utf-8?q?H4jYtH0ipt9K6mneVPQOuinX04AsRjCEKbtcYBCVqp1u2EBNDxmX2XK88W+EerNfd?= =?utf-8?q?6KHbvLTVDURuNemPoiYtrOYG31PDcZFyDh20mKhiUXwT9/Q2tZKh60CMB0MSIx2wR?= =?utf-8?q?4WLHfsK8MvalrZl6FBQrxFEbdixujKSKFsS+5F3aEVYgXE+1G+J/tqbg15bk1rJqc?= =?utf-8?q?tl8FEqvF38OPIXReK3I8T9bSQ+wmO2tLmE79f5agzUf0CG+h3TnRZ4ary1gUl1CFH?= =?utf-8?q?wy0GiRL3i6kKCily8fu7O3p1syVK6QlBnuCf+BEOz0OKLff23S3k9Vx7K14L2ieuo?= =?utf-8?q?6TEviXlwY698qdxRx82V+u4lazeB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rvR1GypproeUunTO5pSiQwfBfytso9U2fU34?= =?utf-8?q?mtFmoxn0i0HoBoDsnYx3h1tD1e0ii0/rC9K6aJyqUw/ADtZeNX0hywdtwF+KSOXh6?= =?utf-8?q?y2M7MU3oWl5/P1RBksYn4t0wsmMoaK/j9iYxYet+g1JSPdibNYZdHzgJ1qY1a3d/W?= =?utf-8?q?0uc0rbXqaDyuNI7frG0O0fWjXZ6wju1yT0hLEMD8AzaxCSGGsEX3iN8ETtW4YFqdX?= =?utf-8?q?3nUm0iEjXz6OpSG57ZD83K4qrV6VGR+vuYlWPRgfKORAIdE/qpK/SQeGUIpDvDkSW?= =?utf-8?q?OM1+ox1uOWVTIGVjYZ0FbGgqs+C6P/C4eg=3D=3D?= X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17049843-790d-4eeb-c288-08dcc734c93a X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 07:41:10.9120 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aYYH6yAtyULiUUFhhxNxIVrx8r7VsWYlrVYCl5LHD8weI2ZyHb8WfEaoqkhcP4mMCoZ1e6H6ZL9PkzScAZFilg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7765 |
Series |
Add AP6276P wireless support
|
expand
|
Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com> --- These add AP6275P wireless support on Khadas Edge2. Enable 32k clock for Wi-Fi module and extend the hardware IDs table in the brcmfmac driver for it to attach. Changes in v12: - Add "brcm,bcm4329-fmac" as fallback compatible for PCI ID based devices. - Link to v11: https://lore.kernel.org/all/20240816020635.1273911-1-jacobe.zang@wesion.com/ Changes in v11: - Retain interrupt check in of.c - Split DTS and submit separately - Link to v10: https://lore.kernel.org/all/20240813082007.2625841-1-jacobe.zang@wesion.com/ Changes in v10: - Use ret instead unused probe_attach_result in sdio.c - Link to v9: https://lore.kernel.org/all/20240810035141.439024-1-jacobe.zang@wesion.com/ Changes in v9: - Add return -ENODEV error pointer from brcmf_sdio_probe as the default for the fail path - Add if statement for brcmf_of_probe in common.c - Retain modifications to of.c other than the return values - Link to v8: https://lore.kernel.org/all/20240805073425.3492078-1-jacobe.zang@wesion.com/ Changes in v8: - Add appropriate errno's for return values that will be send to bus when error occurred. - Link to v7: https://lore.kernel.org/all/20240802025715.2360456-1-jacobe.zang@wesion.com/ Changes in v7: - Change brcmf_of_probe prototypes from void to int, add appropriate errno's for return value, move clock check to the end of brcmf_of_probe - Add "brcm,bcm4329-fmac" compatible for wifi node - Link to v6: https://lore.kernel.org/all/20240731061132.703368-1-jacobe.zang@wesion.com/ Changes in v6: - Move "brcm,bcm4329-fmac" check to the top of brcmf_of_probe in of.c - Add return if clk didn't set in DTS -Link to v5: https://lore.kernel.org/all/20240730033053.4092132-1-jacobe.zang@wesion.com/ Changes in v5: - Add more commit message to the clock in bindings - Use IS_ERR_OR_NULL as a judgment condition of clk - Link to v4: https://lore.kernel.org/all/20240729070102.3770318-1-jacobe.zang@wesion.com/ Changes in v4: - Change clock description in dt-bindings - Move enable clk from pcie.c to of.c - Add compatible for wifi node in DTS - Add random seed flag for firmware download - Link to v3: https://lore.kernel.org/all/20240630073605.2164346-1-jacobe.zang@wesion.com/ Changes in v3: - Dropped redundant parts in dt-bindings. - Change driver patch title prefix as 'wifi: brcmfmac:'. - Change DTS Wi-Fi node clock-name as 'lpo'. - Link to v2: https://lore.kernel.org/all/20240624081906.1399447-1-jacobe.zang@wesion.com/ Changes in v2: - Add SoB tags for original developer. - Add dt-bindings for pci14e4,449d and clocks. - Replace dev_info to brcmf_dbg in pcie.c - Link to v1: https://lore.kernel.org/all/20240620020015.4021696-1-jacobe.zang@wesion.com/ --- Jacobe Zang (5): dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P dt-bindings: net: wireless: brcm4329-fmac: change properties enum structure wifi: brcmfmac: Add optional lpo clock enable support wifi: brcmfmac: add flag for random seed during firmware download .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 27 +++++++---- .../wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 4 +- .../wireless/broadcom/brcm80211/brcmfmac/common.c | 3 +- .../net/wireless/broadcom/brcm80211/brcmfmac/of.c | 29 ++++++++---- .../net/wireless/broadcom/brcm80211/brcmfmac/of.h | 9 ++-- .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 55 ++++++++++++++++++---- .../wireless/broadcom/brcm80211/brcmfmac/sdio.c | 20 +++++--- .../net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 3 ++ .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + 9 files changed, 113 insertions(+), 39 deletions(-) --- base-commit: dabcfd5e116800496eb9bec2ba7c015ca2043aa0 change-id: 20240828-wireless-mainline-bccba9d69efb Best regards,