Linux 4.1.18
[linux/fpc-iii.git] / Documentation / devicetree / bindings / unittest.txt
blob3bf58c20fe94da71ecae272e7d86256bd42f0683
1 1) OF unittest platform device
3 ** unittest
5 Required properties:
6 - compatible: must be "unittest"
8 All other properties are optional.
10 Example:
11         unittest {
12                 compatible = "unittest";
13                 status = "okay";
14         };
16 2) OF unittest i2c adapter platform device
18 ** platform device unittest adapter
20 Required properties:
21 - compatible: must be unittest-i2c-bus
23 Children nodes contain unittest i2c devices.
25 Example:
26         unittest-i2c-bus {
27                 compatible = "unittest-i2c-bus";
28                 status = "okay";
29         };
31 3) OF unittest i2c device
33 ** I2C unittest device
35 Required properties:
36 - compatible: must be unittest-i2c-dev
38 All other properties are optional
40 Example:
41         unittest-i2c-dev {
42                 compatible = "unittest-i2c-dev";
43                 status = "okay";
44         };
46 4) OF unittest i2c mux device
48 ** I2C unittest mux
50 Required properties:
51 - compatible: must be unittest-i2c-mux
53 Children nodes contain unittest i2c bus nodes per channel.
55 Example:
56         unittest-i2c-mux {
57                 compatible = "unittest-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 = "unittest-i2c-dev";
68                                 status = "okay";
69                         };
70                 };
71         };