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,ad7303 yaml conversion

Converted to maintain the requirement for Vdd-supply as per original file.
It is possible we could relax this requirement to make it at least one
of Vdd-supply and REF-supply. We need to establish the scaling of the
output channel and if REF-supply is provided that is used instead of
Vdd-supply, hence I cannot see why a dummy regulator cannot be used for
Vdd-supply if this happens.

For now, let us keep it simple.

Drop adi,use-external-reference from binding example as no such binding
exists.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20201031134110.724233-18-jic23@kernel.org

+50 -23
-23
Documentation/devicetree/bindings/iio/dac/ad7303.txt
··· 1 - Analog Devices AD7303 DAC device driver 2 - 3 - Required properties: 4 - - compatible: Must be "adi,ad7303" 5 - - reg: SPI chip select number for the device 6 - - spi-max-frequency: Max SPI frequency to use (< 30000000) 7 - - Vdd-supply: Phandle to the Vdd power supply 8 - 9 - Optional properties: 10 - - REF-supply: Phandle to the external reference voltage supply. This should 11 - only be set if there is an external reference voltage connected to the REF 12 - pin. If the property is not set Vdd/2 is used as the reference voltage. 13 - 14 - Example: 15 - 16 - ad7303@4 { 17 - compatible = "adi,ad7303"; 18 - reg = <4>; 19 - spi-max-frequency = <10000000>; 20 - Vdd-supply = <&vdd_supply>; 21 - adi,use-external-reference; 22 - REF-supply = <&vref_supply>; 23 - };
+50
Documentation/devicetree/bindings/iio/dac/adi,ad7303.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,ad7303.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Analog Devices AD7303 DAC 8 + 9 + maintainers: 10 + - Lars-Peter Clausen <lars@metafoo.de> 11 + 12 + properties: 13 + compatible: 14 + const: adi,ad7303 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + Vdd-supply: 20 + description: 21 + Used to calculate output channel scalling if REF-supply not specified. 22 + REF-supply: 23 + description: 24 + If not provided, Vdd/2 is used as the reference voltage. 25 + 26 + spi-max-frequency: 27 + maximum: 30000000 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - Vdd-supply 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + spi { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + dac@4 { 43 + compatible = "adi,ad7303"; 44 + reg = <4>; 45 + spi-max-frequency = <10000000>; 46 + Vdd-supply = <&vdd_supply>; 47 + REF-supply = <&vref_supply>; 48 + }; 49 + }; 50 + ...