]> git.openpandora.org Git - pandora-kernel.git/commitdiff
iio: adc: exynos_adc: Add support for s3c24xx ADC
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 28 Jul 2014 12:44:00 +0000 (13:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 Aug 2014 16:48:44 +0000 (17:48 +0100)
This patch add support for s3c2410/s3c2416/s3c2440/s3c2443 ADC. The s3c24xx
is alomost same as ADCv1. But, There are a little difference as following:
- ADCMUX register address
- ADCDAT mask (10 bit or 12 bit ADC resolution according to SoC version)
- s3c24xx/s3c64xx has not included ADC_PHY enable register

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
drivers/iio/adc/Kconfig
drivers/iio/adc/exynos_adc.c

index d3dad46c97ddcb17590b7ccfc669e9bb149155fe..709efaa30841d8e92b232ebb0ed61b4eccccff88 100644 (file)
@@ -11,15 +11,25 @@ New driver handles the following
 
 Required properties:
 - compatible:          Must be "samsung,exynos-adc-v1"
-                               for exynos4412/5250 controllers.
+                               for exynos4412/5250 and s5pv210 controllers.
                        Must be "samsung,exynos-adc-v2" for
                                future controllers.
                        Must be "samsung,exynos3250-adc" for
                                controllers compatible with ADC of Exynos3250.
+                       Must be "samsung,s3c2410-adc" for
+                               the ADC in s3c2410 and compatibles
+                       Must be "samsung,s3c2416-adc" for
+                               the ADC in s3c2416 and compatibles
+                       Must be "samsung,s3c2440-adc" for
+                               the ADC in s3c2440 and compatibles
+                       Must be "samsung,s3c2443-adc" for
+                               the ADC in s3c2443 and compatibles
                        Must be "samsung,s3c6410-adc" for
                                the ADC in s3c6410 and compatibles
-- reg:                 Contains ADC register address range (base address and
-                       length) and the address of the phy enable register.
+- reg:                 List of ADC register address range
+                       - The base address and range of ADC register
+                       - The base address and range of ADC_PHY register (every
+                         SoC except for s3c24xx/s3c64xx ADC)
 - interrupts:          Contains the interrupt information for the timer. The
                        format is being dependent on which interrupt controller
                        the Samsung device uses.
Simple merge
Simple merge