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:ti,dac5571 yaml conversion.

A few tweaks in this conversion.
* The example didn't have the I2C address of 4C in the node name so
fixed that.
* The reference voltage in the txt file is an optional binding, but
the driver is making use of it to provide the scaling of the output
channels. As such I have made it required going forwards.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Sean Nyekjaer <sean@geanix.com>
Link: https://lore.kernel.org/r/20201031134110.724233-13-jic23@kernel.org

+52 -24
-24
Documentation/devicetree/bindings/iio/dac/ti,dac5571.txt
··· 1 - * Texas Instruments DAC5571 Family 2 - 3 - Required properties: 4 - - compatible: Should contain 5 - "ti,dac5571" 6 - "ti,dac6571" 7 - "ti,dac7571" 8 - "ti,dac5574" 9 - "ti,dac6574" 10 - "ti,dac7574" 11 - "ti,dac5573" 12 - "ti,dac6573" 13 - "ti,dac7573" 14 - - reg: Should contain the DAC I2C address 15 - 16 - Optional properties: 17 - - vref-supply: The regulator supply for DAC reference voltage 18 - 19 - Example: 20 - dac@0 { 21 - compatible = "ti,dac5571"; 22 - reg = <0x4C>; 23 - vref-supply = <&vdd_supply>; 24 - };
+52
Documentation/devicetree/bindings/iio/dac/ti,dac5571.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/ti,dac5571.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments DAC5571 Family 8 + 9 + maintainers: 10 + - Sean Nyekjaer <sean@geanix.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ti,dac5571 16 + - ti,dac6571 17 + - ti,dac7571 18 + - ti,dac5574 19 + - ti,dac6574 20 + - ti,dac7574 21 + - ti,dac5573 22 + - ti,dac6573 23 + - ti,dac7573 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + vref-supply: 29 + description: 30 + Reference voltage must be supplied to establish the scaling of the 31 + output voltage. 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - vref-supply 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + i2c { 43 + #address-cells = <1>; 44 + #size-cells = <0>; 45 + 46 + dac@4c { 47 + compatible = "ti,dac5571"; 48 + reg = <0x4C>; 49 + vref-supply = <&vdd_supply>; 50 + }; 51 + }; 52 + ...