cros-ec.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Chrome OS CROS_EC Binding
  2. ======================
  3. The device tree node which describes the operation of the CROS_EC interface
  4. is as follows:
  5. Required properties :
  6. - compatible = "google,cros-ec"
  7. Optional properties :
  8. - spi-max-frequency : Sets the maximum frequency (in Hz) for SPI bus
  9. operation
  10. - i2c-max-frequency : Sets the maximum frequency (in Hz) for I2C bus
  11. operation
  12. - ec-interrupt : Selects the EC interrupt, defined as a GPIO according
  13. to the platform
  14. - optimise-flash-write : Boolean property - if present then flash blocks
  15. containing all 0xff will not be written, since we assume that the EC
  16. uses that pattern for erased blocks
  17. The CROS_EC node should appear as a subnode of the interrupt that connects it
  18. to the EC (e.g. i2c, spi, lpc). The reg property (as usual) will indicate
  19. the unit address on that bus.
  20. Example
  21. =======
  22. spi@131b0000 {
  23. cros-ec@0 {
  24. reg = <0>;
  25. compatible = "google,cros-ec";
  26. spi-max-frequency = <5000000>;
  27. ec-interrupt = <&gpio 174 1>;
  28. optimise-flash-write;
  29. status = "disabled";
  30. };
  31. };