unittest.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. 1) OF unittest platform device
  2. ** unittest
  3. Required properties:
  4. - compatible: must be "unittest"
  5. All other properties are optional.
  6. Example:
  7. unittest {
  8. compatible = "unittest";
  9. status = "okay";
  10. };
  11. 2) OF unittest i2c adapter platform device
  12. ** platform device unittest adapter
  13. Required properties:
  14. - compatible: must be unittest-i2c-bus
  15. Children nodes contain unittest i2c devices.
  16. Example:
  17. unittest-i2c-bus {
  18. compatible = "unittest-i2c-bus";
  19. status = "okay";
  20. };
  21. 3) OF unittest i2c device
  22. ** I2C unittest device
  23. Required properties:
  24. - compatible: must be unittest-i2c-dev
  25. All other properties are optional
  26. Example:
  27. unittest-i2c-dev {
  28. compatible = "unittest-i2c-dev";
  29. status = "okay";
  30. };
  31. 4) OF unittest i2c mux device
  32. ** I2C unittest mux
  33. Required properties:
  34. - compatible: must be unittest-i2c-mux
  35. Children nodes contain unittest i2c bus nodes per channel.
  36. Example:
  37. unittest-i2c-mux {
  38. compatible = "unittest-i2c-mux";
  39. status = "okay";
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. channel-0 {
  43. reg = <0>;
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. i2c-dev {
  47. reg = <8>;
  48. compatible = "unittest-i2c-dev";
  49. status = "okay";
  50. };
  51. };
  52. };