0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ADC on an STMPE multifunction device.
0008
0009 maintainers:
0010 - Stefan Agner <stefan@agner.ch>
0011
0012 description:
0013 This ADC forms part of an ST microelectronics STMPE multifunction device .
0014 The ADC is shared with the STMPE touchscreen. As a result some ADC related
0015 settings are specified in the parent node.
0016 The node name myst be stmpe_adc and should be a child node of the stmpe node
0017 to which it belongs.
0018
0019 properties:
0020 compatible:
0021 const: st,stmpe-adc
0022
0023 st,norequest-mask:
0024 $ref: /schemas/types.yaml#/definitions/uint32
0025 description:
0026 Bitmask specifying which ADC channels should _not_ be
0027 requestable due to different usage (e.g. touch).
0028
0029 "#io-channel-cells":
0030 const: 1
0031
0032 required:
0033 - compatible
0034
0035 additionalProperties: false
0036
0037 examples:
0038 - |
0039 stmpe {
0040 stmpe_adc {
0041 compatible = "st,stmpe-adc";
0042 st,norequest-mask = <0x0F>; /* dont use ADC CH3-0 */
0043 };
0044 };
0045 ...