xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/adi,ad8460.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*5f62a964SEmmanuel Vadot# Copyright 2024 Analog Devices Inc.
3*5f62a964SEmmanuel Vadot%YAML 1.2
4*5f62a964SEmmanuel Vadot---
5*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/adi,ad8460.yaml#
6*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*5f62a964SEmmanuel Vadot
8*5f62a964SEmmanuel Vadottitle: Analog Devices AD8460 DAC
9*5f62a964SEmmanuel Vadot
10*5f62a964SEmmanuel Vadotmaintainers:
11*5f62a964SEmmanuel Vadot  - Mariel Tinaco <mariel.tinaco@analog.com>
12*5f62a964SEmmanuel Vadot
13*5f62a964SEmmanuel Vadotdescription: |
14*5f62a964SEmmanuel Vadot  Analog Devices AD8460 110 V High Voltage, 1 A High Current,
15*5f62a964SEmmanuel Vadot  Arbitrary Waveform Generator with Integrated 14-Bit High Speed DAC
16*5f62a964SEmmanuel Vadot  https://www.analog.com/media/en/technical-documentation/data-sheets/ad8460.pdf
17*5f62a964SEmmanuel Vadot
18*5f62a964SEmmanuel Vadotproperties:
19*5f62a964SEmmanuel Vadot  compatible:
20*5f62a964SEmmanuel Vadot    enum:
21*5f62a964SEmmanuel Vadot      - adi,ad8460
22*5f62a964SEmmanuel Vadot
23*5f62a964SEmmanuel Vadot  reg:
24*5f62a964SEmmanuel Vadot    maxItems: 1
25*5f62a964SEmmanuel Vadot
26*5f62a964SEmmanuel Vadot  clocks:
27*5f62a964SEmmanuel Vadot    maxItems: 1
28*5f62a964SEmmanuel Vadot
29*5f62a964SEmmanuel Vadot  dmas:
30*5f62a964SEmmanuel Vadot    maxItems: 1
31*5f62a964SEmmanuel Vadot
32*5f62a964SEmmanuel Vadot  dma-names:
33*5f62a964SEmmanuel Vadot    items:
34*5f62a964SEmmanuel Vadot      - const: tx
35*5f62a964SEmmanuel Vadot
36*5f62a964SEmmanuel Vadot  spi-max-frequency:
37*5f62a964SEmmanuel Vadot    maximum: 20000000
38*5f62a964SEmmanuel Vadot
39*5f62a964SEmmanuel Vadot  hvcc-supply:
40*5f62a964SEmmanuel Vadot    description: Positive high voltage power supply line
41*5f62a964SEmmanuel Vadot
42*5f62a964SEmmanuel Vadot  hvee-supply:
43*5f62a964SEmmanuel Vadot    description: Negative high voltage power supply line
44*5f62a964SEmmanuel Vadot
45*5f62a964SEmmanuel Vadot  vcc-5v-supply:
46*5f62a964SEmmanuel Vadot    description: Low voltage power supply
47*5f62a964SEmmanuel Vadot
48*5f62a964SEmmanuel Vadot  vref-5v-supply:
49*5f62a964SEmmanuel Vadot    description: Reference voltage for analog low voltage
50*5f62a964SEmmanuel Vadot
51*5f62a964SEmmanuel Vadot  dvdd-3p3v-supply:
52*5f62a964SEmmanuel Vadot    description: Digital supply bypass
53*5f62a964SEmmanuel Vadot
54*5f62a964SEmmanuel Vadot  avdd-3p3v-supply:
55*5f62a964SEmmanuel Vadot    description: Analog supply bypass
56*5f62a964SEmmanuel Vadot
57*5f62a964SEmmanuel Vadot  refio-1p2v-supply:
58*5f62a964SEmmanuel Vadot    description: Drive voltage in the range of 1.2V maximum to as low as
59*5f62a964SEmmanuel Vadot      low as 0.12V through the REF_IO pin to adjust full scale output span
60*5f62a964SEmmanuel Vadot
61*5f62a964SEmmanuel Vadot  adi,external-resistor-ohms:
62*5f62a964SEmmanuel Vadot    description: Specify value of external resistor connected to FS_ADJ pin
63*5f62a964SEmmanuel Vadot      to establish internal HVDAC's reference current I_REF
64*5f62a964SEmmanuel Vadot    minimum: 2000
65*5f62a964SEmmanuel Vadot    maximum: 20000
66*5f62a964SEmmanuel Vadot    default: 2000
67*5f62a964SEmmanuel Vadot
68*5f62a964SEmmanuel Vadot  adi,range-microvolt:
69*5f62a964SEmmanuel Vadot    description: Voltage output range specified as <minimum, maximum>
70*5f62a964SEmmanuel Vadot    items:
71*5f62a964SEmmanuel Vadot      - minimum: -55000000
72*5f62a964SEmmanuel Vadot        maximum: 0
73*5f62a964SEmmanuel Vadot        default: 0
74*5f62a964SEmmanuel Vadot      - minimum: 0
75*5f62a964SEmmanuel Vadot        maximum: 55000000
76*5f62a964SEmmanuel Vadot        default: 0
77*5f62a964SEmmanuel Vadot
78*5f62a964SEmmanuel Vadot  adi,range-microamp:
79*5f62a964SEmmanuel Vadot    description: Current output range specified as <minimum, maximum>
80*5f62a964SEmmanuel Vadot    items:
81*5f62a964SEmmanuel Vadot      - minimum: -1000000
82*5f62a964SEmmanuel Vadot        maximum: 0
83*5f62a964SEmmanuel Vadot        default: 0
84*5f62a964SEmmanuel Vadot      - minimum: 0
85*5f62a964SEmmanuel Vadot        maximum: 1000000
86*5f62a964SEmmanuel Vadot        default: 0
87*5f62a964SEmmanuel Vadot
88*5f62a964SEmmanuel Vadot  adi,max-millicelsius:
89*5f62a964SEmmanuel Vadot    description: Overtemperature threshold
90*5f62a964SEmmanuel Vadot    minimum: 0
91*5f62a964SEmmanuel Vadot    maximum: 150000
92*5f62a964SEmmanuel Vadot    default: 0
93*5f62a964SEmmanuel Vadot
94*5f62a964SEmmanuel Vadot  shutdown-reset-gpios:
95*5f62a964SEmmanuel Vadot    description: Corresponds to SDN_RESET pin. To exit shutdown
96*5f62a964SEmmanuel Vadot      or sleep mode, pulse SDN_RESET HIGH, then leave LOW.
97*5f62a964SEmmanuel Vadot    maxItems: 1
98*5f62a964SEmmanuel Vadot
99*5f62a964SEmmanuel Vadot  reset-gpios:
100*5f62a964SEmmanuel Vadot    description: Manual Power On Reset (POR). Pull this GPIO pin
101*5f62a964SEmmanuel Vadot      LOW and then HIGH to reset all digital registers to default
102*5f62a964SEmmanuel Vadot    maxItems: 1
103*5f62a964SEmmanuel Vadot
104*5f62a964SEmmanuel Vadot  shutdown-gpios:
105*5f62a964SEmmanuel Vadot    description: Corresponds to SDN_IO pin. Shutdown may be
106*5f62a964SEmmanuel Vadot      initiated by the user, by pulsing SDN_IO high. To exit shutdown,
107*5f62a964SEmmanuel Vadot      pulse SDN_IO low, then float.
108*5f62a964SEmmanuel Vadot    maxItems: 1
109*5f62a964SEmmanuel Vadot
110*5f62a964SEmmanuel Vadotrequired:
111*5f62a964SEmmanuel Vadot  - compatible
112*5f62a964SEmmanuel Vadot  - reg
113*5f62a964SEmmanuel Vadot  - clocks
114*5f62a964SEmmanuel Vadot  - hvcc-supply
115*5f62a964SEmmanuel Vadot  - hvee-supply
116*5f62a964SEmmanuel Vadot  - vcc-5v-supply
117*5f62a964SEmmanuel Vadot  - vref-5v-supply
118*5f62a964SEmmanuel Vadot  - dvdd-3p3v-supply
119*5f62a964SEmmanuel Vadot  - avdd-3p3v-supply
120*5f62a964SEmmanuel Vadot  - refio-1p2v-supply
121*5f62a964SEmmanuel Vadot
122*5f62a964SEmmanuel VadotallOf:
123*5f62a964SEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
124*5f62a964SEmmanuel Vadot
125*5f62a964SEmmanuel VadotunevaluatedProperties: false
126*5f62a964SEmmanuel Vadot
127*5f62a964SEmmanuel Vadotexamples:
128*5f62a964SEmmanuel Vadot  - |
129*5f62a964SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
130*5f62a964SEmmanuel Vadot
131*5f62a964SEmmanuel Vadot    spi {
132*5f62a964SEmmanuel Vadot        #address-cells = <1>;
133*5f62a964SEmmanuel Vadot        #size-cells = <0>;
134*5f62a964SEmmanuel Vadot
135*5f62a964SEmmanuel Vadot        dac@0 {
136*5f62a964SEmmanuel Vadot            compatible = "adi,ad8460";
137*5f62a964SEmmanuel Vadot            reg = <0>;
138*5f62a964SEmmanuel Vadot            spi-max-frequency = <8000000>;
139*5f62a964SEmmanuel Vadot
140*5f62a964SEmmanuel Vadot            dmas = <&tx_dma 0>;
141*5f62a964SEmmanuel Vadot            dma-names = "tx";
142*5f62a964SEmmanuel Vadot
143*5f62a964SEmmanuel Vadot            shutdown-reset-gpios = <&gpio 86 GPIO_ACTIVE_HIGH>;
144*5f62a964SEmmanuel Vadot            reset-gpios = <&gpio 91 GPIO_ACTIVE_LOW>;
145*5f62a964SEmmanuel Vadot            shutdown-gpios = <&gpio 88 GPIO_ACTIVE_HIGH>;
146*5f62a964SEmmanuel Vadot
147*5f62a964SEmmanuel Vadot            clocks = <&sync_ext_clk>;
148*5f62a964SEmmanuel Vadot
149*5f62a964SEmmanuel Vadot            hvcc-supply = <&hvcc>;
150*5f62a964SEmmanuel Vadot            hvee-supply = <&hvee>;
151*5f62a964SEmmanuel Vadot            vcc-5v-supply = <&vcc_5>;
152*5f62a964SEmmanuel Vadot            vref-5v-supply = <&vref_5>;
153*5f62a964SEmmanuel Vadot            dvdd-3p3v-supply = <&dvdd_3_3>;
154*5f62a964SEmmanuel Vadot            avdd-3p3v-supply = <&avdd_3_3>;
155*5f62a964SEmmanuel Vadot            refio-1p2v-supply = <&refio_1_2>;
156*5f62a964SEmmanuel Vadot
157*5f62a964SEmmanuel Vadot            adi,external-resistor-ohms = <2000>;
158*5f62a964SEmmanuel Vadot            adi,range-microvolt = <(-40000000) 40000000>;
159*5f62a964SEmmanuel Vadot            adi,range-microamp = <0 50000>;
160*5f62a964SEmmanuel Vadot            adi,max-millicelsius = <50000>;
161*5f62a964SEmmanuel Vadot        };
162*5f62a964SEmmanuel Vadot    };
163*5f62a964SEmmanuel Vadot
164*5f62a964SEmmanuel Vadot...
165