2015-03-11 16:36:54 +08:00
|
|
|
1) OF unittest platform device
|
2014-10-29 04:35:59 +08:00
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
** unittest
|
2014-10-29 04:35:59 +08:00
|
|
|
|
|
|
|
Required properties:
|
2015-03-11 16:36:54 +08:00
|
|
|
- compatible: must be "unittest"
|
2014-10-29 04:35:59 +08:00
|
|
|
|
|
|
|
All other properties are optional.
|
|
|
|
|
|
|
|
Example:
|
2015-03-11 16:36:54 +08:00
|
|
|
unittest {
|
|
|
|
compatible = "unittest";
|
2014-10-29 04:35:59 +08:00
|
|
|
};
|
2015-01-13 01:02:49 +08:00
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
2) OF unittest i2c adapter platform device
|
2015-01-13 01:02:49 +08:00
|
|
|
|
|
|
|
** platform device unittest adapter
|
|
|
|
|
|
|
|
Required properties:
|
2015-03-11 16:36:54 +08:00
|
|
|
- compatible: must be unittest-i2c-bus
|
2015-01-13 01:02:49 +08:00
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
Children nodes contain unittest i2c devices.
|
2015-01-13 01:02:49 +08:00
|
|
|
|
|
|
|
Example:
|
2015-03-11 16:36:54 +08:00
|
|
|
unittest-i2c-bus {
|
|
|
|
compatible = "unittest-i2c-bus";
|
2015-01-13 01:02:49 +08:00
|
|
|
};
|
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
3) OF unittest i2c device
|
2015-01-13 01:02:49 +08:00
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
** I2C unittest device
|
2015-01-13 01:02:49 +08:00
|
|
|
|
|
|
|
Required properties:
|
2015-03-11 16:36:54 +08:00
|
|
|
- compatible: must be unittest-i2c-dev
|
2015-01-13 01:02:49 +08:00
|
|
|
|
|
|
|
All other properties are optional
|
|
|
|
|
|
|
|
Example:
|
2015-03-11 16:36:54 +08:00
|
|
|
unittest-i2c-dev {
|
|
|
|
compatible = "unittest-i2c-dev";
|
2015-01-13 01:02:49 +08:00
|
|
|
};
|
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
4) OF unittest i2c mux device
|
2015-01-13 01:02:49 +08:00
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
** I2C unittest mux
|
2015-01-13 01:02:49 +08:00
|
|
|
|
|
|
|
Required properties:
|
2015-03-11 16:36:54 +08:00
|
|
|
- compatible: must be unittest-i2c-mux
|
2015-01-13 01:02:49 +08:00
|
|
|
|
2015-03-11 16:36:54 +08:00
|
|
|
Children nodes contain unittest i2c bus nodes per channel.
|
2015-01-13 01:02:49 +08:00
|
|
|
|
|
|
|
Example:
|
2015-03-11 16:36:54 +08:00
|
|
|
unittest-i2c-mux {
|
|
|
|
compatible = "unittest-i2c-mux";
|
2015-01-13 01:02:49 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
channel-0 {
|
|
|
|
reg = <0>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
i2c-dev {
|
|
|
|
reg = <8>;
|
2015-03-11 16:36:54 +08:00
|
|
|
compatible = "unittest-i2c-dev";
|
2015-01-13 01:02:49 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|