1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * AD5721, AD5721R, AD5761, AD5761R, Voltage O 3 * AD5721, AD5721R, AD5761, AD5761R, Voltage Output Digital to Analog Converter 4 * 4 * 5 * Copyright 2016 Qtechnology A/S 5 * Copyright 2016 Qtechnology A/S 6 * 2016 Ricardo Ribalda <ribalda@kernel.org> !! 6 * 2016 Ricardo Ribalda <ricardo.ribalda@gmail.com> 7 */ 7 */ 8 #ifndef __LINUX_PLATFORM_DATA_AD5761_H__ 8 #ifndef __LINUX_PLATFORM_DATA_AD5761_H__ 9 #define __LINUX_PLATFORM_DATA_AD5761_H__ 9 #define __LINUX_PLATFORM_DATA_AD5761_H__ 10 10 11 /** 11 /** 12 * enum ad5761_voltage_range - Voltage range t 12 * enum ad5761_voltage_range - Voltage range the AD5761 is configured for. 13 * @AD5761_VOLTAGE_RANGE_M10V_10V: -10V to 1 13 * @AD5761_VOLTAGE_RANGE_M10V_10V: -10V to 10V 14 * @AD5761_VOLTAGE_RANGE_0V_10V: 0V to 1 14 * @AD5761_VOLTAGE_RANGE_0V_10V: 0V to 10V 15 * @AD5761_VOLTAGE_RANGE_M5V_5V: -5V to 15 * @AD5761_VOLTAGE_RANGE_M5V_5V: -5V to 5V 16 * @AD5761_VOLTAGE_RANGE_0V_5V: 0V to 16 * @AD5761_VOLTAGE_RANGE_0V_5V: 0V to 5V 17 * @AD5761_VOLTAGE_RANGE_M2V5_7V5: -2.5V to 7. 17 * @AD5761_VOLTAGE_RANGE_M2V5_7V5: -2.5V to 7.5V 18 * @AD5761_VOLTAGE_RANGE_M3V_3V: -3V to 18 * @AD5761_VOLTAGE_RANGE_M3V_3V: -3V to 3V 19 * @AD5761_VOLTAGE_RANGE_0V_16V: 0V to 1 19 * @AD5761_VOLTAGE_RANGE_0V_16V: 0V to 16V 20 * @AD5761_VOLTAGE_RANGE_0V_20V: 0V to 2 20 * @AD5761_VOLTAGE_RANGE_0V_20V: 0V to 20V 21 */ 21 */ 22 22 23 enum ad5761_voltage_range { 23 enum ad5761_voltage_range { 24 AD5761_VOLTAGE_RANGE_M10V_10V, 24 AD5761_VOLTAGE_RANGE_M10V_10V, 25 AD5761_VOLTAGE_RANGE_0V_10V, 25 AD5761_VOLTAGE_RANGE_0V_10V, 26 AD5761_VOLTAGE_RANGE_M5V_5V, 26 AD5761_VOLTAGE_RANGE_M5V_5V, 27 AD5761_VOLTAGE_RANGE_0V_5V, 27 AD5761_VOLTAGE_RANGE_0V_5V, 28 AD5761_VOLTAGE_RANGE_M2V5_7V5, 28 AD5761_VOLTAGE_RANGE_M2V5_7V5, 29 AD5761_VOLTAGE_RANGE_M3V_3V, 29 AD5761_VOLTAGE_RANGE_M3V_3V, 30 AD5761_VOLTAGE_RANGE_0V_16V, 30 AD5761_VOLTAGE_RANGE_0V_16V, 31 AD5761_VOLTAGE_RANGE_0V_20V, 31 AD5761_VOLTAGE_RANGE_0V_20V, 32 }; 32 }; 33 33 34 /** 34 /** 35 * struct ad5761_platform_data - AD5761 DAC dr 35 * struct ad5761_platform_data - AD5761 DAC driver platform data 36 * @voltage_range: Voltage range the AD5761 is 36 * @voltage_range: Voltage range the AD5761 is configured for 37 */ 37 */ 38 38 39 struct ad5761_platform_data { 39 struct ad5761_platform_data { 40 enum ad5761_voltage_range voltage_rang 40 enum ad5761_voltage_range voltage_range; 41 }; 41 }; 42 42 43 #endif 43 #endif 44 44
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.