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			label = "TEST_GPIO_1";
24			status = "okay";
25		};
26
27		test_spi: spi@33334444 {
28			#address-cells = <1>;
29			#size-cells = <0>;
30			compatible = "vnd,spi";
31			reg = <0x33334444 0x1000>;
32			label = "TEST_SPI_CTLR";
33			status = "okay";
34			clock-frequency = <2000000>;
35
36			/* one entry for every devices at spi.dtsi */
37			cs-gpios = <&test_gpio 0 0>,
38				   <&test_gpio 0 0>,
39				   <&test_gpio 0 0>;
40
41			test_spi_enc28j60: enc28j60@0 {
42				compatible = "microchip,enc28j60";
43				label = "ENC28J60";
44				reg = <0x0>;
45				spi-max-frequency = <0>;
46				int-gpios = <&test_gpio 0 0>;
47				local-mac-address = [00 00 00 00 00 00];
48			};
49
50			test_spi_enc424j600: enc424j600@1 {
51				compatible = "microchip,enc424j600";
52				label = "ENC424J600";
53				reg = <0x1>;
54				spi-max-frequency = <0>;
55				int-gpios = <&test_gpio 0 0>;
56				local-mac-address = [00 00 00 00 00 00];
57			};
58
59			test_spi_w5500: w5500@2 {
60				compatible = "wiznet,w5500";
61				label = "w5500";
62				reg = <0x2>;
63				spi-max-frequency = <0>;
64				int-gpios = <&test_gpio 0 0>;
65				reset-gpios = <&test_gpio 0 0>;
66			};
67		};
68	};
69};
70