devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Add AP6275P wireless support
@ 2024-06-20  2:00 Jacobe Zang
  2024-06-20  2:00 ` [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Jacobe Zang
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-20  2:00 UTC (permalink / raw)
  To: arend.vanspriel
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	nick, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, Jacobe Zang

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.

Jacobe Zang (3):
  arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2
  net: wireless: brcmfmac: Add optional 32k clock enable support
  net: wireless: brcmfmac: Add support for AP6275P

 .../boot/dts/rockchip/rk3588s-khadas-edge2.dts   | 16 ++++++++++++++++
 .../wireless/broadcom/brcm80211/brcmfmac/pcie.c  | 15 ++++++++++++++-
 .../broadcom/brcm80211/include/brcm_hw_ids.h     |  2 ++
 3 files changed, 32 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2
  2024-06-20  2:00 [PATCH v1 0/3] Add AP6275P wireless support Jacobe Zang
@ 2024-06-20  2:00 ` Jacobe Zang
  2024-06-20  2:00 ` [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support Jacobe Zang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-20  2:00 UTC (permalink / raw)
  To: arend.vanspriel
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	nick, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, Jacobe Zang

Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module.

Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
---
 .../boot/dts/rockchip/rk3588s-khadas-edge2.dts   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
index 3b6286461a746..f674deb6f7da8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
@@ -356,6 +356,22 @@ &pcie2x1l2 {
 	reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
 	vpcie3v3-supply = <&vcc3v3_pcie_wl>;
 	status = "okay";
+
+	pcie@0,0 {
+		reg = <0x400000 0 0 0 0>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		ranges;
+		device_type = "pci";
+		bus-range = <0x40 0x4f>;
+
+		wifi: wifi@0,0 {
+			reg = <0x410000 0 0 0 0>;
+			clocks = <&hym8563>;
+			clock-names = "32k";
+		};
+	};
+
 };
 
 &pwm11 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-20  2:00 [PATCH v1 0/3] Add AP6275P wireless support Jacobe Zang
  2024-06-20  2:00 ` [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Jacobe Zang
@ 2024-06-20  2:00 ` Jacobe Zang
  2024-06-20  6:22   ` Ondřej Jirman
  2024-06-20  6:54   ` Krzysztof Kozlowski
  2024-06-20  2:00 ` [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P Jacobe Zang
  2024-06-20 17:33 ` [PATCH v1 0/3] Add AP6275P wireless support Arend Van Spriel
  3 siblings, 2 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-20  2:00 UTC (permalink / raw)
  To: arend.vanspriel
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	nick, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, Jacobe Zang

WiFi modules often require 32kHz clock to function. Add support to
enable the clock to PCIe driver.

Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
---
 .../net/wireless/broadcom/brcm80211/brcmfmac/pcie.c    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
index 06698a714b523..f241e1757d7e3 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
@@ -3,6 +3,7 @@
  * Copyright (c) 2014 Broadcom Corporation
  */
 
+#include <linux/clk.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/firmware.h>
@@ -2411,6 +2412,7 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	struct brcmf_pciedev *pcie_bus_dev;
 	struct brcmf_core *core;
 	struct brcmf_bus *bus;
+	struct clk *clk;
 
 	if (!id) {
 		id = pci_match_id(brcmf_pcie_devid_table, pdev);
@@ -2422,6 +2424,14 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	brcmf_dbg(PCIE, "Enter %x:%x\n", pdev->vendor, pdev->device);
 
+	clk = devm_clk_get_optional_enabled(&pdev->dev, "32k");
+	if (IS_ERR(clk))
+		return PTR_ERR(clk);
+	if (clk) {
+		dev_info(&pdev->dev, "enabling 32kHz clock\n");
+		clk_set_rate(clk, 32768);
+	}
+
 	ret = -ENOMEM;
 	devinfo = kzalloc(sizeof(*devinfo), GFP_KERNEL);
 	if (devinfo == NULL)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-20  2:00 [PATCH v1 0/3] Add AP6275P wireless support Jacobe Zang
  2024-06-20  2:00 ` [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Jacobe Zang
  2024-06-20  2:00 ` [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support Jacobe Zang
@ 2024-06-20  2:00 ` Jacobe Zang
  2024-06-22  0:22   ` Ondřej Jirman
  2024-06-20 17:33 ` [PATCH v1 0/3] Add AP6275P wireless support Arend Van Spriel
  3 siblings, 1 reply; 19+ messages in thread
From: Jacobe Zang @ 2024-06-20  2:00 UTC (permalink / raw)
  To: arend.vanspriel
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	nick, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, Jacobe Zang

This module features BCM43752A2 chipset. The firmware requires
randomness seeding, so enabled it.

Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c      | 5 ++++-
 .../net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h    | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
index f241e1757d7e3..add317731126c 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
@@ -71,6 +71,7 @@ BRCMF_FW_CLM_DEF(4377B3, "brcmfmac4377b3-pcie");
 BRCMF_FW_CLM_DEF(4378B1, "brcmfmac4378b1-pcie");
 BRCMF_FW_CLM_DEF(4378B3, "brcmfmac4378b3-pcie");
 BRCMF_FW_CLM_DEF(4387C2, "brcmfmac4387c2-pcie");
+BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-pcie");
 
 /* firmware config files */
 MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.txt");
@@ -105,6 +106,7 @@ static const struct brcmf_firmware_mapping brcmf_pcie_fwnames[] = {
 	BRCMF_FW_ENTRY(BRCM_CC_43664_CHIP_ID, 0xFFFFFFF0, 4366C),
 	BRCMF_FW_ENTRY(BRCM_CC_43666_CHIP_ID, 0xFFFFFFF0, 4366C),
 	BRCMF_FW_ENTRY(BRCM_CC_4371_CHIP_ID, 0xFFFFFFFF, 4371),
+	BRCMF_FW_ENTRY(BRCM_CC_43752_CHIP_ID, 0xFFFFFFFF, 43752),
 	BRCMF_FW_ENTRY(BRCM_CC_4377_CHIP_ID, 0xFFFFFFFF, 4377B3), /* revision ID 4 */
 	BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0x0000000F, 4378B1), /* revision ID 3 */
 	BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0xFFFFFFE0, 4378B3), /* revision ID 5 */
@@ -1721,7 +1723,7 @@ static int brcmf_pcie_download_fw_nvram(struct brcmf_pciedev_info *devinfo,
 		memcpy_toio(devinfo->tcm + address, nvram, nvram_len);
 		brcmf_fw_nvram_free(nvram);
 
-		if (devinfo->otp.valid) {
+		if (devinfo->otp.valid || devinfo->ci->chip == BRCM_CC_43752_CHIP_ID) {
 			size_t rand_len = BRCMF_RANDOM_SEED_LENGTH;
 			struct brcmf_random_seed_footer footer = {
 				.length = cpu_to_le32(rand_len),
@@ -2710,6 +2712,7 @@ static const struct pci_device_id brcmf_pcie_devid_table[] = {
 	BRCMF_PCIE_DEVICE(BRCM_PCIE_4366_5G_DEVICE_ID, BCA),
 	BRCMF_PCIE_DEVICE(BRCM_PCIE_4371_DEVICE_ID, WCC),
 	BRCMF_PCIE_DEVICE(BRCM_PCIE_43596_DEVICE_ID, CYW),
+	BRCMF_PCIE_DEVICE(BRCM_PCIE_43752_DEVICE_ID, WCC),
 	BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC),
 	BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC),
 	BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC),
diff --git a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h
index 44684bf1b9acc..c1e22c589d85e 100644
--- a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h
+++ b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h
@@ -52,6 +52,7 @@
 #define BRCM_CC_43664_CHIP_ID		43664
 #define BRCM_CC_43666_CHIP_ID		43666
 #define BRCM_CC_4371_CHIP_ID		0x4371
+#define BRCM_CC_43752_CHIP_ID		43752
 #define BRCM_CC_4377_CHIP_ID		0x4377
 #define BRCM_CC_4378_CHIP_ID		0x4378
 #define BRCM_CC_4387_CHIP_ID		0x4387
@@ -94,6 +95,7 @@
 #define BRCM_PCIE_4366_5G_DEVICE_ID	0x43c5
 #define BRCM_PCIE_4371_DEVICE_ID	0x440d
 #define BRCM_PCIE_43596_DEVICE_ID	0x4415
+#define BRCM_PCIE_43752_DEVICE_ID	0x449d
 #define BRCM_PCIE_4377_DEVICE_ID	0x4488
 #define BRCM_PCIE_4378_DEVICE_ID	0x4425
 #define BRCM_PCIE_4387_DEVICE_ID	0x4433
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-20  2:00 ` [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support Jacobe Zang
@ 2024-06-20  6:22   ` Ondřej Jirman
  2024-06-20  6:54   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 19+ messages in thread
From: Ondřej Jirman @ 2024-06-20  6:22 UTC (permalink / raw)
  To: Jacobe Zang
  Cc: arend.vanspriel, kvalo, duoming, bhelgaas, minipli,
	linux-wireless, brcm80211, brcm80211-dev-list.pdl, robh, krzk+dt,
	conor+dt, heiko, nick, efectn, jagan, dsimic, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel

Hi,

On Thu, Jun 20, 2024 at 10:00:14AM GMT, Jacobe Zang wrote:
> WiFi modules often require 32kHz clock to function. Add support to
> enable the clock to PCIe driver.

There's also this approach https://lore.kernel.org/lkml/20240117160748.37682-1-brgl@bgdev.pl/

> Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
> ---
>  .../net/wireless/broadcom/brcm80211/brcmfmac/pcie.c    | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> index 06698a714b523..f241e1757d7e3 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> @@ -3,6 +3,7 @@
>   * Copyright (c) 2014 Broadcom Corporation
>   */
>  
> +#include <linux/clk.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
>  #include <linux/firmware.h>
> @@ -2411,6 +2412,7 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>  	struct brcmf_pciedev *pcie_bus_dev;
>  	struct brcmf_core *core;
>  	struct brcmf_bus *bus;
> +	struct clk *clk;
>  
>  	if (!id) {
>  		id = pci_match_id(brcmf_pcie_devid_table, pdev);
> @@ -2422,6 +2424,14 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>  
>  	brcmf_dbg(PCIE, "Enter %x:%x\n", pdev->vendor, pdev->device);
>  
> +	clk = devm_clk_get_optional_enabled(&pdev->dev, "32k");

If you do this, you need to update the DT bindings. Current ones don't have 32k
clock.

> +	if (IS_ERR(clk))
> +		return PTR_ERR(clk);
> +	if (clk) {
> +		dev_info(&pdev->dev, "enabling 32kHz clock\n");

The driver has its own debug logging infrastructure (brcmf_dbg).

Kind regards,
	o.

> +		clk_set_rate(clk, 32768);
> +	}
> +
>  	ret = -ENOMEM;
>  	devinfo = kzalloc(sizeof(*devinfo), GFP_KERNEL);
>  	if (devinfo == NULL)
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-20  2:00 ` [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support Jacobe Zang
  2024-06-20  6:22   ` Ondřej Jirman
@ 2024-06-20  6:54   ` Krzysztof Kozlowski
  2024-06-21  1:45     ` Jacobe Zang
  1 sibling, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-20  6:54 UTC (permalink / raw)
  To: Jacobe Zang, arend.vanspriel
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	nick, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel

On 20/06/2024 04:00, Jacobe Zang wrote:
> WiFi modules often require 32kHz clock to function. Add support to
> enable the clock to PCIe driver.
> 
> Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
> ---
>  .../net/wireless/broadcom/brcm80211/brcmfmac/pcie.c    | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> index 06698a714b523..f241e1757d7e3 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> @@ -3,6 +3,7 @@
>   * Copyright (c) 2014 Broadcom Corporation
>   */
>  
> +#include <linux/clk.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
>  #include <linux/firmware.h>
> @@ -2411,6 +2412,7 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>  	struct brcmf_pciedev *pcie_bus_dev;
>  	struct brcmf_core *core;
>  	struct brcmf_bus *bus;
> +	struct clk *clk;
>  
>  	if (!id) {
>  		id = pci_match_id(brcmf_pcie_devid_table, pdev);
> @@ -2422,6 +2424,14 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>  
>  	brcmf_dbg(PCIE, "Enter %x:%x\n", pdev->vendor, pdev->device);
>  
> +	clk = devm_clk_get_optional_enabled(&pdev->dev, "32k");

Where is the binding for this?

> +	if (IS_ERR(clk))
> +		return PTR_ERR(clk);
> +	if (clk) {
> +		dev_info(&pdev->dev, "enabling 32kHz clock\n");

Drop



Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 0/3] Add AP6275P wireless support
  2024-06-20  2:00 [PATCH v1 0/3] Add AP6275P wireless support Jacobe Zang
                   ` (2 preceding siblings ...)
  2024-06-20  2:00 ` [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P Jacobe Zang
@ 2024-06-20 17:33 ` Arend Van Spriel
  2024-06-21  0:18   ` Jacobe Zang
  3 siblings, 1 reply; 19+ messages in thread
From: Arend Van Spriel @ 2024-06-20 17:33 UTC (permalink / raw)
  To: Jacobe Zang
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	nick, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

On June 20, 2024 4:00:31 AM Jacobe Zang <jacobe.zang@wesion.com> wrote:

> 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.

Please get the bindings properly defined. I assume the patch sent earlier 
titled "[PATCH v1] dt-bindings: net: wireless: BCM4329 binding: add 
pci14e4,449d" is related. Focus on getting agreement on that before 
throwing in DTS and driver details.

Regards,
Arend



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 0/3] Add AP6275P wireless support
  2024-06-20 17:33 ` [PATCH v1 0/3] Add AP6275P wireless support Arend Van Spriel
@ 2024-06-21  0:18   ` Jacobe Zang
  0 siblings, 0 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-21  0:18 UTC (permalink / raw)
  To: Arend Van Spriel
  Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com,
	minipli@grsecurity.net, linux-wireless@vger.kernel.org,
	brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com,
	megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, heiko@sntech.de, Nick Xie,
	efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

> Focus on getting agreement on that before
> throwing in DTS and driver details.

Got it. I will focus on pushing the patch of defination first.

---
Best Regards
Jacobe

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-20  6:54   ` Krzysztof Kozlowski
@ 2024-06-21  1:45     ` Jacobe Zang
  2024-06-21  4:59       ` Arend Van Spriel
  2024-06-21  6:03       ` Krzysztof Kozlowski
  0 siblings, 2 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-21  1:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski, arend.vanspriel@broadcom.com
  Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com,
	minipli@grsecurity.net, linux-wireless@vger.kernel.org,
	brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com,
	megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, heiko@sntech.de, Nick Xie,
	efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

Hello,

> Where is the binding for this?
I seperate the binding in this patch " [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 ", the specific code is 
+                       clocks = <&hym8563>;
+                       clock-names = "32k";

Should I combine these two patch to one?

---
Best Regards
Jacobe

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-21  1:45     ` Jacobe Zang
@ 2024-06-21  4:59       ` Arend Van Spriel
  2024-06-21  6:03       ` Krzysztof Kozlowski
  1 sibling, 0 replies; 19+ messages in thread
From: Arend Van Spriel @ 2024-06-21  4:59 UTC (permalink / raw)
  To: Jacobe Zang, Krzysztof Kozlowski
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, megi, robh, krzk+dt, conor+dt, heiko,
	Nick Xie, efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

On June 21, 2024 3:45:51 AM Jacobe Zang <jacobe.zang@wesion.com> wrote:

> Hello,
>
>> Where is the binding for this?
> I seperate the binding in this patch " [PATCH v1 1/3] arm64: dts: rockchip: 
> Add AP6275P wireless support to Khadas Edge 2 ", the specific code is
> +                       clocks = <&hym8563>;
> +                       clock-names = "32k";
>
> Should I combine these two patch to one?

That's not the binding. That is the device tree specification which must 
adhere to the binding specification under Documentation/device 
tree/bindings/net/wireless.

Regards,
Arend



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-21  1:45     ` Jacobe Zang
  2024-06-21  4:59       ` Arend Van Spriel
@ 2024-06-21  6:03       ` Krzysztof Kozlowski
  2024-06-21  7:45         ` Jacobe Zang
  1 sibling, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-21  6:03 UTC (permalink / raw)
  To: Jacobe Zang, arend.vanspriel@broadcom.com
  Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com,
	minipli@grsecurity.net, linux-wireless@vger.kernel.org,
	brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com,
	megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, heiko@sntech.de, Nick Xie,
	efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

On 21/06/2024 03:45, Jacobe Zang wrote:
> Hello,
> 
>> Where is the binding for this?
> I seperate the binding in this patch " [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 ", the specific code is 
> +                       clocks = <&hym8563>;
> +                       clock-names = "32k";
> 
> Should I combine these two patch to one?

That's DTS, not binding. I ask about Devicetree binding.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-21  6:03       ` Krzysztof Kozlowski
@ 2024-06-21  7:45         ` Jacobe Zang
  2024-06-21 10:06           ` Krzysztof Kozlowski
  0 siblings, 1 reply; 19+ messages in thread
From: Jacobe Zang @ 2024-06-21  7:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski, arend.vanspriel@broadcom.com
  Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com,
	minipli@grsecurity.net, linux-wireless@vger.kernel.org,
	brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com,
	megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, heiko@sntech.de, Nick Xie,
	efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

> That's DTS, not binding. I ask about Devicetree binding.

Ok... I have grep in all dts files and can't find wifi node which is under pcie node has clock. So should I add an example in the yaml file? 

Just like:

diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml
index e564f20d8f415..2d9f8de447659 100644
--- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml
+++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml
@@ -153,3 +153,19 @@ examples:
         brcm,ccode-map = "JP-JP-78", "US-Q2-86";
       };
     };
+  - |
+    pcie@0,0 {
+                 reg = <0x400000 0 0 0 0>;
+                 #address-cells = <3>;
+                 #size-cells = <2>;
+                 ranges;
+                 device_type = "pci";
+                 bus-range = <0x40 0x4f>;
+
+                 wifi: wifi@0,0 {
+                         compatible = "pci14e4,449d";
+                         reg = <0x410000 0 0 0 0>;
+                         clocks = <&hym8563>;
+                         clock-names = "32k";
+                 };
+         };

---
Best Regards
Jacobe

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support
  2024-06-21  7:45         ` Jacobe Zang
@ 2024-06-21 10:06           ` Krzysztof Kozlowski
  0 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-21 10:06 UTC (permalink / raw)
  To: Jacobe Zang, arend.vanspriel@broadcom.com
  Cc: kvalo@kernel.org, duoming@zju.edu.cn, bhelgaas@google.com,
	minipli@grsecurity.net, linux-wireless@vger.kernel.org,
	brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com,
	megi@xff.cz, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, heiko@sntech.de, Nick Xie,
	efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

On 21/06/2024 09:45, Jacobe Zang wrote:
>> That's DTS, not binding. I ask about Devicetree binding.
> 
> Ok... I have grep in all dts files and can't find wifi node which is under pcie node has clock. So should I add an example in the yaml file? 

No, that's example, not binding.

Validate your DTS with dtbs_check.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-20  2:00 ` [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P Jacobe Zang
@ 2024-06-22  0:22   ` Ondřej Jirman
  2024-06-22 10:59     ` Arend van Spriel
  2024-06-23  2:21     ` Jacobe Zang
  0 siblings, 2 replies; 19+ messages in thread
From: Ondřej Jirman @ 2024-06-22  0:22 UTC (permalink / raw)
  To: Jacobe Zang
  Cc: arend.vanspriel, kvalo, duoming, bhelgaas, minipli,
	linux-wireless, brcm80211, brcm80211-dev-list.pdl, robh, krzk+dt,
	conor+dt, heiko, nick, efectn, jagan, dsimic, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel

On Thu, Jun 20, 2024 at 10:00:15AM GMT, Jacobe Zang wrote:
> This module features BCM43752A2 chipset. The firmware requires
> randomness seeding, so enabled it.

Any reason to strip info about origin of the patch, my SoB and
present this work as your own?

Original patch here https://megous.com/git/linux/commit/?h=ap6275p-6.10&id=1a99573bc8ed412e60e1969c0b29d53a0e5782e0

regards,
	o.

> Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
> ---
>  drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c      | 5 ++++-
>  .../net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h    | 2 ++
>  2 files changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> index f241e1757d7e3..add317731126c 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> @@ -71,6 +71,7 @@ BRCMF_FW_CLM_DEF(4377B3, "brcmfmac4377b3-pcie");
>  BRCMF_FW_CLM_DEF(4378B1, "brcmfmac4378b1-pcie");
>  BRCMF_FW_CLM_DEF(4378B3, "brcmfmac4378b3-pcie");
>  BRCMF_FW_CLM_DEF(4387C2, "brcmfmac4387c2-pcie");
> +BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-pcie");
>  
>  /* firmware config files */
>  MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.txt");
> @@ -105,6 +106,7 @@ static const struct brcmf_firmware_mapping brcmf_pcie_fwnames[] = {
>  	BRCMF_FW_ENTRY(BRCM_CC_43664_CHIP_ID, 0xFFFFFFF0, 4366C),
>  	BRCMF_FW_ENTRY(BRCM_CC_43666_CHIP_ID, 0xFFFFFFF0, 4366C),
>  	BRCMF_FW_ENTRY(BRCM_CC_4371_CHIP_ID, 0xFFFFFFFF, 4371),
> +	BRCMF_FW_ENTRY(BRCM_CC_43752_CHIP_ID, 0xFFFFFFFF, 43752),
>  	BRCMF_FW_ENTRY(BRCM_CC_4377_CHIP_ID, 0xFFFFFFFF, 4377B3), /* revision ID 4 */
>  	BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0x0000000F, 4378B1), /* revision ID 3 */
>  	BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0xFFFFFFE0, 4378B3), /* revision ID 5 */
> @@ -1721,7 +1723,7 @@ static int brcmf_pcie_download_fw_nvram(struct brcmf_pciedev_info *devinfo,
>  		memcpy_toio(devinfo->tcm + address, nvram, nvram_len);
>  		brcmf_fw_nvram_free(nvram);
>  
> -		if (devinfo->otp.valid) {
> +		if (devinfo->otp.valid || devinfo->ci->chip == BRCM_CC_43752_CHIP_ID) {
>  			size_t rand_len = BRCMF_RANDOM_SEED_LENGTH;
>  			struct brcmf_random_seed_footer footer = {
>  				.length = cpu_to_le32(rand_len),
> @@ -2710,6 +2712,7 @@ static const struct pci_device_id brcmf_pcie_devid_table[] = {
>  	BRCMF_PCIE_DEVICE(BRCM_PCIE_4366_5G_DEVICE_ID, BCA),
>  	BRCMF_PCIE_DEVICE(BRCM_PCIE_4371_DEVICE_ID, WCC),
>  	BRCMF_PCIE_DEVICE(BRCM_PCIE_43596_DEVICE_ID, CYW),
> +	BRCMF_PCIE_DEVICE(BRCM_PCIE_43752_DEVICE_ID, WCC),
>  	BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC),
>  	BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC),
>  	BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC),
> diff --git a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h
> index 44684bf1b9acc..c1e22c589d85e 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h
> +++ b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h
> @@ -52,6 +52,7 @@
>  #define BRCM_CC_43664_CHIP_ID		43664
>  #define BRCM_CC_43666_CHIP_ID		43666
>  #define BRCM_CC_4371_CHIP_ID		0x4371
> +#define BRCM_CC_43752_CHIP_ID		43752
>  #define BRCM_CC_4377_CHIP_ID		0x4377
>  #define BRCM_CC_4378_CHIP_ID		0x4378
>  #define BRCM_CC_4387_CHIP_ID		0x4387
> @@ -94,6 +95,7 @@
>  #define BRCM_PCIE_4366_5G_DEVICE_ID	0x43c5
>  #define BRCM_PCIE_4371_DEVICE_ID	0x440d
>  #define BRCM_PCIE_43596_DEVICE_ID	0x4415
> +#define BRCM_PCIE_43752_DEVICE_ID	0x449d
>  #define BRCM_PCIE_4377_DEVICE_ID	0x4488
>  #define BRCM_PCIE_4378_DEVICE_ID	0x4425
>  #define BRCM_PCIE_4387_DEVICE_ID	0x4433
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-22  0:22   ` Ondřej Jirman
@ 2024-06-22 10:59     ` Arend van Spriel
  2024-06-23  2:21     ` Jacobe Zang
  1 sibling, 0 replies; 19+ messages in thread
From: Arend van Spriel @ 2024-06-22 10:59 UTC (permalink / raw)
  To: Ondřej Jirman, Jacobe Zang, kvalo, duoming, bhelgaas,
	minipli, linux-wireless, brcm80211, brcm80211-dev-list.pdl, robh,
	krzk+dt, conor+dt, heiko, nick, efectn, jagan, dsimic, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]



On 6/22/2024 2:22 AM, Ondřej Jirman wrote:
> On Thu, Jun 20, 2024 at 10:00:15AM GMT, Jacobe Zang wrote:
>> This module features BCM43752A2 chipset. The firmware requires
>> randomness seeding, so enabled it.
> 
> Any reason to strip info about origin of the patch, my SoB and
> present this work as your own?
> 
> Original patch here https://megous.com/git/linux/commit/?h=ap6275p-6.10&id=1a99573bc8ed412e60e1969c0b29d53a0e5782e0
> 
> regards,
> 	o.
> 
>> Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>

I sincerely hope this is just a rookie mistake so please carefully read 
the URL below:

https://www.kernel.org/doc/html/latest/process/submitting-patches.html

Hope it helps.

Regards,
Arend

>> ---
>>   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c      | 5 ++++-
>>   .../net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h    | 2 ++
>>   2 files changed, 6 insertions(+), 1 deletion(-)

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-22  0:22   ` Ondřej Jirman
  2024-06-22 10:59     ` Arend van Spriel
@ 2024-06-23  2:21     ` Jacobe Zang
  2024-06-23  5:34       ` Arend Van Spriel
  2024-06-23  8:01       ` Ondřej Jirman
  1 sibling, 2 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-23  2:21 UTC (permalink / raw)
  To: Ondřej Jirman
  Cc: arend.vanspriel@broadcom.com, kvalo@kernel.org,
	duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net,
	linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
	brcm80211-dev-list.pdl@broadcom.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de,
	Nick Xie, efectn@protonmail.com, jagan@edgeble.ai,
	dsimic@manjaro.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

> Any reason to strip info about origin of the patch, my SoB and
> present this work as your own?

Sincerely express my apology to Ondrej. It's really my mistake. After getting your permission if I could submit the patches. I jsut think if the author and submitter is not the same person is strange so I changed it. Next tiem I will avoid this mistake. Apologize again.


> I sincerely hope this is just a rookie mistake so please carefully read
the URL below:

> https://www.kernel.org/doc/html/latest/process/submitting-patches.html

Thanks for the guidance Arend. After reading the document I realized what a stupid mistake I made.

BTW I have another question, except the SoB of the real author, should I also post the original link in commit message?

---
Best Regards
Jacobe

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-23  2:21     ` Jacobe Zang
@ 2024-06-23  5:34       ` Arend Van Spriel
  2024-06-23  8:01       ` Ondřej Jirman
  1 sibling, 0 replies; 19+ messages in thread
From: Arend Van Spriel @ 2024-06-23  5:34 UTC (permalink / raw)
  To: Jacobe Zang, Ondřej Jirman
  Cc: kvalo, duoming, bhelgaas, minipli, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, robh, krzk+dt, conor+dt, heiko, Nick Xie,
	efectn, jagan, dsimic, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]

On June 23, 2024 4:21:46 AM Jacobe Zang <jacobe.zang@wesion.com> wrote:

>> Any reason to strip info about origin of the patch, my SoB and
>> present this work as your own?
>
> Sincerely express my apology to Ondrej. It's really my mistake. After 
> getting your permission if I could submit the patches. I jsut think if the 
> author and submitter is not the same person is strange so I changed it. 
> Next tiem I will avoid this mistake. Apologize again.
>
>
>> I sincerely hope this is just a rookie mistake so please carefully read
> the URL below:
>
>> https://www.kernel.org/doc/html/latest/process/submitting-patches.html
>
> Thanks for the guidance Arend. After reading the document I realized what a 
> stupid mistake I made.
>
> BTW I have another question, except the SoB of the real author, should I 
> also post the original link in commit message?

Not really necessary. You may if you think that it's useful. Always add 
your SoB and keep SoB tags present untouched.

Regards,
Arend




[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-23  2:21     ` Jacobe Zang
  2024-06-23  5:34       ` Arend Van Spriel
@ 2024-06-23  8:01       ` Ondřej Jirman
  2024-06-23 10:11         ` Jacobe Zang
  1 sibling, 1 reply; 19+ messages in thread
From: Ondřej Jirman @ 2024-06-23  8:01 UTC (permalink / raw)
  To: Jacobe Zang
  Cc: arend.vanspriel@broadcom.com, kvalo@kernel.org,
	duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net,
	linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
	brcm80211-dev-list.pdl@broadcom.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de,
	Nick Xie, efectn@protonmail.com, jagan@edgeble.ai,
	dsimic@manjaro.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

Hi Jacobe,

On Sun, Jun 23, 2024 at 02:21:39AM GMT, Jacobe Zang wrote:
> > Any reason to strip info about origin of the patch, my SoB and
> > present this work as your own?
> 
> Sincerely express my apology to Ondrej. It's really my mistake. After getting
> your permission if I could submit the patches. I jsut think if the author and
> submitter is not the same person is strange so I changed it. Next tiem I will
> avoid this mistake. Apologize again.
> 
> 
> > I sincerely hope this is just a rookie mistake so please carefully read
> the URL below:
> 
> > https://www.kernel.org/doc/html/latest/process/submitting-patches.html
> 
> Thanks for the guidance Arend. After reading the document I realized what a stupid mistake I made.
> 
> BTW I have another question, except the SoB of the real author, should I also post the original link in commit message?

I suggest keeping at least this part:

> Partially copied from https://lore.kernel.org/all/c7b331edd65b66521a6605177d654e55051568a3.camel@toradex.com/
> 
> (No Signed-off-by provided in the email. The code looks like some
> data copied probably from a vendor driver and adapted for the upstream
> one.)

I'm not the complete author of the patch either. I just figured out why
just adding device/chip IDs was not enough compared to what Marcel Ziswiler
tried and expanded the patch from his email, to make it work.

People using baords with AP6275P (eg. I did my debugging on QuartzPro64) will
also be interested in how to get the firmware for AP6275P, and there are some
hints for that in the above link, too. (FW filename that is in the patch for the
driver doesn't match FW name as distributed by eg. SparkLAN, which makes it
harder to find it just based on FW name from the code)

Although it would be nice to have the firmware available in linux-firmware.

Kind regards,
	o.

> ---
> Best Regards
> Jacobe

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P
  2024-06-23  8:01       ` Ondřej Jirman
@ 2024-06-23 10:11         ` Jacobe Zang
  0 siblings, 0 replies; 19+ messages in thread
From: Jacobe Zang @ 2024-06-23 10:11 UTC (permalink / raw)
  To: Ondřej Jirman
  Cc: arend.vanspriel@broadcom.com, kvalo@kernel.org,
	duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net,
	linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
	brcm80211-dev-list.pdl@broadcom.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de,
	Nick Xie, efectn@protonmail.com, jagan@edgeble.ai,
	dsimic@manjaro.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org

> Although it would be nice to have the firmware available in linux-firmware.

I think this is a better idea. If we get details from what linux-firmware installed we can found that it has already include the brcm firmware. Only different models from AP6275P. 


---
Best Regards
Jacobe

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2024-06-23 10:11 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20  2:00 [PATCH v1 0/3] Add AP6275P wireless support Jacobe Zang
2024-06-20  2:00 ` [PATCH v1 1/3] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Jacobe Zang
2024-06-20  2:00 ` [PATCH v1 2/3] net: wireless: brcmfmac: Add optional 32k clock enable support Jacobe Zang
2024-06-20  6:22   ` Ondřej Jirman
2024-06-20  6:54   ` Krzysztof Kozlowski
2024-06-21  1:45     ` Jacobe Zang
2024-06-21  4:59       ` Arend Van Spriel
2024-06-21  6:03       ` Krzysztof Kozlowski
2024-06-21  7:45         ` Jacobe Zang
2024-06-21 10:06           ` Krzysztof Kozlowski
2024-06-20  2:00 ` [PATCH v1 3/3] net: wireless: brcmfmac: Add support for AP6275P Jacobe Zang
2024-06-22  0:22   ` Ondřej Jirman
2024-06-22 10:59     ` Arend van Spriel
2024-06-23  2:21     ` Jacobe Zang
2024-06-23  5:34       ` Arend Van Spriel
2024-06-23  8:01       ` Ondřej Jirman
2024-06-23 10:11         ` Jacobe Zang
2024-06-20 17:33 ` [PATCH v1 0/3] Add AP6275P wireless support Arend Van Spriel
2024-06-21  0:18   ` Jacobe Zang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).