ad5761.h (1266B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * AD5721, AD5721R, AD5761, AD5761R, Voltage Output Digital to Analog Converter 4 * 5 * Copyright 2016 Qtechnology A/S 6 * 2016 Ricardo Ribalda <ribalda@kernel.org> 7 */ 8#ifndef __LINUX_PLATFORM_DATA_AD5761_H__ 9#define __LINUX_PLATFORM_DATA_AD5761_H__ 10 11/** 12 * enum ad5761_voltage_range - Voltage range the AD5761 is configured for. 13 * @AD5761_VOLTAGE_RANGE_M10V_10V: -10V to 10V 14 * @AD5761_VOLTAGE_RANGE_0V_10V: 0V to 10V 15 * @AD5761_VOLTAGE_RANGE_M5V_5V: -5V to 5V 16 * @AD5761_VOLTAGE_RANGE_0V_5V: 0V to 5V 17 * @AD5761_VOLTAGE_RANGE_M2V5_7V5: -2.5V to 7.5V 18 * @AD5761_VOLTAGE_RANGE_M3V_3V: -3V to 3V 19 * @AD5761_VOLTAGE_RANGE_0V_16V: 0V to 16V 20 * @AD5761_VOLTAGE_RANGE_0V_20V: 0V to 20V 21 */ 22 23enum ad5761_voltage_range { 24 AD5761_VOLTAGE_RANGE_M10V_10V, 25 AD5761_VOLTAGE_RANGE_0V_10V, 26 AD5761_VOLTAGE_RANGE_M5V_5V, 27 AD5761_VOLTAGE_RANGE_0V_5V, 28 AD5761_VOLTAGE_RANGE_M2V5_7V5, 29 AD5761_VOLTAGE_RANGE_M3V_3V, 30 AD5761_VOLTAGE_RANGE_0V_16V, 31 AD5761_VOLTAGE_RANGE_0V_20V, 32}; 33 34/** 35 * struct ad5761_platform_data - AD5761 DAC driver platform data 36 * @voltage_range: Voltage range the AD5761 is configured for 37 */ 38 39struct ad5761_platform_data { 40 enum ad5761_voltage_range voltage_range; 41}; 42 43#endif