Mediatek AUXADC - ADC on Mediatek mobile SoC (mt65xx/mt81xx/mt27xx)
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Zhiyong Tao <zhiyong.tao@mediatek.com>", "Matthias Brugger <matthias.bgg@gmail.com>"
The Auxiliary Analog/Digital Converter (AUXADC) is an ADC found in some Mediatek SoCs which among other things measures the temperatures in the SoC. It can be used directly with register accesses, but it is also used by thermal controller which reads the temperatures from the AUXADC directly via its own bus interface. See mediatek-thermal bindings for the Thermal Controller which holds a phandle to the AUXADC.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mediatek,mt2701-auxadc","mediatek,mt2712-auxadc","mediatek,mt6765-auxadc","mediatek,mt7622-auxadc","mediatek,mt7986-auxadc","mediatek,mt8173-auxadc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt2701-auxadc"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt7986-auxadc"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6893-auxadc","mediatek,mt8183-auxadc","mediatek,mt8186-auxadc","mediatek,mt8188-auxadc","mediatek,mt8189-auxadc","mediatek,mt8195-auxadc","mediatek,mt8516-auxadc"Item 2
Exact value (
const):"mediatek,mt8173-auxadc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "main"
#io-channel-cells — required here #
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#io-channel-cells"
Examples (examples) #
#include <dt-bindings/clock/mt8183-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
adc@11001000 {
compatible = "mediatek,mt8183-auxadc",
"mediatek,mt8173-auxadc";
reg = <0 0x11001000 0 0x1000>;
clocks = <&infracfg CLK_INFRA_AUXADC>;
clock-names = "main";
#io-channel-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)