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: dac: adi,ad5421: Add missing binding document.

This is documented what is currently the case. There are a number
of things that could be added, but I don't feel the binding elements
are obvious enough to document without a driver implementation to
verify they are good choices.

These include
* Range
* Regulators, both input and potentially output (if the loop being
driven is ever described).

I've listed Lars and myself as maintainers of the binding, but if
anyone else wants to be added they would be most welcome!

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210627163244.1090296-2-jic23@kernel.org

+51
+51
Documentation/devicetree/bindings/iio/dac/adi,ad5421.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/dac/adi,ad5421.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Analog Devices AD5421 DAC 8 + 9 + maintainers: 10 + - Lars-Peter Clausen <lars@metafoo.de> 11 + - Jonathan Cameron <jic23@kernel.org> 12 + 13 + description: | 14 + AD5421 is designed for us in loop-powered, 4 mA to 20 mA smart transmitter 15 + applications. It provides a 16-bit DAC, current amplifier, voltage regulator 16 + to drive the loop and a voltage reference. 17 + 18 + properties: 19 + compatible: 20 + const: adi,ad5421 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + interrupts: 26 + maxItems: 1 27 + description: Fault signal. 28 + 29 + spi-max-frequency: true 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/interrupt-controller/irq.h> 40 + spi { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + dac@0 { 45 + compatible = "adi,ad5421"; 46 + reg = <0>; 47 + spi-max-frequency = <30000000>; 48 + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; 49 + }; 50 + }; 51 + ...