1/*
2 * Copyright (c) 2021, Commonwealth Scientific and Industrial Research
3 * Organisation (CSIRO) ABN 41 687 119 230.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Application overlay for testing the devicetree.h extension API's.
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/ {
15	test {
16		#address-cells = < 0x1 >;
17		#size-cells = < 0x1 >;
18
19		test_sram1: sram@20000000 {
20			compatible = "zephyr,memory-region", "mmio-sram";
21			reg = < 0x20000000 0x1000 >;
22			zephyr,memory-region = "SRAM_REGION";
23		};
24		test_sram2: sram@20001000 {
25			compatible = "zephyr,memory-region", "mmio-sram";
26			reg = < 0x20001000 0x1000 >;
27			zephyr,memory-region = "SRAM@REGION#2";
28		};
29
30		test_fixed_clk: test-fixed-clock {
31			compatible = "fixed-clock";
32			clock-frequency = <25000000>;
33			#clock-cells = <0>;
34		};
35
36		test_clk: test-clock {
37			compatible = "vnd,clock";
38			#clock-cells = <2>;
39		};
40
41		test_adc_1: adc@10002000 {
42			reg = <0x10002000 0x1000>;
43			compatible = "vnd,adc";
44			status = "okay";
45			#io-channel-cells = <1>;
46		};
47
48		test_adc_2: adc@10003000 {
49			reg = <0x10003000 0x1000>;
50			compatible = "vnd,adc";
51			status = "okay";
52			#io-channel-cells = <1>;
53		};
54
55		test_mbox: mbox {
56			compatible = "vnd,mbox";
57			#mbox-cells = <1>;
58			status = "okay";
59		};
60
61		test_mbox_zero_cell: mbox_zero_cell {
62			compatible = "vnd,mbox-zero-cell";
63			#mbox-cells = <0>;
64			status = "okay";
65		};
66
67		/* there should only be one of these */
68		test_temp_sensor: temperature-sensor {
69			compatible = "vnd,adc-temp-sensor";
70			clocks = <&test_clk 3 7>, <&test_fixed_clk>, <&test_clk 8 2>;
71			clock-names = "clk-a", "clk-fixed", "clk-b";
72			io-channels = <&test_adc_1 10>, <&test_adc_2 20>;
73			io-channel-names = "ch1", "ch2";
74			mboxes = <&test_mbox 1>, <&test_mbox 2>, <&test_mbox_zero_cell>;
75			mbox-names = "tx", "rx", "zero";
76		};
77	};
78};
79