Skip to contentSkip to conversation

Documentation: dt-binding: net: wireless: add bcm43430-fmac

PATCH In review Antony Antony 4 participants 11 messages Aug 29, 2017 – Sep 4, 2017 8 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: dt-binding: net: wireless: add bcm43430-fmac

Add device tree binding documentation for Broadcom BCM43430 AMPAK AP6212A has this chip.

e.g
compatible = "brcm,bcm43430-fmac";

NanoPi NEO Plus2 has an AMPAK AP6212A WiFi module with BCM43430 rev=1 inside. brcmf_chip_recognition found AXI chip: BCM43430, rev=1 brcmf_ops_sdio_probe sdio vendor ID: 0x02d0 brcmf_ops_sdio_probe sdio device ID: 0xa9a6

---
 Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

NanoPi Neo Plus2 Kernel DT propsed patch
https://patchwork.kernel.org/patch/9925387/

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +3 -1
index 590f622..9107e1a 100644
@@ -6,7 +6,9 @@ connects the device to the system.
 
 Required properties:
 
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+	* "brcm,bcm4329-fmac"
+	* "brcm,bcm43430-fmac"
 
 Optional properties:
  - brcm,drive-strength : drive strength used for SDIO pins on device in mA
Signature · 6 lines
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170829214309.34466-1-antony-AVhj06Q78b5AfugRpC6u6w@public.gmane.org

#2 lore raw

Hi,

Quoted 24 lines · Antony Antony

Add device tree binding documentation for Broadcom BCM43430 AMPAK AP6212A has this chip.

e.g
compatible = "brcm,bcm43430-fmac";

NanoPi NEO Plus2 has an AMPAK AP6212A WiFi module with BCM43430 rev=1 inside. brcmf_chip_recognition found AXI chip: BCM43430, rev=1 brcmf_ops_sdio_probe sdio vendor ID: 0x02d0 brcmf_ops_sdio_probe sdio device ID: 0xa9a6

---
 Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

NanoPi Neo Plus2 Kernel DT propsed patch
https://patchwork.kernel.org/patch/9925387/

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +0 -0
index 590f622..9107e1a 100644

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt connects the device to the system. · line 11

Quoted 7 lines
Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +3 -1
@@ -6,7 +6,9 @@ connects the device to the system.
 
 Required properties:
 
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

ChenYu

Quoted 6 lines
Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +0 -1
 Optional properties:
  - brcm,drive-strength : drive strength used for SDIO pins on device in mA
--

2.9.3

A message that is not in the archive (sent off-list or not yet received): CAGb2v66=JvS9wHkUNBwd+vHwx4NAQsaWyhx1OyEokSZizo+7-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

hi,

Quoted 8 lines · Chen-Yu Tsai
Quoted 6 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
 Required properties:
 
Quoted 8 lines

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt connects the device to the system. · line 11

Quoted 4 lines
Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate firmware file.

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where it goes.

regards,
-antony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170830120218.ms3xuhp4qsibistv-sIi4olfLYEDaK4aX9S0K76zUEOm+Xw19@public.gmane.org

#6 lore raw
Quoted 32 lines · Antony Antony

hi,

Quoted 8 lines · Chen-Yu Tsai
Quoted 6 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
 Required properties:
 
Quoted 8 lines

Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt connects the device to the system. · line 11

Quoted 4 lines
Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate firmware file.

Quoted 7 lines

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where it goes.

Adding the compatible or instead of? The former would be better. You should still have the actual chip in case you do have some difference to handle.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 36 lines · Rob Herring
Quoted 35 lines · Antony Antony

hi,

Quoted 8 lines · Chen-Yu Tsai
Quoted 6 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

(quoted diff) +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
  Required properties:
 
Quoted 8 lines

Review connects the device to the system. · line 11

Quoted 4 lines
(quoted diff) +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate firmware file.

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

Quoted 8 lines
Quoted 4 lines

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where it goes.

Adding the compatible or instead of? The former would be better. You should still have the actual chip in case you do have some difference to handle.

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

Regards,
Arend

A message that is not in the archive (sent off-list or not yet received): bb53a79e-8045-3c9b-8c98-8d4815c3b57a-dY08KVG/lbpWk0Htik3J/[email protected]

#9 lore raw
Quoted 46 lines · Arend van Spriel
Quoted 36 lines · Rob Herring
Quoted 35 lines · Antony Antony

hi,

Quoted 8 lines · Chen-Yu Tsai
Quoted 6 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

(quoted diff) +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
  Required properties:
 
Quoted 8 lines

Review connects the device to the system. · line 11

Quoted 4 lines
(quoted diff) +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate firmware file.

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

Quoted 8 lines
Quoted 4 lines

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where it goes.

Adding the compatible or instead of? The former would be better. You should still have the actual chip in case you do have some difference to handle.

Quoted 7 lines

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

In my expereince this how it seems to work.

I jsut discovered s/brcm,bcm4329-fmac/brcm/ can load the broadcom driver.

brcmf: wifi@1 {
	reg = <1>;
	compatible = "brcm";
}; 

This looks better to me. Maxime, Would this work?

regards,
-antony

A message that is not in the archive (sent off-list or not yet received): 20170901204030.2zpsoa4i53tdegs3-sIi4olfLYEDaK4aX9S0K76zUEOm+Xw19@public.gmane.org

#11 lore raw
Quoted 57 lines · Antony Antony
Quoted 46 lines · Arend van Spriel
Quoted 36 lines · Rob Herring
Quoted 35 lines · Antony Antony

hi,

Quoted 8 lines · Chen-Yu Tsai
Quoted 6 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

(quoted diff) +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
   Required properties:
 
Quoted 8 lines

Review connects the device to the system. · line 11

Quoted 4 lines
(quoted diff) +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate firmware file.

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

Quoted 8 lines
Quoted 4 lines

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where it goes.

Adding the compatible or instead of? The former would be better. You should still have the actual chip in case you do have some difference to handle.

Quoted 7 lines

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

In my expereince this how it seems to work.

Quoted 8 lines

I jsut discovered s/brcm,bcm4329-fmac/brcm/ can load the broadcom driver.

brcmf: wifi@1 {
	reg = <1>;
	compatible = "brcm";
};

This looks better to me. Maxime, Would this work?

I have no idea what you are saying here. To what exactly do you apply that substitute. In brcmfmac I have:

        if (!np || bus_type != BRCMF_BUSTYPE_SDIO ||
            !of_device_is_compatible(np, "brcm,bcm4329-fmac"))
                return;

In my perception using "brcm" goes against DT compatible naming convention.

Regards,
Arend

A message that is not in the archive (sent off-list or not yet received): 8af0e096-f4b1-213f-d543-fa711e1961ad-dY08KVG/lbpWk0Htik3J/[email protected]

#13 lore raw

Hi Arend,

Quoted 17 lines · Arend van Spriel
Quoted 17 lines
Quoted 7 lines

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

In my expereince this how it seems to work.

I jsut discovered s/brcm,bcm4329-fmac/brcm/ can load the broadcom driver.

brcmf: wifi@1 {
	reg = <1>;
	compatible = "brcm";
};
Quoted 4 lines
Quoted 1 line

This looks better to me. Maxime, Would this work?

I have no idea what you are saying here. To what exactly do you apply that substitute. In brcmfmac I have:

Thanks for pointing me to the relevent code. I was asking about DT support I submitted.

Quoted 6 lines
        if (!np || bus_type != BRCMF_BUSTYPE_SDIO ||
            !of_device_is_compatible(np, "brcm,bcm4329-fmac"))
                return;

In my perception using "brcm" goes against DT compatible naming convention.

It seems the driver has a special place holder, bcm4329-fmac. I am still wondering what is acceptable in the DT.

compatible = ""brcm,bcm4329-fmac";
or
compatible = "brcm";

The last one does not generate any warnings.
Here it the DT I am proposing. https://patchwork.kernel.org/patch/9937263/

regards,
-antony

A message that is not in the archive (sent off-list or not yet received): 20170904144230.yuadvqiruj73q5t3-sIi4olfLYEDaK4aX9S0K76zUEOm+Xw19@public.gmane.org

#15 lore raw
Quoted 35 lines · Antony Antony

Hi Arend,

Quoted 17 lines · Arend van Spriel
Quoted 17 lines
Quoted 7 lines

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

In my expereince this how it seems to work.

I jsut discovered s/brcm,bcm4329-fmac/brcm/ can load the broadcom driver.

brcmf: wifi@1 {
	reg = <1>;
	compatible = "brcm";
};
Quoted 4 lines
Quoted 1 line

This looks better to me. Maxime, Would this work?

I have no idea what you are saying here. To what exactly do you apply that substitute. In brcmfmac I have:

Thanks for pointing me to the relevent code. I was asking about DT support I submitted.

Quoted 6 lines
         if (!np || bus_type != BRCMF_BUSTYPE_SDIO ||
             !of_device_is_compatible(np, "brcm,bcm4329-fmac"))
                 return;

In my perception using "brcm" goes against DT compatible naming convention.

Quoted 8 lines

It seems the driver has a special place holder, bcm4329-fmac. I am still wondering what is acceptable in the DT.

compatible = ""brcm,bcm4329-fmac";
or
compatible = "brcm";

The last one does not generate any warnings.

Ok. So what warning do you get when using "brcm,bcm4329-fmac"? Or did you really try ""brcm,bcm4329-fmac" as mentioned above?

Regards,
Arend

#16 lore raw
In reply to a message not in the archive
Quoted 59 lines · Arend van Spriel
Quoted 48 lines · Rob Herring
Quoted 46 lines · Antony Antony

hi,

Quoted 12 lines · Chen-Yu Tsai
Quoted 7 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt
+++
b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

(quoted diff) +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
  Required properties:
 
Quoted 9 lines

Review connects the device to the system. · line 11

Quoted 4 lines
(quoted diff) +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate
firmware file.

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

Quoted 8 lines
Quoted 3 lines

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where
it goes.

Adding the compatible or instead of? The former would be better. You should still have the actual chip in case you do have some difference to handle.

Quoted 7 lines

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

So if a chip has different power on/off sequencing you can discover that?

I realize that most often you don't need it, but a more specific compatible is there in case you do and so it doesn't require a DTB update to handle some difference. But you can keep using one compatible because I can't really enforce any of that.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAL_JsqLsnXYfyix3KLkEYguWAe-Wqcb9Nd22jM8HM2dnw4Frog-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#18 lore raw
Quoted 69 lines · Rob Herring
Quoted 59 lines · Arend van Spriel
Quoted 48 lines · Rob Herring
Quoted 46 lines · Antony Antony

hi,

Quoted 12 lines · Chen-Yu Tsai
Quoted 7 lines · Antony Antony

a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt
+++
b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt

(quoted diff) +0 -0
@@ -6,7 +6,9 @@ connects the device to the system.
 
   Required properties:
 
Quoted 9 lines

Review connects the device to the system. · line 11

Quoted 4 lines
(quoted diff) +3 -1
- - compatible : Should be "brcm,bcm4329-fmac".
+ - compatible : should be one of the following:
+       * "brcm,bcm4329-fmac"
+       * "brcm,bcm43430-fmac"

You updated the bindings, but not the driver. So it's not actually going to work. More specifically, OOB interrupts won't work.

understood, ignore this patch for now. Thanks Chen-Yu.

Quoted 5 lines

IIRC, The compatible string for this particular case, as it was originally proposed, only serves as a placeholder for the driver to check against. None of the instances in sunxi device trees match the actual chip model. Actual model matching is done through SDIO, as you've already seen.

yes it seems SDIO driveer code is smarter, once it initialize brcm,bcm4329-fmac it ignore the DT info and read the chip details to locate
firmware file.

I also noticed other boards using bcm4329-fmac in similar situations.
https://patchwork.kernel.org/patch/9739181/

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts?h=v4.13-rc7

Quoted 8 lines
Quoted 3 lines

I will resend "NanoPi NEO Plus2" dts with "brcm,bcm4329-fmac" and see where
it goes.

Adding the compatible or instead of? The former would be better. You should still have the actual chip in case you do have some difference to handle.

Quoted 7 lines

Hi Rob,

Actually the Broadcom wifi chips themselves are discoverable. So once the driver has access to the register space of the device it can determine the actual chip, its revision, and exactly what cores (and their revision) are present in the chip. Hence there is a single compatible string as there is no need to convey the same information through device tree data.

Quoted 6 lines

So if a chip has different power on/off sequencing you can discover that?

I realize that most often you don't need it, but a more specific compatible is there in case you do and so it doesn't require a DTB update to handle some difference. But you can keep using one compatible because I can't really enforce any of that.

For SDIO chips the power sequencing is defined by power-seq-* in bindings/mmc and handled by the MMC stack itself. So the wifi driver is not dealing with that.

Regards,
Arend