boards: enable IEEE 802.15.4 devices and add choice

Enable the IEEE 802.15.4 radio node on all boards that listed
'ieee802154' in the supported field.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-07-18 15:28:04 +02:00 committed by Carles Cufí
parent d18cdad2fc
commit 846bed99c3
47 changed files with 235 additions and 12 deletions

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -116,6 +117,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -14,6 +14,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &code_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -211,3 +212,7 @@ zephyr_udc0: &usbd {
compatible = "nordic,nrf-usbd";
status = "okay";
};
&ieee802154 {
status = "okay";
};

View file

@ -17,6 +17,7 @@
zephyr,shell-uart = &sercom0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,ieee802154 = &ieee802154;
};
/* These aliases are provided for compatibility with samples */
@ -150,7 +151,7 @@
cs-gpios = <&portb 31 GPIO_ACTIVE_LOW>;
rf2xx@0 {
ieee802154: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -170,3 +171,7 @@ zephyr_udc0: &usbd {
compatible = "nordic,nrf-usbd";
status = "okay";
};
&ieee802154 {
status = "okay";
};

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -157,6 +158,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -96,6 +97,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -19,6 +19,7 @@
zephyr,shell-uart = &bl654_cdc_acm_uart;
zephyr,bt-c2h-uart = &bl654_cdc_acm_uart;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -136,6 +137,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -301,6 +302,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -34,6 +34,7 @@
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -138,3 +139,15 @@
&rtc {
status = "okay";
};
&radio {
status = "okay";
};
&ieee802154 {
status = "okay";
};
&ieee802154g {
status = "okay";
};

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -131,7 +132,7 @@
pinctrl-0 = <&spi2_default>;
pinctrl-1 = <&spi2_sleep>;
pinctrl-names = "default", "sleep";
dw1000@0 {
ieee802154: dw1000@0 {
compatible = "decawave,dw1000";
spi-max-frequency = <8000000>;
int-gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; /* P0.19 */

View file

@ -18,6 +18,7 @@
zephyr,console = &degu_cdc_acm_uart;
zephyr,shell-uart = &degu_cdc_acm_uart;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -126,6 +127,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -30,6 +30,7 @@
zephyr,flash = &flash0;
zephyr,console = &lpuart0;
zephyr,shell-uart = &lpuart0;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -164,3 +165,7 @@
pinctrl-0 = <&tmp2_default>;
pinctrl-names = "default";
};
&ieee802154 {
status = "okay";
};

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -241,6 +242,10 @@ fem_spi: &spi3 {
fem = <&nrf_radio_fem>;
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -199,6 +200,10 @@ arduino_spi: &spi3 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -23,6 +23,7 @@
zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -133,6 +134,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -157,6 +158,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -23,6 +23,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -101,6 +102,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
/* Include flash partition table.
* Two partition tables are available:
* fstab-stock -compatible with Nordic nRF5 bootloader, default

View file

@ -20,6 +20,7 @@
zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -126,6 +127,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -247,6 +248,10 @@ arduino_spi: &spi3 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -158,6 +159,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
/* Include flash partition table.
* Two partition tables are available:
* fstab-stock -compatible with Nordic nRF5 bootloader, default

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
interface_to_nrf9160: gpio-interface {
@ -165,6 +166,10 @@
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -225,6 +226,10 @@ arduino_spi: &spi3 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -225,6 +226,10 @@ arduino_spi: &spi3 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -162,6 +163,10 @@ arduino_spi: &spi3 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -29,6 +29,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -126,6 +127,10 @@ feather_adc: &adc { /* feather ADC */
status = "okay";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -29,6 +29,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -126,6 +127,10 @@ feather_adc: &adc { /* feather ADC */
status = "okay";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -28,6 +28,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -125,6 +126,10 @@ feather_adc: &adc { /* feather ADC */
status = "okay";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -20,6 +20,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -177,6 +178,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -7,6 +7,10 @@
#include "reel_board-pinctrl.dtsi"
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
leds {
compatible = "gpio-leds";
red_led: led_0 {
@ -155,6 +159,10 @@ arduino_i2c: &i2c0 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
arduino_spi: &spi3 {
status = "okay";
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */

View file

@ -22,6 +22,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -252,6 +253,10 @@ arduino_spi: &spi3 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -23,6 +23,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -260,6 +261,10 @@ arduino_spi: &spi3 {
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -23,6 +23,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -187,6 +188,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
/*
* For more information, see:

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -180,6 +181,10 @@ arduino_i2c: &i2c0 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {

View file

@ -21,6 +21,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -192,6 +193,10 @@ arduino_spi: &spi2 {
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -21,6 +21,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-pipe = &uart0;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -89,3 +90,7 @@ zephyr_udc0: &usbd {
&gpioe {
status = "okay";
};
&ieee802154 {
status = "okay";
};

View file

@ -23,6 +23,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &code_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
@ -137,6 +138,10 @@
};
};
&ieee802154 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -73,6 +73,7 @@
zephyr,flash-controller = &flash_mspi;
zephyr,entropy = &trng0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
};

View file

@ -4,6 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
};
&arduino_spi {
status = "okay";
@ -11,7 +17,7 @@
cs-gpios = <&arduino_header 16
(GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
rf2xx@0 {
ieee802154: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;

View file

@ -4,10 +4,16 @@
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
};
&ext1_spi {
status = "okay";
rf2xx@0 {
ieee802154: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;

View file

@ -4,13 +4,19 @@
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
};
&mikrobus_spi {
status = "okay";
/* CS */
cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
rf2xx@0 {
ieee802154: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;

View file

@ -4,10 +4,16 @@
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
};
&xplained1_spi {
status = "okay";
rf2xx@0 {
ieee802154: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;

View file

@ -4,10 +4,16 @@
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
};
&ext1_spi {
status = "okay";
rf2xx@0 {
ieee802154: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;

View file

@ -11,9 +11,6 @@ if IEEE802154
config SPI
default y
config NET_CONFIG_IEEE802154_DEV_NAME
default "mcr20a"
rsource "boards/*.defconfig"
endif # IEEE802154

View file

@ -4,10 +4,16 @@
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,ieee802154 = &ieee802154;
};
};
&arduino_spi {
status = "okay";
mcr20a@0 {
ieee802154: mcr20a@0 {
compatible = "nxp,mcr20a";
reg = <0x0>;
spi-max-frequency = <4000000>;

View file

@ -40,6 +40,7 @@
zephyr,bt-mon-uart = &uart1;
zephyr,code-partition = &slot0_partition;
zephyr,flash-controller = &sim_flash;
zephyr,ieee802154 = &ieee802154;
};
soc {
@ -84,6 +85,10 @@
size = <DT_SIZE_K(4)>;
};
ieee802154: ieee802154 {
compatible = "zephyr,ieee802154-uart-pipe";
};
};
&uart0 {

View file

@ -275,7 +275,7 @@
pinctrl-0 = <&spi1_modem>;
pinctrl-names = "default";
mcr20a@0 {
ieee802154: mcr20a@0 {
compatible = "nxp,mcr20a";
reg = <0x0>;
spi-max-frequency = <8000000>;