i2c-opal.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Device-tree bindings for I2C OPAL driver
  2. ----------------------------------------
  3. Most of the device node and properties layout is specific to the firmware and
  4. used by the firmware itself for configuring the port. From the linux
  5. perspective, the properties of use are "ibm,port-name" and "ibm,opal-id".
  6. Required properties:
  7. - reg: Port-id within a given master
  8. - compatible: must be "ibm,opal-i2c"
  9. - ibm,opal-id: Refers to a specific bus and used to identify it when calling
  10. the relevant OPAL functions.
  11. - bus-frequency: Operating frequency of the i2c bus (in HZ). Informational for
  12. linux, used by the FW though.
  13. Optional properties:
  14. - ibm,port-name: Firmware provides this name that uniquely identifies the i2c
  15. port.
  16. The node contains a number of other properties that are used by the FW itself
  17. and depend on the specific hardware implementation. The example below depicts
  18. a P8 on-chip bus.
  19. Example:
  20. i2c-bus@0 {
  21. reg = <0x0>;
  22. bus-frequency = <0x61a80>;
  23. compatible = "ibm,power8-i2c-port", "ibm,opal-i2c";
  24. ibm,opal-id = <0x1>;
  25. ibm,port-name = "p8_00000000_e1p0";
  26. #address-cells = <0x1>;
  27. phandle = <0x10000006>;
  28. #size-cells = <0x0>;
  29. linux,phandle = <0x10000006>;
  30. };