Re: [PATCH 1/3] iio: adc: ltc2496: provide device tree binding document

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2019-11-11 at 22:40 +0100, Uwe Kleine-König wrote:
> The ADC only requires the standard stuff for spi devices and a reference
> voltage.
> 

Hey,

Thanks for the patch.

DT bindings must be in YAML format.
But in this case, you can probably extend the existing
"Documentation/devicetree/bindings/iio/adc/ltc2497.txt".

You don't need to create new file altogether.

> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> ---
>  .../devicetree/bindings/iio/adc/ltc2496.txt       | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/adc/ltc2496.txt
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/ltc2496.txt
> b/Documentation/devicetree/bindings/iio/adc/ltc2496.txt
> new file mode 100644
> index 000000000000..d44ab45b26ea
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/ltc2496.txt
> @@ -0,0 +1,15 @@
> +* Linear Technology / Analog Devices LTC2496 ADC
> +
> +Required properties:
> + - compatible: Must be "lltc,ltc2496"
> + - vref-supply: The regulator supply for ADC reference voltage
> + - further properties required for spi device nodes according to
> +   Documentation/devicetree/bindings/spi/spi-controller.yaml
> +
> +Example:
> +	ltc2497: adc@76 {
> +		compatible = "lltc,ltc2496";
> +		reg = <0>;
> +		vref-supply = <&ltc249x_reg>;
> +		spi-max-frequency = <2000000>;
> +	};




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux