diff options
author | Jonathan Cameron <[email protected]> | 2023-01-15 17:39:58 +0000 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-01-21 18:00:29 +0000 |
commit | 3b5eea320db5d9d2499accfc1884b4f221cd4223 (patch) | |
tree | f89bd7941a4b39e040d913722833015d0e3aa565 | |
parent | ba56b46d1c6d412ae8c079e67c01a1f7bbd5c079 (diff) |
dt-bindings: iio: dac: Maxim max5522 DAC
Add binding Doc for this SPI DAC.
The driver was perviously posted but was missing the DT binding document.
https://lore.kernel.org/all/[email protected]/
Signed-off-by: Jonathan Cameron <[email protected]>
Reviewed-by: Angelo Dureghello <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | Documentation/devicetree/bindings/iio/dac/maxim,max5522.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/dac/maxim,max5522.yaml b/Documentation/devicetree/bindings/iio/dac/maxim,max5522.yaml new file mode 100644 index 000000000000..24830f56c501 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/maxim,max5522.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/maxim,max5522.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated MAX5522 Dual 10-bit Voltage-Output SPI DACs + +maintainers: + - Angelo Dureghello <[email protected]> + - Jonathan Cameron <[email protected]> + +description: | + Datasheet available at: + https://www.analog.com/en/products/max5522.html + +properties: + compatible: + const: maxim,max5522 + + reg: + maxItems: 1 + + vdd-supply: true + vrefin-supply: true + +required: + - compatible + - reg + - vrefin-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "maxim,max5522"; + reg = <0>; + vrefin-supply = <&vref>; + }; + }; +... |