epm_adc.txt 1.2 KB

1234567891011121314151617181920212223242526
  1. Embedded Power Measurement(EPM) using Cypress Progammable System on a chip (PSOC)
  2. The EPM using the PSoC5 is used by clients to measure on target power
  3. measurement on supported channels. The PSoC5 is a microcontroller
  4. that is communicated over the SPI from the MSM. Primary configuration
  5. supports upto 31 channels and the scope of the driver is to support
  6. userspace clients.
  7. EPM node
  8. Required properties:
  9. - compatible : should be "cy,epm-adc-cy8c5568lti-114" for EPM using PSoC5.
  10. - reg : chip select for the device.
  11. - interrupt-parent : should be phandle of the interrupt controller
  12. servicing the interrupt for this device.
  13. - spi-max-frequency : existing support is set for 960kHz.
  14. - qcom,channels : The number of voltage and current channels that
  15. are supported.
  16. - qcom,gain : The gain for each of the supported channels.
  17. - qcom,rsense : The rsense value for each channel. The current channels
  18. rsense values units are in milliohms. The voltage channels
  19. rsense value is 1.
  20. - qcom,channel-type : Bitmak of channels to set as voltage and current.
  21. These are platform dependent and the appropriate scaling
  22. functions are used for returning voltage and current.