drivers: dac: Added driver for TI DACx0508

TI's DACx0508 is a DAC chip that supports SPI.
Gain and Reference can be set through the register.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
Kwon Tae-young 2020-06-04 12:24:40 +09:00 committed by Carles Cufí
commit 2aeed81202
9 changed files with 603 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2020 M2I Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DAC_DACX0508_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_DAC_DACX0508_H_
#define DACX0508_REF_INTERNAL_1 0x00
#define DACX0508_REF_INTERNAL_1_2 0x01
#define DACX0508_REF_EXTERNAL_1 0x02
#define DACX0508_REF_EXTERNAL_1_2 0x03
#define DACX0508_CHANNEL_GAIN_1 0x00
#define DACX0508_CHANNEL_GAIN_2 0x01
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DAC_DACX0508_H_ */