blob: 3bf58c20fe94da71ecae272e7d86256bd42f0683 [file] [log] [blame]
Wang Long9697a552015-03-11 08:36:54 +000011) OF unittest platform device
Pantelis Antoniou177d2712014-10-28 22:35:59 +02002
Wang Long9697a552015-03-11 08:36:54 +00003** unittest
Pantelis Antoniou177d2712014-10-28 22:35:59 +02004
5Required properties:
Wang Long9697a552015-03-11 08:36:54 +00006- compatible: must be "unittest"
Pantelis Antoniou177d2712014-10-28 22:35:59 +02007
8All other properties are optional.
9
10Example:
Wang Long9697a552015-03-11 08:36:54 +000011 unittest {
12 compatible = "unittest";
Pantelis Antoniou177d2712014-10-28 22:35:59 +020013 status = "okay";
14 };
Pantelis Antonioud5e75502015-01-12 19:02:49 +020015
Wang Long9697a552015-03-11 08:36:54 +0000162) OF unittest i2c adapter platform device
Pantelis Antonioud5e75502015-01-12 19:02:49 +020017
18** platform device unittest adapter
19
20Required properties:
Wang Long9697a552015-03-11 08:36:54 +000021- compatible: must be unittest-i2c-bus
Pantelis Antonioud5e75502015-01-12 19:02:49 +020022
Wang Long9697a552015-03-11 08:36:54 +000023Children nodes contain unittest i2c devices.
Pantelis Antonioud5e75502015-01-12 19:02:49 +020024
25Example:
Wang Long9697a552015-03-11 08:36:54 +000026 unittest-i2c-bus {
27 compatible = "unittest-i2c-bus";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020028 status = "okay";
29 };
30
Wang Long9697a552015-03-11 08:36:54 +0000313) OF unittest i2c device
Pantelis Antonioud5e75502015-01-12 19:02:49 +020032
Wang Long9697a552015-03-11 08:36:54 +000033** I2C unittest device
Pantelis Antonioud5e75502015-01-12 19:02:49 +020034
35Required properties:
Wang Long9697a552015-03-11 08:36:54 +000036- compatible: must be unittest-i2c-dev
Pantelis Antonioud5e75502015-01-12 19:02:49 +020037
38All other properties are optional
39
40Example:
Wang Long9697a552015-03-11 08:36:54 +000041 unittest-i2c-dev {
42 compatible = "unittest-i2c-dev";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020043 status = "okay";
44 };
45
Wang Long9697a552015-03-11 08:36:54 +0000464) OF unittest i2c mux device
Pantelis Antonioud5e75502015-01-12 19:02:49 +020047
Wang Long9697a552015-03-11 08:36:54 +000048** I2C unittest mux
Pantelis Antonioud5e75502015-01-12 19:02:49 +020049
50Required properties:
Wang Long9697a552015-03-11 08:36:54 +000051- compatible: must be unittest-i2c-mux
Pantelis Antonioud5e75502015-01-12 19:02:49 +020052
Wang Long9697a552015-03-11 08:36:54 +000053Children nodes contain unittest i2c bus nodes per channel.
Pantelis Antonioud5e75502015-01-12 19:02:49 +020054
55Example:
Wang Long9697a552015-03-11 08:36:54 +000056 unittest-i2c-mux {
57 compatible = "unittest-i2c-mux";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020058 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>;
Wang Long9697a552015-03-11 08:36:54 +000067 compatible = "unittest-i2c-dev";
Pantelis Antonioud5e75502015-01-12 19:02:49 +020068 status = "okay";
69 };
70 };
71 };