brcmfmac: of: Fetch Apple properties
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:27:19 +0000 (17:27 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 18 Jan 2022 11:22:08 +0000 (20:22 +0900)
commitb7076882cc53bb32461d677a2e46a762fde44991
tree8f65f8af738f32fc15b4c6eb32fd27b88086c093
parent1b3f024a42ffd102e9abcf974c3102afd7966252
brcmfmac: of: Fetch Apple properties

On Apple ARM64 platforms, firmware selection requires two properties
that come from system firmware: the module-instance (aka "island", a
codename representing a given hardware platform) and the antenna-sku.
We map Apple's module codenames to board_types in the form
"apple,<module-instance>".

The mapped board_type is added to the DTS file in that form, while the
antenna-sku is forwarded by our bootloader from the Apple Device Tree
into the FDT. Grab them from the DT so firmware selection can use
them.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c