1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019-2020 Artur Rojek
5 $id: http://devicetree.org/schemas/iio/adc/ingenic,adc.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Ingenic JZ47xx ADC controller IIO
11 - Artur Rojek <contact@artur-rojek.eu>
14 Industrial I/O subsystem bindings for ADC controller found in
17 ADC clients must use the format described in
18 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml,
19 giving a phandle and IIO specifier pair ("io-channels") to the ADC controller.
33 Must be set to <1> to indicate channels are selected by index.
48 ingenic,use-internal-divider:
50 If present, battery voltage is read from the VBAT_IR pin, which has an
51 internal 1/4 divider. If absent, it is read through the VBAT_ER pin,
52 which does not have such a divider.
60 const: ingenic,jz4760b-adc
63 ingenic,use-internal-divider: false
73 additionalProperties: false
77 #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
78 #include <dt-bindings/iio/adc/ingenic,adc.h>
81 compatible = "ingenic,jz4740-adc";
82 #io-channel-cells = <1>;
84 reg = <0x10070000 0x30>;
86 clocks = <&cgu JZ4740_CLK_ADC>;
89 interrupt-parent = <&intc>;