1/*
2 * Copyright (c) 2023 Aleksandr Senin
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_mdio0: mdio@11112222 {
27			compatible = "zephyr,mdio-gpio";
28			reg = <0x11112222 1>;
29			mdc-gpios = <&test_gpio 0 0>;
30			mdio-gpios = <&test_gpio 0 0>;
31			status = "okay";
32			#address-cells = <1>;
33			#size-cells = <0>;
34		};
35
36		test_mdio1: mdio@33334444 {
37			compatible = "zephyr,mdio-gpio";
38			reg = <0x33334444 1>;
39			mdc-gpios = <&test_gpio 0 0>;
40			mdio-gpios = <&test_gpio 0 0>;
41			status = "okay";
42			#address-cells = <1>;
43			#size-cells = <0>;
44		};
45	};
46};
47