bus.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. SLIM(Serial Low Power Interchip Media Bus) bus
  2. SLIMbus is a 2-wire bus, and is used to communicate with peripheral
  3. components like audio-codec.
  4. Required property for SLIMbus controller node:
  5. - compatible - name of SLIMbus controller
  6. Child nodes:
  7. Every SLIMbus controller node can contain zero or more child nodes
  8. representing slave devices on the bus. Every SLIMbus slave device is
  9. uniquely determined by the enumeration address containing 4 fields:
  10. Manufacturer ID, Product code, Device index, and Instance value for
  11. the device.
  12. If child node is not present and it is instantiated after device
  13. discovery (slave device reporting itself present).
  14. In some cases it may be necessary to describe non-probeable device
  15. details such as non-standard ways of powering up a device. In
  16. such cases, child nodes for those devices will be present as
  17. slaves of the SLIMbus controller, as detailed below.
  18. Required property for SLIMbus child node if it is present:
  19. - reg - Should be ('Device index', 'Instance ID') from SLIMbus
  20. Enumeration Address.
  21. Device Index Uniquely identifies multiple Devices within
  22. a single Component.
  23. Instance ID Is for the cases where multiple Devices of the
  24. same type or Class are attached to the bus.
  25. - compatible -"slimMID,PID". The textual representation of Manufacturer ID,
  26. Product Code, shall be in lower case hexadecimal with leading
  27. zeroes suppressed
  28. SLIMbus example for Qualcomm's slimbus manager component:
  29. slim@28080000 {
  30. compatible = "qcom,apq8064-slim", "qcom,slim";
  31. reg = <0x28080000 0x2000>,
  32. interrupts = <0 33 0>;
  33. clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>;
  34. clock-names = "iface", "core";
  35. #address-cells = <2>;
  36. #size-cell = <0>;
  37. codec: wcd9310@1,0{
  38. compatible = "slim217,60";
  39. reg = <1 0>;
  40. };
  41. };