1# Copyright (c) 2024 Jan Kubiznak <jan.kubiznak@deveritec.com> 2# SPDX-License-Identifier: Apache-2.0 3 4include: [dac-controller.yaml] 5 6properties: 7 "#io-channel-cells": 8 const: 1 9 10 voltage-reference: 11 type: string 12 default: "internal" 13 enum: 14 - "internal" 15 - "external" 16 description: | 17 DAC voltage reference select. 18 - Internal voltage reference - 2.5V (reg: 0). 19 - External voltage reference (reg: 1). 20 The default corresponds to the reset value of the register field. 21 22 gain: 23 type: string 24 default: "gain-1" 25 enum: 26 - "gain-1" 27 - "gain-2" 28 description: | 29 Gain selection bit. 30 - Gain of 1 (reg: 0). 31 - Gain of 2 (reg: 1). 32 The default corresponds to the reset value of the register field. 33 34 power-down-mode: 35 type: string 36 default: "normal" 37 enum: 38 - "normal" 39 - "power-down-1k" 40 - "power-down-100k" 41 - "power-down-3-state" 42 description: | 43 Power-down mode select. 44 - Normal mode (reg: 0). 45 - 1 kOhm output impedance (reg: 1). 46 - 100 kOhm output impedance (reg: 2). 47 - Three-state output impedance (reg: 3). 48 The default corresponds to the reset value of the register field. 49 50io-channel-cells: 51 - output 52