brcmfmac: of: Fetch Apple properties
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:27:19 +0000 (17:27 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:44:57 +0000 (10:44 -0700)
commit7895f47b7493e9b26a154b889f71e072b31b9b4f
treec9ad28120197a80f1f9bf2aa6d391f3ee9c94184
parent485a202c049b40d1382b74a35090061cc335dce8
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