i2c-cros-ec-tunnel.txt 1014 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. I2C bus that tunnels through the ChromeOS EC (cros-ec)
  2. ======================================================
  3. On some ChromeOS board designs we've got a connection to the EC (embedded
  4. controller) but no direct connection to some devices on the other side of
  5. the EC (like a battery and PMIC). To get access to those devices we need
  6. to tunnel our i2c commands through the EC.
  7. The node for this device should be under a cros-ec node like google,cros-ec-spi
  8. or google,cros-ec-i2c.
  9. Required properties:
  10. - compatible: google,cros-ec-i2c-tunnel
  11. - google,remote-bus: The EC bus we'd like to talk to.
  12. Optional child nodes:
  13. - One node per I2C device connected to the tunnelled I2C bus.
  14. Example:
  15. cros-ec@0 {
  16. compatible = "google,cros-ec-spi";
  17. ...
  18. i2c-tunnel {
  19. compatible = "google,cros-ec-i2c-tunnel";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. google,remote-bus = <0>;
  23. battery: sbs-battery@b {
  24. compatible = "sbs,sbs-battery";
  25. reg = <0xb>;
  26. sbs,poll-retry-count = <1>;
  27. };
  28. };
  29. }