-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: build_all: ieee802154: Add devices build tests
Add build tests for following devices. - ti,cc1200 - ti,cc2520 - decawave,dw1000 - atmel,rf2xx Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; | ||
}; |