mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 00:04:01 -04:00
Instead of listing directly properties typical for SPI peripherals, reference the spi-peripheral-props.yaml schema. This allows using all properties typical for SPI-connected devices, even these which device bindings author did not tried yet. Remove the spi-* properties which now come via spi-peripheral-props.yaml schema, except for the cases when device schema adds some constraints like maximum frequency. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220816124321.67817-5-krzysztof.kozlowski@linaro.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
77 lines
1.5 KiB
YAML
77 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/dac/adi,ad5686.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Analog Devices AD5360 and similar DACs
|
|
|
|
maintainers:
|
|
- Michael Hennerich <michael.hennerich@analog.com>
|
|
- Jonathan Cameron <jic23@kernel.org>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- description: SPI devices
|
|
enum:
|
|
- adi,ad5310r
|
|
- adi,ad5672r
|
|
- adi,ad5674r
|
|
- adi,ad5676
|
|
- adi,ad5676r
|
|
- adi,ad5679r
|
|
- adi,ad5681r
|
|
- adi,ad5682r
|
|
- adi,ad5683
|
|
- adi,ad5683r
|
|
- adi,ad5684
|
|
- adi,ad5684r
|
|
- adi,ad5685r
|
|
- adi,ad5686
|
|
- adi,ad5686r
|
|
- description: I2C devices
|
|
enum:
|
|
- adi,ad5311r
|
|
- adi,ad5338r
|
|
- adi,ad5671r
|
|
- adi,ad5675r
|
|
- adi,ad5691r
|
|
- adi,ad5692r
|
|
- adi,ad5693
|
|
- adi,ad5693r
|
|
- adi,ad5694
|
|
- adi,ad5694r
|
|
- adi,ad5695r
|
|
- adi,ad5696
|
|
- adi,ad5696r
|
|
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
vcc-supply:
|
|
description: If not supplied the internal reference is used.
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
allOf:
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
dac@0 {
|
|
reg = <0>;
|
|
compatible = "adi,ad5310r";
|
|
vcc-supply = <&dac_vref0>;
|
|
};
|
|
};
|
|
...
|