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
This commit is contained in:
parent
3eccfe575e
commit
b120365fa6
@ -1,23 +0,0 @@
|
||||
TI DAC7311 device tree bindings
|
||||
|
||||
Required properties:
|
||||
- compatible: must be set to:
|
||||
* "ti,dac7311"
|
||||
* "ti,dac6311"
|
||||
* "ti,dac5311"
|
||||
- reg: spi chip select number for the device
|
||||
- vref-supply: The regulator supply for ADC reference voltage
|
||||
|
||||
Optional properties:
|
||||
- spi-max-frequency: Max SPI frequency to use
|
||||
|
||||
Example:
|
||||
|
||||
spi_master {
|
||||
dac@0 {
|
||||
compatible = "ti,dac7311";
|
||||
reg = <0>; /* CS0 */
|
||||
spi-max-frequency = <1000000>;
|
||||
vref-supply = <&vdd_supply>;
|
||||
};
|
||||
};
|
49
Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml
Normal file
49
Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml
Normal file
@ -0,0 +1,49 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/iio/dac/ti,dac7311.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Texas Instruments DAC5311 and similar SPI DACs
|
||||
|
||||
maintainers:
|
||||
- Charles-Antoine Couret <charles-antoine.couret@essensium.com>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- ti,dac7311
|
||||
- ti,dac6311
|
||||
- ti,dac5311
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
vref-supply:
|
||||
description:
|
||||
Reference voltage must be supplied to establish the scaling of the
|
||||
output voltage.
|
||||
|
||||
spi-max-frequency: true
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- vref-supply
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
spi {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dac@0 {
|
||||
compatible = "ti,dac7311";
|
||||
reg = <0>; /* CS0 */
|
||||
spi-max-frequency = <1000000>;
|
||||
vref-supply = <&vdd_supply>;
|
||||
};
|
||||
};
|
||||
...
|
Loading…
x
Reference in New Issue
Block a user