1/*
2 * Copyright (c) 2023 Hudson C. Dalpra
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_w1_gpio: test_w1_gpio {
27			compatible = "zephyr,w1-gpio";
28			gpios = <&test_gpio 0 0>;
29		};
30
31		test_uart: uart@55556666 {
32			compatible = "vnd,serial";
33			reg = <0x55556666 0x1000>;
34			status = "okay";
35
36			#address-cells = <1>;
37			#size-cells = <0>;
38
39			test_uart_w1_serial: w1_serial {
40				compatible = "zephyr,w1-serial";
41			};
42		};
43
44		test_i2c: i2c@11112222 {
45			#address-cells = <1>;
46			#size-cells = <0>;
47			compatible = "vnd,i2c";
48			reg = <0x11112222 0x1000>;
49			status = "okay";
50			clock-frequency = <100000>;
51
52			test_i2c_ds2482_800: ds2482-800@0 {
53				compatible = "maxim,ds2482-800";
54				reg = <0x0>;
55
56				#address-cells = <1>;
57				#size-cells = <0>;
58
59				w1_0: ch@0 {
60					compatible = "maxim,ds2482-800-channel";
61					reg = <0>;
62				};
63			};
64
65			test_i2c_ds2484: ds2484@1 {
66				compatible = "maxim,ds2484";
67				reg = <0x1>;
68			};
69
70			test_i2c_ds2485: ds2485@2 {
71				compatible = "maxim,ds2485";
72				reg = <0x2>;
73
74				switching-threshold = "low";
75				active-pull-threshold = "low";
76				weak-pullup = "1000";
77			};
78		};
79	};
80};
81