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 bindings
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.
31 Must be set to <1> to indicate channels are selected by index.
54 additionalProperties: false
58 #include <dt-bindings/clock/jz4740-cgu.h>
59 #include <dt-bindings/iio/adc/ingenic,adc.h>
62 compatible = "ingenic,jz4740-adc";
63 #io-channel-cells = <1>;
65 reg = <0x10070000 0x30>;
67 clocks = <&cgu JZ4740_CLK_ADC>;
70 interrupt-parent = <&intc>;