Path: blob/master/Documentation/devicetree/bindings/iio/dac/adi,max22007.yaml
121847 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/adi,max22007.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices MAX22007 DAC78maintainers:9- Janani Sunil <janani.sunil@analog.com>1011description:12The MAX22007 is a quad-channel, 12-bit digital-to-analog converter (DAC)13with integrated precision output amplifiers and current output capability.14Each channel can be independently configured for voltage or current output.15Datasheet available at https://www.analog.com/en/products/max22007.html1617$ref: /schemas/spi/spi-peripheral-props.yaml#1819properties:20compatible:21const: adi,max220072223reg:24maxItems: 12526spi-max-frequency:27maximum: 5000002829'#address-cells':30const: 13132'#size-cells':33const: 03435vdd-supply:36description: Low-Voltage Power Supply from +2.7V to +5.5V.3738hvdd-supply:39description:40Positive High-Voltage Power Supply from +8V to (HVSS +24V) for41the Output Channels.4243hvss-supply:44description:45Optional Negative High-Voltage Power Supply from -2V to 0V for the Output46Channels. For most applications HVSS can be connected to GND (0V), but for47applications requiring output down to true 0V or 0mA, connect to a -2V supply.4849reset-gpios:50maxItems: 151description:52Active low GPIO.5354patternProperties:55"^channel@[0-3]$":56$ref: /schemas/iio/dac/dac.yaml#57type: object58description:59Represents the external channels which are connected to the DAC.6061properties:62reg:63description: Channel number64items:65minimum: 066maximum: 36768adi,ch-func:69description:70Channel output type. Use CH_FUNC_VOLTAGE_OUTPUT for voltage71output or CH_FUNC_CURRENT_OUTPUT for current output.72$ref: /schemas/types.yaml#/definitions/uint3273enum: [1, 2]7475required:76- reg77- adi,ch-func7879unevaluatedProperties: false8081required:82- compatible83- reg84- vdd-supply85- hvdd-supply8687unevaluatedProperties: false8889examples:90- |91#include <dt-bindings/gpio/gpio.h>92#include <dt-bindings/iio/addac/adi,ad74413r.h>9394spi {95#address-cells = <1>;96#size-cells = <0>;9798dac@0 {99compatible = "adi,max22007";100reg = <0>;101spi-max-frequency = <500000>;102reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;103vdd-supply = <&vdd_reg>;104hvdd-supply = <&hvdd_reg>;105#address-cells = <1>;106#size-cells = <0>;107108channel@0 {109reg = <0>;110adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;111};112113channel@1 {114reg = <1>;115adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;116};117};118};119...120121122