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

Simple conversion from txt to yaml. No significant adjustments.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Link: https://lore.kernel.org/r/20201031134110.724233-16-jic23@kernel.org

+53 -28
-28
Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
··· 1 - * Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter 2 - 3 - The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed 4 - 12-bit monotonicity performance over the industrial temperature range. 5 - Is is programmable through an SPI interface. 6 - 7 - The internal DACs are loaded when the LOADDACS pin is pulled down. 8 - 9 - https://www.ti.com/lit/ds/sbas106/sbas106.pdf 10 - 11 - Required Properties: 12 - - compatible: Should be one of: 13 - "ti,dac7612" 14 - "ti,dac7612u" 15 - "ti,dac7612ub" 16 - - reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt 17 - 18 - Optional Properties: 19 - - ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin. 20 - - spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt 21 - 22 - Example: 23 - 24 - dac@1 { 25 - compatible = "ti,dac7612"; 26 - reg = <0x1>; 27 - ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; 28 - };
+53
Documentation/devicetree/bindings/iio/dac/ti,dac7612.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,dac7612.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments DAC7612 family of DACs 8 + 9 + description: 10 + The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with 11 + guaranteed 12-bit monotonicity performance over the industrial temperature 12 + range. Is is programmable through an SPI interface. 13 + 14 + maintainers: 15 + - Ricardo Ribalda Delgado <ricardo@ribalda.com> 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - ti,dac7612 21 + - ti,dac7612u 22 + - ti,dac7612ub 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + ti,loaddacs-gpios: 28 + description: 29 + DACs are loaded when the pin connected to this GPIO is pulled low. 30 + maxItems: 1 31 + 32 + spi-max-frequency: true 33 + 34 + required: 35 + - compatible 36 + - reg 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/gpio/gpio.h> 43 + spi { 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + 47 + dac@1 { 48 + compatible = "ti,dac7612"; 49 + reg = <0x1>; 50 + ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; 51 + }; 52 + }; 53 + ...