summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/unittest.txt
blob: 8933211f32f945c70b568d35372342ab3baca3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
1) OF selftest platform device

** selftest

Required properties:
- compatible: must be "selftest"

All other properties are optional.

Example:
	selftest {
		compatible = "selftest";
		status = "okay";
	};

2) OF selftest i2c adapter platform device

** platform device unittest adapter

Required properties:
- compatible: must be selftest-i2c-bus

Children nodes contain selftest i2c devices.

Example:
	selftest-i2c-bus {
		compatible = "selftest-i2c-bus";
		status = "okay";
	};

3) OF selftest i2c device

** I2C selftest device

Required properties:
- compatible: must be selftest-i2c-dev

All other properties are optional

Example:
	selftest-i2c-dev {
		compatible = "selftest-i2c-dev";
		status = "okay";
	};

4) OF selftest i2c mux device

** I2C selftest mux

Required properties:
- compatible: must be selftest-i2c-mux

Children nodes contain selftest i2c bus nodes per channel.

Example:
	selftest-i2c-mux {
		compatible = "selftest-i2c-mux";
		status = "okay";
		#address-cells = <1>;
		#size-cells = <0>;
		channel-0 {
			reg = <0>;
			#address-cells = <1>;
			#size-cells = <0>;
			i2c-dev {
				reg = <8>;
				compatible = "selftest-i2c-dev";
				status = "okay";
			};
		};
	};