1/*
2 * Copyright (c) 2020, Linaro Ltd.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Application overlay for testing driver builds
7 *
8 * Names in this file should be chosen in a way that won't conflict
9 * with real-world devicetree nodes, to allow these tests to run on
10 * (and be extended to test) real hardware.
11 */
12
13/ {
14	test {
15		#address-cells = <1>;
16		#size-cells = <1>;
17
18		test_gpio: gpio@deadbeef {
19			compatible = "vnd,gpio";
20			gpio-controller;
21			reg = <0xdeadbeef 0x1000>;
22			#gpio-cells = <0x2>;
23			status = "okay";
24		};
25
26		test_spi: spi@33334444 {
27			#address-cells = <1>;
28			#size-cells = <0>;
29			compatible = "vnd,spi";
30			reg = <0x33334444 0x1000>;
31			status = "okay";
32			clock-frequency = <2000000>;
33
34			/* one entry for every devices at spi.dtsi */
35			cs-gpios = <&test_gpio 0 0>,    /* 0x00 */
36			<&test_gpio 0 0>;
37
38			#include "spi.dtsi"
39		};
40	};
41};
42
43/* Put device specific modifications to properties or disabling of devices
44 * here to keep the bus specific dtsi files (i2c.dtsi, spi.dtsi, etc..)
45 * pristine
46 */
47