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

Very simple conversion of this binding from txt to yaml.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Charles-Antoine Couret <charles-antoine.couret@essensium.com>
Link: https://lore.kernel.org/r/20201031134110.724233-14-jic23@kernel.org

+49 -23
-23
Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt
··· 1 - TI DAC7311 device tree bindings 2 - 3 - Required properties: 4 - - compatible: must be set to: 5 - * "ti,dac7311" 6 - * "ti,dac6311" 7 - * "ti,dac5311" 8 - - reg: spi chip select number for the device 9 - - vref-supply: The regulator supply for ADC reference voltage 10 - 11 - Optional properties: 12 - - spi-max-frequency: Max SPI frequency to use 13 - 14 - Example: 15 - 16 - spi_master { 17 - dac@0 { 18 - compatible = "ti,dac7311"; 19 - reg = <0>; /* CS0 */ 20 - spi-max-frequency = <1000000>; 21 - vref-supply = <&vdd_supply>; 22 - }; 23 - };
+49
Documentation/devicetree/bindings/iio/dac/ti,dac7311.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,dac7311.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments DAC5311 and similar SPI DACs 8 + 9 + maintainers: 10 + - Charles-Antoine Couret <charles-antoine.couret@essensium.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ti,dac7311 16 + - ti,dac6311 17 + - ti,dac5311 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + vref-supply: 23 + description: 24 + Reference voltage must be supplied to establish the scaling of the 25 + output voltage. 26 + 27 + spi-max-frequency: true 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - vref-supply 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + spi { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + dac@0 { 43 + compatible = "ti,dac7311"; 44 + reg = <0>; /* CS0 */ 45 + spi-max-frequency = <1000000>; 46 + vref-supply = <&vdd_supply>; 47 + }; 48 + }; 49 + ...