1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ADC on an STMPE multifunction device.
8
9maintainers:
10  - Stefan Agner <stefan@agner.ch>
11
12description:
13  This ADC forms part of an ST microelectronics STMPE multifunction device .
14  The ADC is shared with the STMPE touchscreen. As a result some ADC related
15  settings are specified in the parent node.
16  The node should be a child node of the stmpe node to which it belongs.
17
18properties:
19  compatible:
20    const: st,stmpe-adc
21
22  st,norequest-mask:
23    $ref: /schemas/types.yaml#/definitions/uint32
24    description:
25      Bitmask specifying which ADC channels should _not_ be
26      requestable due to different usage (e.g. touch).
27
28  "#io-channel-cells":
29    const: 1
30
31required:
32  - compatible
33
34additionalProperties: false
35
36examples:
37  - |
38    stmpe {
39        stmpe_adc {
40            compatible = "st,stmpe-adc";
41            st,norequest-mask = <0x0F>; /* dont use ADC CH3-0 */
42        };
43    };
44...
45