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:
parent
94721b316f
commit
2aeed81202
9 changed files with 603 additions and 0 deletions
17
include/dt-bindings/dac/dacx0508.h
Normal file
17
include/dt-bindings/dac/dacx0508.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue