1/*
2 * Copyright (c) 2021, Commonwealth Scientific and Industrial Research
3 * Organisation (CSIRO) ABN 41 687 119 230.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8/ {
9	test {
10		#address-cells = <1>;
11		#size-cells = <1>;
12
13		test_gpio: gpio@deadbeef {
14			compatible = "vnd,gpio";
15			gpio-controller;
16			reg = <0xdeadbeef 0x1000>;
17			#gpio-cells = <0x2>;
18			status = "okay";
19		};
20
21		test_spi: spi@33334444 {
22			#address-cells = <1>;
23			#size-cells = <0>;
24			compatible = "vnd,spi";
25			reg = <0x33334444 0x1000>;
26			status = "okay";
27			clock-frequency = <2000000>;
28
29			/* one entry for every SPI device */
30			cs-gpios = <&test_gpio 0 0>,
31				   <&test_gpio 0 0>,
32				   <&test_gpio 0 0>,
33				   <&test_gpio 0 0>;
34
35			test_spi_cc1200: cc1200@0 {
36				compatible = "ti,cc1200";
37				reg = <0x0>;
38				spi-max-frequency = <0>;
39				int-gpios = <&test_gpio 0 0>;
40				status= "okay";
41			};
42
43			test_spi_cc2520: cc2520@1 {
44				compatible = "ti,cc2520";
45				reg = <0x1>;
46				spi-max-frequency = <0>;
47				vreg-en-gpios = <&test_gpio 0 0>;
48				reset-gpios = <&test_gpio 0 0>;
49				fifo-gpios = <&test_gpio 0 0>;
50				cca-gpios = <&test_gpio 0 0>;
51				sfd-gpios = <&test_gpio 0 0>;
52				fifop-gpios = <&test_gpio 0 0>;
53				status= "okay";
54
55				crypto {
56					compatible = "ti,cc2520-crypto";
57					status= "okay";
58				};
59			};
60
61			test_spi_dw1000: dw1000@2 {
62				compatible = "decawave,dw1000";
63				reg = <0x2>;
64				spi-max-frequency = <0>;
65				int-gpios = <&test_gpio 0 0>;
66				reset-gpios =<&test_gpio 0 0>;
67				status= "okay";
68			};
69
70			test_spi_rf2xx: rf2xx@3 {
71				compatible = "atmel,rf2xx";
72				reg = <0x3>;
73				spi-max-frequency = <0>;
74				irq-gpios = <&test_gpio 0 0>;
75				reset-gpios = <&test_gpio 0 0>;
76				slptr-gpios = <&test_gpio 0 0>;
77				dig2-gpios = <&test_gpio 0 0>;
78				status = "okay";
79			};
80		};
81	};
82};
83