mirror of
https://github.com/torvalds/linux.git
synced 2026-05-04 06:22:40 -04:00
The iio-bindings.txt was converted into two files and merged
at the dt-schema git tree at:
https://github.com/devicetree-org/dt-schema
Yet, some documents still refer to the old file. Fix their
references, in order to point to the right URL.
Fixes: dba91f82d5 ("dt-bindings:iio:iio-binding.txt Drop file as content now in dt-schema")
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/4efd81eca266ca0875d3bf9d1672097444146c69.1617972339.git.mchehab+huawei@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
# Copyright 2019-2020 Artur Rojek
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/iio/adc/ingenic,adc.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: Ingenic JZ47xx ADC controller IIO bindings
|
|
|
|
maintainers:
|
|
- Artur Rojek <contact@artur-rojek.eu>
|
|
|
|
description: >
|
|
Industrial I/O subsystem bindings for ADC controller found in
|
|
Ingenic JZ47xx SoCs.
|
|
|
|
ADC clients must use the format described in
|
|
https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml,
|
|
giving a phandle and IIO specifier pair ("io-channels") to the ADC controller.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- ingenic,jz4725b-adc
|
|
- ingenic,jz4740-adc
|
|
- ingenic,jz4770-adc
|
|
|
|
'#io-channel-cells':
|
|
const: 1
|
|
description:
|
|
Must be set to <1> to indicate channels are selected by index.
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
clock-names:
|
|
items:
|
|
- const: adc
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- '#io-channel-cells'
|
|
- reg
|
|
- clocks
|
|
- clock-names
|
|
- interrupts
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/jz4740-cgu.h>
|
|
#include <dt-bindings/iio/adc/ingenic,adc.h>
|
|
|
|
adc@10070000 {
|
|
compatible = "ingenic,jz4740-adc";
|
|
#io-channel-cells = <1>;
|
|
|
|
reg = <0x10070000 0x30>;
|
|
|
|
clocks = <&cgu JZ4740_CLK_ADC>;
|
|
clock-names = "adc";
|
|
|
|
interrupt-parent = <&intc>;
|
|
interrupts = <18>;
|
|
};
|