tests-overlay.dtsi 2.1 KB
Newer Older
1
// SPDX-License-Identifier: GPL-2.0
2 3 4 5 6 7

/ {
	testcase-data {
		overlay-node {

			/* test bus */
8
			unittest_test_bus: test-bus {
9 10 11 12
				compatible = "simple-bus";
				#address-cells = <1>;
				#size-cells = <0>;

13 14
				unittest100: test-unittest100 {
					compatible = "unittest";
15 16 17 18
					status = "okay";
					reg = <100>;
				};

19 20
				unittest101: test-unittest101 {
					compatible = "unittest";
21 22 23 24
					status = "disabled";
					reg = <101>;
				};

25 26
				unittest0: test-unittest0 {
					compatible = "unittest";
27 28 29 30
					status = "disabled";
					reg = <0>;
				};

31 32
				unittest1: test-unittest1 {
					compatible = "unittest";
33 34 35 36
					status = "okay";
					reg = <1>;
				};

37 38
				unittest2: test-unittest2 {
					compatible = "unittest";
39 40 41 42
					status = "disabled";
					reg = <2>;
				};

43 44
				unittest3: test-unittest3 {
					compatible = "unittest";
45 46 47 48
					status = "okay";
					reg = <3>;
				};

49 50
				unittest5: test-unittest5 {
					compatible = "unittest";
51 52 53 54
					status = "disabled";
					reg = <5>;
				};

55 56
				unittest6: test-unittest6 {
					compatible = "unittest";
57 58 59 60
					status = "disabled";
					reg = <6>;
				};

61 62
				unittest7: test-unittest7 {
					compatible = "unittest";
63 64 65 66
					status = "disabled";
					reg = <7>;
				};

67 68
				unittest8: test-unittest8 {
					compatible = "unittest";
69 70 71
					status = "disabled";
					reg = <8>;
				};
72

73
				unittest_i2c_test_bus: i2c-test-bus {
74
					compatible = "unittest-i2c-bus";
75 76 77 78 79 80
					status = "okay";
					reg = <50>;

					#address-cells = <1>;
					#size-cells = <0>;

81
					test-unittest12 {
82
						reg = <8>;
83
						compatible = "unittest-i2c-dev";
84 85 86
						status = "disabled";
					};

87
					test-unittest13 {
88
						reg = <9>;
89
						compatible = "unittest-i2c-dev";
90 91 92
						status = "okay";
					};

93
					test-unittest14 {
94
						reg = <10>;
95
						compatible = "unittest-i2c-mux";
96 97 98 99 100 101 102 103 104 105 106 107
						status = "okay";

						#address-cells = <1>;
						#size-cells = <0>;

						i2c@0 {
							#address-cells = <1>;
							#size-cells = <0>;
							reg = <0>;

							test-mux-dev {
								reg = <32>;
108
								compatible = "unittest-i2c-dev";
109 110 111 112 113
								status = "okay";
							};
						};
					};
				};
114 115 116 117
			};
		};
	};
};