diff --git a/tests/drivers/build_all/charger/testcase.yaml b/tests/drivers/build_all/charger/testcase.yaml index 0a29ccc7b39..134fa0254c9 100644 --- a/tests/drivers/build_all/charger/testcase.yaml +++ b/tests/drivers/build_all/charger/testcase.yaml @@ -8,5 +8,4 @@ tests: - charger build_only: true platform_allow: - - native_posix - native_sim diff --git a/tests/drivers/build_all/dac/testcase.yaml b/tests/drivers/build_all/dac/testcase.yaml index 4192c6ca085..3898ce7b33b 100644 --- a/tests/drivers/build_all/dac/testcase.yaml +++ b/tests/drivers/build_all/dac/testcase.yaml @@ -7,7 +7,6 @@ tests: drivers.dac.build: # will cover I2C, SPI based drivers platform_allow: - - native_posix - native_sim extra_args: "CONFIG_GPIO=y" drivers.dac.mcux.build: diff --git a/tests/drivers/build_all/fpga/testcase.yaml b/tests/drivers/build_all/fpga/testcase.yaml index ad0d3e8123e..13c76e59cf4 100644 --- a/tests/drivers/build_all/fpga/testcase.yaml +++ b/tests/drivers/build_all/fpga/testcase.yaml @@ -3,7 +3,6 @@ common: - drivers - sensors platform_allow: - - native_posix - native_sim build_only: true tests: diff --git a/tests/drivers/build_all/ieee802154/boards/native_posix.overlay b/tests/drivers/build_all/ieee802154/boards/native_posix.overlay deleted file mode 100644 index 55ee3fd1d06..00000000000 --- a/tests/drivers/build_all/ieee802154/boards/native_posix.overlay +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2021, Commonwealth Scientific and Industrial Research - * Organisation (CSIRO) ABN 41 687 119 230. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/ { - test { - #address-cells = <1>; - #size-cells = <1>; - - test_gpio: gpio@deadbeef { - compatible = "vnd,gpio"; - gpio-controller; - reg = <0xdeadbeef 0x1000>; - #gpio-cells = <0x2>; - status = "okay"; - }; - - test_spi: spi@33334444 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "vnd,spi"; - reg = <0x33334444 0x1000>; - status = "okay"; - clock-frequency = <2000000>; - - /* one entry for every SPI device */ - cs-gpios = <&test_gpio 0 0>, - <&test_gpio 0 0>, - <&test_gpio 0 0>, - <&test_gpio 0 0>; - - test_spi_cc1200: cc1200@0 { - compatible = "ti,cc1200"; - reg = <0x0>; - spi-max-frequency = <0>; - int-gpios = <&test_gpio 0 0>; - status= "okay"; - }; - - test_spi_cc2520: cc2520@1 { - compatible = "ti,cc2520"; - reg = <0x1>; - spi-max-frequency = <0>; - vreg-en-gpios = <&test_gpio 0 0>; - reset-gpios = <&test_gpio 0 0>; - fifo-gpios = <&test_gpio 0 0>; - cca-gpios = <&test_gpio 0 0>; - sfd-gpios = <&test_gpio 0 0>; - fifop-gpios = <&test_gpio 0 0>; - status= "okay"; - - crypto { - compatible = "ti,cc2520-crypto"; - status= "okay"; - }; - }; - - test_spi_dw1000: dw1000@2 { - compatible = "decawave,dw1000"; - reg = <0x2>; - spi-max-frequency = <0>; - int-gpios = <&test_gpio 0 0>; - reset-gpios =<&test_gpio 0 0>; - status= "okay"; - }; - - test_spi_rf2xx: rf2xx@3 { - compatible = "atmel,rf2xx"; - reg = <0x3>; - spi-max-frequency = <0>; - irq-gpios = <&test_gpio 0 0>; - reset-gpios = <&test_gpio 0 0>; - slptr-gpios = <&test_gpio 0 0>; - dig2-gpios = <&test_gpio 0 0>; - status = "okay"; - }; - }; - }; -}; diff --git a/tests/drivers/build_all/ieee802154/boards/native_sim.overlay b/tests/drivers/build_all/ieee802154/boards/native_sim.overlay index 2a3dfc50480..55ee3fd1d06 100644 --- a/tests/drivers/build_all/ieee802154/boards/native_sim.overlay +++ b/tests/drivers/build_all/ieee802154/boards/native_sim.overlay @@ -1,6 +1,82 @@ /* - * Copyright (c) 2024 TOKITA Hiroshi + * Copyright (c) 2021, Commonwealth Scientific and Industrial Research + * Organisation (CSIRO) ABN 41 687 119 230. + * * SPDX-License-Identifier: Apache-2.0 */ -#include "native_posix.overlay" +/ { + test { + #address-cells = <1>; + #size-cells = <1>; + + test_gpio: gpio@deadbeef { + compatible = "vnd,gpio"; + gpio-controller; + reg = <0xdeadbeef 0x1000>; + #gpio-cells = <0x2>; + status = "okay"; + }; + + test_spi: spi@33334444 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "vnd,spi"; + reg = <0x33334444 0x1000>; + status = "okay"; + clock-frequency = <2000000>; + + /* one entry for every SPI device */ + cs-gpios = <&test_gpio 0 0>, + <&test_gpio 0 0>, + <&test_gpio 0 0>, + <&test_gpio 0 0>; + + test_spi_cc1200: cc1200@0 { + compatible = "ti,cc1200"; + reg = <0x0>; + spi-max-frequency = <0>; + int-gpios = <&test_gpio 0 0>; + status= "okay"; + }; + + test_spi_cc2520: cc2520@1 { + compatible = "ti,cc2520"; + reg = <0x1>; + spi-max-frequency = <0>; + vreg-en-gpios = <&test_gpio 0 0>; + reset-gpios = <&test_gpio 0 0>; + fifo-gpios = <&test_gpio 0 0>; + cca-gpios = <&test_gpio 0 0>; + sfd-gpios = <&test_gpio 0 0>; + fifop-gpios = <&test_gpio 0 0>; + status= "okay"; + + crypto { + compatible = "ti,cc2520-crypto"; + status= "okay"; + }; + }; + + test_spi_dw1000: dw1000@2 { + compatible = "decawave,dw1000"; + reg = <0x2>; + spi-max-frequency = <0>; + int-gpios = <&test_gpio 0 0>; + reset-gpios =<&test_gpio 0 0>; + status= "okay"; + }; + + test_spi_rf2xx: rf2xx@3 { + compatible = "atmel,rf2xx"; + reg = <0x3>; + spi-max-frequency = <0>; + irq-gpios = <&test_gpio 0 0>; + reset-gpios = <&test_gpio 0 0>; + slptr-gpios = <&test_gpio 0 0>; + dig2-gpios = <&test_gpio 0 0>; + status = "okay"; + }; + }; + }; +}; diff --git a/tests/drivers/build_all/ieee802154/boards/native_sim_native_64.overlay b/tests/drivers/build_all/ieee802154/boards/native_sim_native_64.overlay index 2a3dfc50480..d9cd77b9676 100644 --- a/tests/drivers/build_all/ieee802154/boards/native_sim_native_64.overlay +++ b/tests/drivers/build_all/ieee802154/boards/native_sim_native_64.overlay @@ -3,4 +3,4 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "native_posix.overlay" +#include "native_sim.overlay" diff --git a/tests/drivers/build_all/ieee802154/testcase.yaml b/tests/drivers/build_all/ieee802154/testcase.yaml index ffdd7000b1a..1faaf9aab74 100644 --- a/tests/drivers/build_all/ieee802154/testcase.yaml +++ b/tests/drivers/build_all/ieee802154/testcase.yaml @@ -6,7 +6,6 @@ common: tests: drivers.ieee802154.build.external: platform_allow: - - native_posix - native_sim - native_sim/native/64 drivers.ieee802154.build.cc13xx_cc26xx: diff --git a/tests/drivers/build_all/mfd/testcase.yaml b/tests/drivers/build_all/mfd/testcase.yaml index 126fdb40e55..1b41cca6cd0 100644 --- a/tests/drivers/build_all/mfd/testcase.yaml +++ b/tests/drivers/build_all/mfd/testcase.yaml @@ -6,5 +6,4 @@ common: tests: drivers.mfd.build: platform_allow: - - native_posix - native_sim diff --git a/tests/drivers/build_all/regulator/testcase.yaml b/tests/drivers/build_all/regulator/testcase.yaml index 58fc0851981..30d494aca23 100644 --- a/tests/drivers/build_all/regulator/testcase.yaml +++ b/tests/drivers/build_all/regulator/testcase.yaml @@ -8,5 +8,4 @@ tests: - regulator build_only: true platform_allow: - - native_posix - native_sim diff --git a/tests/drivers/build_all/rtc/testcase.yaml b/tests/drivers/build_all/rtc/testcase.yaml index 2f1fec28f7f..ba357ce35b3 100644 --- a/tests/drivers/build_all/rtc/testcase.yaml +++ b/tests/drivers/build_all/rtc/testcase.yaml @@ -16,7 +16,5 @@ tests: extra_configs: - CONFIG_I2C=y platform_allow: - - native_posix - - native_posix/native/64 - native_sim - native_sim/native/64 diff --git a/tests/drivers/build_all/sensor/testcase.yaml b/tests/drivers/build_all/sensor/testcase.yaml index 7fc17df202b..27aa95f919a 100644 --- a/tests/drivers/build_all/sensor/testcase.yaml +++ b/tests/drivers/build_all/sensor/testcase.yaml @@ -3,7 +3,6 @@ common: - drivers - sensors platform_allow: - - native_posix - native_sim integration_platforms: - native_sim diff --git a/tests/drivers/build_all/stepper/testcase.yaml b/tests/drivers/build_all/stepper/testcase.yaml index 4c20fcc5c5b..c6be5f3bac8 100644 --- a/tests/drivers/build_all/stepper/testcase.yaml +++ b/tests/drivers/build_all/stepper/testcase.yaml @@ -8,5 +8,4 @@ tests: - stepper build_only: true platform_allow: - - native_posix - native_sim diff --git a/tests/drivers/build_all/video/testcase.yaml b/tests/drivers/build_all/video/testcase.yaml index 49acda27c13..88160e8721b 100644 --- a/tests/drivers/build_all/video/testcase.yaml +++ b/tests/drivers/build_all/video/testcase.yaml @@ -6,7 +6,6 @@ common: tests: drivers.video.build: platform_allow: - - native_posix - native_sim min_ram: 32 depends_on: