Merge tag 'mfd-for-linus-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[pandora-kernel.git] / Documentation / devicetree / bindings / unittest.txt
1 1) OF selftest platform device
2
3 ** selftest
4
5 Required properties:
6 - compatible: must be "selftest"
7
8 All other properties are optional.
9
10 Example:
11         selftest {
12                 compatible = "selftest";
13                 status = "okay";
14         };
15
16 2) OF selftest i2c adapter platform device
17
18 ** platform device unittest adapter
19
20 Required properties:
21 - compatible: must be selftest-i2c-bus
22
23 Children nodes contain selftest i2c devices.
24
25 Example:
26         selftest-i2c-bus {
27                 compatible = "selftest-i2c-bus";
28                 status = "okay";
29         };
30
31 3) OF selftest i2c device
32
33 ** I2C selftest device
34
35 Required properties:
36 - compatible: must be selftest-i2c-dev
37
38 All other properties are optional
39
40 Example:
41         selftest-i2c-dev {
42                 compatible = "selftest-i2c-dev";
43                 status = "okay";
44         };
45
46 4) OF selftest i2c mux device
47
48 ** I2C selftest mux
49
50 Required properties:
51 - compatible: must be selftest-i2c-mux
52
53 Children nodes contain selftest i2c bus nodes per channel.
54
55 Example:
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         };