1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 * Copyright (c) 2022 Intel Corporation
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 */
8
9/ {
10	test {
11		#address-cells = <0x1>;
12		#size-cells = <0x1>;
13
14		test_gpio: gpio@deadbeef {
15			compatible = "vnd,gpio";
16			gpio-controller;
17			reg = <0xdeadbeef 0x1000>;
18			#gpio-cells = <0x2>;
19			status = "okay";
20		};
21
22		test_spi_cs: spi@33334444 {
23			#address-cells = <1>;
24			#size-cells = <0>;
25			compatible = "vnd,spi";
26			reg = <0x33334444 0x1000>;
27			status = "okay";
28			clock-frequency = <2000000>;
29
30			cs-gpios = <&test_gpio 0x10 0x20>;
31
32			test_spi_dev_cs: test-spi-dev@0 {
33				compatible = "vnd,spi-device";
34				reg = <0>;
35				spi-max-frequency = <2000000>;
36			};
37		};
38
39		test_spi_no_cs: spi@55556666 {
40			#address-cells = <1>;
41			#size-cells = <0>;
42			compatible = "vnd,spi";
43			reg = <0x55556666 0x1000>;
44			status = "okay";
45			clock-frequency = <2000000>;
46
47			test_spi_dev_no_cs: test-spi-dev@0 {
48				compatible = "vnd,spi-device";
49				reg = <0>;
50				spi-max-frequency = <2000000>;
51			};
52		};
53	};
54};
55