mt6577_auxadc.txt 1.1 KB

123456789101112131415161718192021222324252627282930
  1. * Mediatek AUXADC - Analog to Digital Converter on Mediatek mobile soc (mt65xx/mt81xx/mt27xx)
  2. ===============
  3. The Auxiliary Analog/Digital Converter (AUXADC) is an ADC found
  4. in some Mediatek SoCs which among other things measures the temperatures
  5. in the SoC. It can be used directly with register accesses, but it is also
  6. used by thermal controller which reads the temperatures from the AUXADC
  7. directly via its own bus interface. See
  8. Documentation/devicetree/bindings/thermal/mediatek-thermal.txt
  9. for the Thermal Controller which holds a phandle to the AUXADC.
  10. Required properties:
  11. - compatible: Should be one of:
  12. - "mediatek,mt2701-auxadc": For MT2701 family of SoCs
  13. - "mediatek,mt8173-auxadc": For MT8173 family of SoCs
  14. - reg: Address range of the AUXADC unit.
  15. - clocks: Should contain a clock specifier for each entry in clock-names
  16. - clock-names: Should contain "main".
  17. - #io-channel-cells: Should be 1, see ../iio-bindings.txt
  18. Example:
  19. auxadc: adc@11001000 {
  20. compatible = "mediatek,mt2701-auxadc";
  21. reg = <0 0x11001000 0 0x1000>;
  22. clocks = <&pericfg CLK_PERI_AUXADC>;
  23. clock-names = "main";
  24. #io-channel-cells = <1>;
  25. };