xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/st,stmpe-adc.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: ADC on an STMPE multifunction device.
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Stefan Agner <stefan@agner.ch>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription:
136be33864SEmmanuel Vadot  This ADC forms part of an ST microelectronics STMPE multifunction device .
146be33864SEmmanuel Vadot  The ADC is shared with the STMPE touchscreen. As a result some ADC related
156be33864SEmmanuel Vadot  settings are specified in the parent node.
167ef62cebSEmmanuel Vadot  The node should be a child node of the stmpe node to which it belongs.
176be33864SEmmanuel Vadot
186be33864SEmmanuel Vadotproperties:
196be33864SEmmanuel Vadot  compatible:
206be33864SEmmanuel Vadot    const: st,stmpe-adc
216be33864SEmmanuel Vadot
226be33864SEmmanuel Vadot  st,norequest-mask:
236be33864SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
246be33864SEmmanuel Vadot    description:
256be33864SEmmanuel Vadot      Bitmask specifying which ADC channels should _not_ be
266be33864SEmmanuel Vadot      requestable due to different usage (e.g. touch).
276be33864SEmmanuel Vadot
286be33864SEmmanuel Vadot  "#io-channel-cells":
296be33864SEmmanuel Vadot    const: 1
306be33864SEmmanuel Vadot
316be33864SEmmanuel Vadotrequired:
326be33864SEmmanuel Vadot  - compatible
336be33864SEmmanuel Vadot
346be33864SEmmanuel VadotadditionalProperties: false
356be33864SEmmanuel Vadot
366be33864SEmmanuel Vadotexamples:
376be33864SEmmanuel Vadot  - |
38*cb7aa33aSEmmanuel Vadot    adc {
396be33864SEmmanuel Vadot        compatible = "st,stmpe-adc";
40*cb7aa33aSEmmanuel Vadot        st,norequest-mask = <0x0f>; /* dont use ADC CH3-0 */
416be33864SEmmanuel Vadot    };
426be33864SEmmanuel Vadot...
43