This is a couple of patches adding optional brcm,ccode-map bindings for brcmfmac driver to parse country code map from DT.
Changes for v2: - Rebase bindings patch on top of yaml conversion patch [1]. - Improve commit log with Arend's explanation on why this data could be put in device tree. - Use pattern to define mapping string as suggested by Rob. - Use brcmf_err() instead of dev_warn() and print error code. - Use sscanf() to validate mapping string. - Use brcmf_dbg(INFO, ...) to print country code entry. - Separate BRCMF_BUSTYPE_SDIO bus_type check from general DT validation. [1] https://patchwork.kernel.org/project/linux-wireless/patch/20210315105911.138553-1-linus.wall...@linaro.org/ Shawn Guo (2): dt-bindings: bcm4329-fmac: add optional brcm,ccode-map brcmfmac: support parse country code map from DT .../net/wireless/brcm,bcm4329-fmac.yaml | 8 +++ .../wireless/broadcom/brcm80211/brcmfmac/of.c | 57 ++++++++++++++++++- 2 files changed, 63 insertions(+), 2 deletions(-) -- 2.17.1