1/*
2 * Copyright (c) 2020, Linaro Ltd.
3 * Copyright (c) 2022, Esco Medical ApS
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Application overlay for testing driver builds
8 *
9 * Names in this file should be chosen in a way that won't conflict
10 * with real-world devicetree nodes, to allow these tests to run on
11 * (and be extended to test) real hardware.
12 */
13
14#include <freq.h>
15#include <zephyr/dt-bindings/led/led.h>
16
17/ {
18	test {
19		#address-cells = <1>;
20		#size-cells = <1>;
21
22		test_gpio: gpio@deadbeef {
23			compatible = "vnd,gpio";
24			gpio-controller;
25			reg = <0xdeadbeef 0x1000>;
26			#gpio-cells = <0x2>;
27			status = "okay";
28		};
29
30		test_spi: spi@33334444 {
31			#address-cells = <1>;
32			#size-cells = <0>;
33			compatible = "vnd,spi";
34			reg = <0x33334444 0x1000>;
35			status = "okay";
36			clock-frequency = <DT_FREQ_M(2)>;
37
38			cs-gpios = <&test_gpio 0 0>;
39
40			test_spi_tlc5971: tlc5971@0 {
41				status = "okay";
42				compatible = "ti,tlc59711", "ti,tlc5971";
43				spi-max-frequency = <DT_FREQ_M(1)>;
44				reg = <0x0>;
45				chain-length = <8>; // two TLC5971 devices
46				color-mapping = <LED_COLOR_ID_BLUE>,
47						<LED_COLOR_ID_GREEN>,
48						<LED_COLOR_ID_RED>;
49			};
50		};
51	};
52};
53