xref: /linux/Documentation/devicetree/bindings/iio/adc/st,stmpe-adc.yaml (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1994235f3SJonathan Cameron# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2994235f3SJonathan Cameron%YAML 1.2
3994235f3SJonathan Cameron---
4994235f3SJonathan Cameron$id: http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml#
5994235f3SJonathan Cameron$schema: http://devicetree.org/meta-schemas/core.yaml#
6994235f3SJonathan Cameron
7994235f3SJonathan Camerontitle: ADC on an STMPE multifunction device.
8994235f3SJonathan Cameron
9994235f3SJonathan Cameronmaintainers:
10994235f3SJonathan Cameron  - Stefan Agner <stefan@agner.ch>
11994235f3SJonathan Cameron
12994235f3SJonathan Camerondescription:
13994235f3SJonathan Cameron  This ADC forms part of an ST microelectronics STMPE multifunction device .
14994235f3SJonathan Cameron  The ADC is shared with the STMPE touchscreen. As a result some ADC related
15994235f3SJonathan Cameron  settings are specified in the parent node.
16becbe550SFrancesco Dolcini  The node should be a child node of the stmpe node to which it belongs.
17994235f3SJonathan Cameron
18994235f3SJonathan Cameronproperties:
19994235f3SJonathan Cameron  compatible:
20994235f3SJonathan Cameron    const: st,stmpe-adc
21994235f3SJonathan Cameron
22994235f3SJonathan Cameron  st,norequest-mask:
23994235f3SJonathan Cameron    $ref: /schemas/types.yaml#/definitions/uint32
24994235f3SJonathan Cameron    description:
25994235f3SJonathan Cameron      Bitmask specifying which ADC channels should _not_ be
26994235f3SJonathan Cameron      requestable due to different usage (e.g. touch).
27994235f3SJonathan Cameron
28994235f3SJonathan Cameron  "#io-channel-cells":
29994235f3SJonathan Cameron    const: 1
30994235f3SJonathan Cameron
31994235f3SJonathan Cameronrequired:
32994235f3SJonathan Cameron  - compatible
33994235f3SJonathan Cameron
34994235f3SJonathan CameronadditionalProperties: false
35994235f3SJonathan Cameron
36994235f3SJonathan Cameronexamples:
37994235f3SJonathan Cameron  - |
38*46908557SKrzysztof Kozlowski    adc {
39994235f3SJonathan Cameron        compatible = "st,stmpe-adc";
40*46908557SKrzysztof Kozlowski        st,norequest-mask = <0x0f>; /* dont use ADC CH3-0 */
41994235f3SJonathan Cameron    };
42994235f3SJonathan Cameron...
43