xref: /openbmc/u-boot/drivers/adc/Kconfig (revision a466ecec483a94ac5c66d3ce6793e1575f333d23)
15decbf53SPrzemyslaw Marczakconfig ADC
25decbf53SPrzemyslaw Marczak	bool "Enable ADC drivers using Driver Model"
35decbf53SPrzemyslaw Marczak	help
45decbf53SPrzemyslaw Marczak	  This enables ADC API for drivers, which allows driving ADC features
55decbf53SPrzemyslaw Marczak	  by single and multi-channel methods for:
65decbf53SPrzemyslaw Marczak	  - start/stop/get data for conversion of a single-channel selected by
75decbf53SPrzemyslaw Marczak	    a number or multi-channels selected by a bitmask
85decbf53SPrzemyslaw Marczak	  - get data mask (ADC resolution)
95decbf53SPrzemyslaw Marczak	  ADC reference Voltage supply options:
105decbf53SPrzemyslaw Marczak	  - methods for get Vdd/Vss reference Voltage values with polarity
115decbf53SPrzemyslaw Marczak	  - support supply's phandle with auto-enable
125decbf53SPrzemyslaw Marczak	  - supply polarity setting in fdt
133b3ad901SPrzemyslaw Marczak
143b3ad901SPrzemyslaw Marczakconfig ADC_EXYNOS
153b3ad901SPrzemyslaw Marczak	bool "Enable Exynos 54xx ADC driver"
163b3ad901SPrzemyslaw Marczak	help
173b3ad901SPrzemyslaw Marczak	  This enables basic driver for Exynos ADC compatible with Exynos54xx.
183b3ad901SPrzemyslaw Marczak	  It provides:
193b3ad901SPrzemyslaw Marczak	  - 10 analog input channels
203b3ad901SPrzemyslaw Marczak	  - 12-bit resolution
213b3ad901SPrzemyslaw Marczak	  - 600 KSPS of sample rate
2208d6300aSPrzemyslaw Marczak
2308d6300aSPrzemyslaw Marczakconfig ADC_SANDBOX
2408d6300aSPrzemyslaw Marczak	bool "Enable Sandbox ADC test driver"
2508d6300aSPrzemyslaw Marczak	help
2608d6300aSPrzemyslaw Marczak	  This enables driver for Sandbox ADC device emulation.
2708d6300aSPrzemyslaw Marczak	  It provides:
2808d6300aSPrzemyslaw Marczak	  - 4 analog input channels
2908d6300aSPrzemyslaw Marczak	  - 16-bit resolution
3008d6300aSPrzemyslaw Marczak	  - single and multi-channel conversion mode
31ae3ed042SDavid Wu
3259beb238SNeil Armstrongconfig SARADC_MESON
3359beb238SNeil Armstrong	bool "Enable Amlogic Meson SARADC driver"
3459beb238SNeil Armstrong	imply REGMAP
3559beb238SNeil Armstrong	help
3659beb238SNeil Armstrong	  This enables driver for Amlogic Meson SARADC.
3759beb238SNeil Armstrong	  It provides:
3859beb238SNeil Armstrong	  - 8 analog input channels
3959beb238SNeil Armstrong	  - 1O or 12 bits resolution
4059beb238SNeil Armstrong	  - Up to 1MSPS of sample rate
4159beb238SNeil Armstrong
42ae3ed042SDavid Wuconfig SARADC_ROCKCHIP
43ae3ed042SDavid Wu	bool "Enable Rockchip SARADC driver"
44ae3ed042SDavid Wu	help
45ae3ed042SDavid Wu	  This enables driver for Rockchip SARADC.
46ae3ed042SDavid Wu	  It provides:
47ae3ed042SDavid Wu	  - 2~6 analog input channels
48ae3ed042SDavid Wu	  - 1O or 12 bits resolution
49ae3ed042SDavid Wu	  - Up to 1MSPS of sample rate
50*a466ececSFabrice Gasnier
51*a466ececSFabrice Gasnierconfig STM32_ADC
52*a466ececSFabrice Gasnier	bool "Enable STMicroelectronics STM32 ADC driver"
53*a466ececSFabrice Gasnier	depends on ADC && (STM32H7 || ARCH_STM32MP)
54*a466ececSFabrice Gasnier	help
55*a466ececSFabrice Gasnier	  This enables driver for STMicroelectronics STM32 analog-to-digital
56*a466ececSFabrice Gasnier	  converter (ADC).
57*a466ececSFabrice Gasnier	  A STM32 ADC block can be composed of several individual ADCs.
58*a466ececSFabrice Gasnier	  Each has its own private registers, but shares some resources:
59*a466ececSFabrice Gasnier	  - clock selection and prescaler
60*a466ececSFabrice Gasnier	  - voltage reference
61*a466ececSFabrice Gasnier	  - common registers area.
62*a466ececSFabrice Gasnier	  STM32 ADC driver is composed of:
63*a466ececSFabrice Gasnier	  - core driver to deal with common resources
64*a466ececSFabrice Gasnier	  - child driver to deal with individual ADC resources (declare ADC
65*a466ececSFabrice Gasnier	  device and associated channels, start/stop conversions)
66