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