xref: /linux/Documentation/devicetree/bindings/unittest.txt (revision 2ba9268dd603d23e17643437b2246acb6844953b)
11) OF selftest platform device
2
3** selftest
4
5Required properties:
6- compatible: must be "selftest"
7
8All other properties are optional.
9
10Example:
11	selftest {
12		compatible = "selftest";
13		status = "okay";
14	};
15
162) OF selftest i2c adapter platform device
17
18** platform device unittest adapter
19
20Required properties:
21- compatible: must be selftest-i2c-bus
22
23Children nodes contain selftest i2c devices.
24
25Example:
26	selftest-i2c-bus {
27		compatible = "selftest-i2c-bus";
28		status = "okay";
29	};
30
313) OF selftest i2c device
32
33** I2C selftest device
34
35Required properties:
36- compatible: must be selftest-i2c-dev
37
38All other properties are optional
39
40Example:
41	selftest-i2c-dev {
42		compatible = "selftest-i2c-dev";
43		status = "okay";
44	};
45
464) OF selftest i2c mux device
47
48** I2C selftest mux
49
50Required properties:
51- compatible: must be selftest-i2c-mux
52
53Children nodes contain selftest i2c bus nodes per channel.
54
55Example:
56	selftest-i2c-mux {
57		compatible = "selftest-i2c-mux";
58		status = "okay";
59		#address-cells = <1>;
60		#size-cells = <0>;
61		channel-0 {
62			reg = <0>;
63			#address-cells = <1>;
64			#size-cells = <0>;
65			i2c-dev {
66				reg = <8>;
67				compatible = "selftest-i2c-dev";
68				status = "okay";
69			};
70		};
71	};
72