Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: ti,adc081c: Document the binding

Linux has a driver for these ADCs at drivers/iio/adc/ti-adc081c.c, but
the compatible strings were undocumented. Add a binding for them. The
hardware has an alert interrupt output, but existing ti,adc081c users
do not provide the 'interrupts' property, so leave it as optional.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221125220903.8632-1-samuel@sholland.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Samuel Holland and committed by
Jonathan Cameron
c9d8b868 866a1389

+55
+55
Documentation/devicetree/bindings/iio/adc/ti,adc081c.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/ti,adc081c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI Single-channel I2C ADCs 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + - Lars-Peter Clausen <lars@metafoo.de> 12 + 13 + description: | 14 + Single-channel ADC supporting 8, 10, or 12-bit samples and high/low alerts. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - ti,adc081c 20 + - ti,adc101c 21 + - ti,adc121c 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + vref-supply: 30 + description: 31 + Regulator for the combined power supply and voltage reference 32 + 33 + "#io-channel-cells": 34 + const: 1 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - vref-supply 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + i2c { 46 + #address-cells = <1>; 47 + #size-cells = <0>; 48 + 49 + adc@52 { 50 + compatible = "ti,adc081c"; 51 + reg = <0x52>; 52 + vref-supply = <&reg_2p5v>; 53 + }; 54 + }; 55 + ...