Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 1 | 1) OF unittest platform device |
Pantelis Antoniou | 177d271 | 2014-10-28 22:35:59 +0200 | [diff] [blame] | 2 | |
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 3 | ** unittest |
Pantelis Antoniou | 177d271 | 2014-10-28 22:35:59 +0200 | [diff] [blame] | 4 | |
5 | Required properties: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 6 | - compatible: must be "unittest" |
Pantelis Antoniou | 177d271 | 2014-10-28 22:35:59 +0200 | [diff] [blame] | 7 | |
8 | All other properties are optional. | ||||
9 | |||||
10 | Example: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 11 | unittest { |
12 | compatible = "unittest"; | ||||
Pantelis Antoniou | 177d271 | 2014-10-28 22:35:59 +0200 | [diff] [blame] | 13 | status = "okay"; |
14 | }; | ||||
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 15 | |
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 16 | 2) OF unittest i2c adapter platform device |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 17 | |
18 | ** platform device unittest adapter | ||||
19 | |||||
20 | Required properties: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 21 | - compatible: must be unittest-i2c-bus |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 22 | |
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 23 | Children nodes contain unittest i2c devices. |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 24 | |
25 | Example: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 26 | unittest-i2c-bus { |
27 | compatible = "unittest-i2c-bus"; | ||||
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 28 | status = "okay"; |
29 | }; | ||||
30 | |||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 31 | 3) OF unittest i2c device |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 32 | |
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 33 | ** I2C unittest device |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 34 | |
35 | Required properties: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 36 | - compatible: must be unittest-i2c-dev |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 37 | |
38 | All other properties are optional | ||||
39 | |||||
40 | Example: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 41 | unittest-i2c-dev { |
42 | compatible = "unittest-i2c-dev"; | ||||
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 43 | status = "okay"; |
44 | }; | ||||
45 | |||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 46 | 4) OF unittest i2c mux device |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 47 | |
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 48 | ** I2C unittest mux |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 49 | |
50 | Required properties: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 51 | - compatible: must be unittest-i2c-mux |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 52 | |
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 53 | Children nodes contain unittest i2c bus nodes per channel. |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 54 | |
55 | Example: | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 56 | unittest-i2c-mux { |
57 | compatible = "unittest-i2c-mux"; | ||||
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 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>; | ||||
Wang Long | 9697a55 | 2015-03-11 08:36:54 +0000 | [diff] [blame] | 67 | compatible = "unittest-i2c-dev"; |
Pantelis Antoniou | d5e7550 | 2015-01-12 19:02:49 +0200 | [diff] [blame] | 68 | status = "okay"; |
69 | }; | ||||
70 | }; | ||||
71 | }; |