Skip to content

Commit

Permalink
tests: drivers: build_all: ieee802154: Add devices build tests
Browse files Browse the repository at this point in the history
Add build tests for following devices.

- ti,cc1200
- ti,cc2520
- decawave,dw1000
- atmel,rf2xx

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi committed Sep 17, 2024
1 parent 9dd071d commit fef004e
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions tests/drivers/build_all/ieee802154/app.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Copyright (c) 2024 TOKITA Hiroshi
* 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";
};
};
};
};

0 comments on commit fef004e

Please sign in to comment.