1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/adi,ad5421.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: Analog Devices AD5421 DAC 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10354d7675SEmmanuel Vadot - Lars-Peter Clausen <lars@metafoo.de> 11354d7675SEmmanuel Vadot - Jonathan Cameron <jic23@kernel.org> 12354d7675SEmmanuel Vadot 13354d7675SEmmanuel Vadotdescription: | 14354d7675SEmmanuel Vadot AD5421 is designed for us in loop-powered, 4 mA to 20 mA smart transmitter 15354d7675SEmmanuel Vadot applications. It provides a 16-bit DAC, current amplifier, voltage regulator 16354d7675SEmmanuel Vadot to drive the loop and a voltage reference. 17354d7675SEmmanuel Vadot 18354d7675SEmmanuel Vadotproperties: 19354d7675SEmmanuel Vadot compatible: 20354d7675SEmmanuel Vadot const: adi,ad5421 21354d7675SEmmanuel Vadot 22354d7675SEmmanuel Vadot reg: 23354d7675SEmmanuel Vadot maxItems: 1 24354d7675SEmmanuel Vadot 25354d7675SEmmanuel Vadot interrupts: 26354d7675SEmmanuel Vadot maxItems: 1 27354d7675SEmmanuel Vadot description: Fault signal. 28354d7675SEmmanuel Vadot 29354d7675SEmmanuel Vadotrequired: 30354d7675SEmmanuel Vadot - compatible 31354d7675SEmmanuel Vadot - reg 32354d7675SEmmanuel Vadot 33*7ef62cebSEmmanuel VadotallOf: 34*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 35*7ef62cebSEmmanuel Vadot 36*7ef62cebSEmmanuel VadotunevaluatedProperties: false 37354d7675SEmmanuel Vadot 38354d7675SEmmanuel Vadotexamples: 39354d7675SEmmanuel Vadot - | 40354d7675SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 41354d7675SEmmanuel Vadot spi { 42354d7675SEmmanuel Vadot #address-cells = <1>; 43354d7675SEmmanuel Vadot #size-cells = <0>; 44354d7675SEmmanuel Vadot 45354d7675SEmmanuel Vadot dac@0 { 46354d7675SEmmanuel Vadot compatible = "adi,ad5421"; 47354d7675SEmmanuel Vadot reg = <0>; 48354d7675SEmmanuel Vadot spi-max-frequency = <30000000>; 49354d7675SEmmanuel Vadot interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; 50354d7675SEmmanuel Vadot }; 51354d7675SEmmanuel Vadot }; 52354d7675SEmmanuel Vadot... 53