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