i2c.txt 755 B

12345678910111213141516171819202122232425262728
  1. U-Boot I2C
  2. ----------
  3. U-Boot's I2C model has the concept of an offset within a chip (I2C target
  4. device). The offset can be up to 4 bytes long, but is normally 1 byte,
  5. meaning that offsets from 0 to 255 are supported by the chip. This often
  6. corresponds to register numbers.
  7. Apart from the controller-specific I2C bindings, U-Boot supports a special
  8. property which allows the chip offset length to be selected.
  9. Optional properties:
  10. - u-boot,i2c-offset-len - length of chip offset in bytes. If omitted the
  11. default value of 1 is used.
  12. Example
  13. -------
  14. i2c4: i2c@12ca0000 {
  15. cros-ec@1e {
  16. reg = <0x1e>;
  17. compatible = "google,cros-ec";
  18. i2c-max-frequency = <100000>;
  19. u-boot,i2c-offset-len = <0>;
  20. ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>;
  21. };
  22. };