The way we currently handle direction finding extension (DFE) support on Nordic nRF5 controllers relies on required devicetree properties related to DFE in the "nordic,nrf-radio" node. That doesn't make sense on radios without DFE support, though. Any .dtsi for an SoC without DFE support which has such a node would require extraneous DFE related properties like dfe-antenna-num. Instead of making the properties required, mark them optional. We indicate the presence of DFE support via a new 'dfe-supported' boolean property which the SoC .dtsi files can set (or not) depending on support. This gives us the opportunity to do some cleanup in the Kconfig, removing CONFIG_HAS_HW_NRF_RADIO_BLE_DF since we know from the devicetree whether DFE support is available. Handle that change appropriately in radio_df.c. This gives us an opportunity to improve readability in the devicetree-related macro magic in that file. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| nordic,nrf21540-fem-spi.yaml | ||
| nordic,nrf21540-fem.yaml | ||
| nordic,nrf-radio.yaml | ||