05 Nov, 2014
2 commits
-
The ADC on exynos7 is quite similar to ADCv2. The differences are as
follows:
- exynos7-adc has 8 input channels (as against 10 in ADCv2).
- exynos7 does not include an ADC PHY control register.
- Some ADC_CON2 register bits being used in ADCv2 are listed as
reserved in exynos7-adc. This results in a different init_hw
function for exynos7.Signed-off-by: Abhilash Kesavan
Reviewed-by: Chanwoo Choi
Signed-off-by: Jonathan Cameron -
This patch updates the IIO based ADC driver to use syscon and regmap
APIs to access and use PMU registers instead of remapping the PMU
registers in the driver.Signed-off-by: Naveen Krishna Chatradhi
To: linux-iio@vger.kernel.org
Acked-by: Kukjin Kim
Signed-off-by: Jonathan Cameron
27 Aug, 2014
1 commit
-
This patch removes the .owner field for drivers which use the
platform_driver_register api because this is overriden in
_platform_driver_register.Signed-off-by: Sanjeev Sharma
Signed-off-by: Jonathan Cameron
08 Aug, 2014
2 commits
-
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 registerSigned-off-by: Chanwoo Choi
Acked-by: Arnd Bergmann
Signed-off-by: Jonathan Cameron -
The ADC in s3c64xx is almost the same as exynosv1, but
has a different 'select' method. Adding this here will be
helpful to move over the existing s3c64xx platform from the
legacy plat-samsung/adc driver to the new exynos-adc.Signed-off-by: Arnd Bergmann
Signed-off-by: Chanwoo Choi
Signed-off-by: Jonathan Cameron
24 Jul, 2014
2 commits
-
This patch control special clock for ADC in Exynos series's FSYS block.
If special clock of ADC is registerd on clock list of common clk framework,
Exynos ADC drvier have to control this clock.Exynos3250/Exynos4/Exynos5 has 'adc' clock as following:
- 'adc' clock: bus clock for ADCExynos3250 has additional 'sclk_adc' clock as following:
- 'sclk_adc' clock: special clock for ADC which provide clock to internal ADCExynos 4210/4212/4412 and Exynos5250/5420 has not included 'sclk_adc' clock
in FSYS_BLK. But, Exynos3250 based on Cortex-A7 has only included 'sclk_adc'
clock in FSYS_BLK.Signed-off-by: Chanwoo Choi
Acked-by: Kyungmin Park
Reviewed-by: Tomasz Figa
Acked-by: Arnd Bergmann
Signed-off-by: Jonathan Cameron -
This patchset add 'exynos_adc_data' structure which includes some functions
to control ADC operation and specific data according to ADC version (v1 or v2).Signed-off-by: Chanwoo Choi
Acked-by: Kyungmin Park
Reviewed-by: Naveen Krishna Chatradhi
Reviewed-by: Tomasz Figa
Acked-by: Arnd Bergmann
Signed-off-by: Jonathan Cameron
22 May, 2014
1 commit
-
This resolves the conflicts in the files:
drivers/iio/adc/Kconfig
drivers/staging/rtl8723au/os_dep/usb_ops_linux.cSigned-off-by: Greg Kroah-Hartman
01 May, 2014
4 commits
-
Add reinit_completion() before the wait_for_completion_timeout in
raw_read() call.Signed-off-by: Naveen Krishna Chatradhi
Reviewed-by: Doug Anderson
Signed-off-by: Jonathan Cameron -
Do a soft reset software if a timeout happens.
This is applicable only for ADC_V2.Signed-off-by: Naveen Krishna Chatradhi
Reviewed-by: Doug Anderson
Signed-off-by: Jonathan Cameron -
ADC module on Exynos5 SoCs runs at 600KSPS. At this conversion rate,
waiting for 1000 msecs is wasteful (incase of h/w failure).Hence, reduce the time out to 100msecs and use
wait_for_completion_timeout() instead of
wait_for_completion_interruptible_timeout()Signed-off-by: Naveen Krishna Chatradhi
Reviewed-by: Doug Anderson
Signed-off-by: Jonathan Cameron -
This patch maintains the following order in
probe(), remove(), resume() and suspend() callsregulator enable, clk prepare enable
...
clk disable unprepare, regulator disableWhile at it,
1. enable the regulator before the iio_device_register()
2. handle the return values for enable/disable callsSigned-off-by: Naveen Krishna Ch
Reviewed-by: Doug Anderson
Signed-off-by: Jonathan Cameron
26 Apr, 2014
1 commit
-
Using pdev->dev with device_for_each_child() would iterate over all
of the children of the platform device and delete them.
Thus, causing crashes during module unload.We should be using the indio_dev->dev structure for
registering/unregistering child nodes.Reported-by: Doug Anderson
Signed-off-by: Naveen Krishna Ch
Reviewed-by: Doug Anderson
Tested-by: Doug Anderson
Signed-off-by: Jonathan Cameron
04 Aug, 2013
1 commit
-
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Cc: Naveen Krishna Chatradhi
Signed-off-by: Jonathan Cameron
27 May, 2013
1 commit
-
We want the changes here, and we resolve the merge conflict that was
happening in the nvec_kbd.c file.Signed-off-by: Greg Kroah-Hartman
23 May, 2013
2 commits
-
Use the newly introduced devm_ioremap_resource() instead of
devm_request_and_ioremap() which provides more consistent error handling.Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron -
The exynos_adc device structure was wrongly extracted from the dev*
correcting the same.Using the regular conversion of
struct device* -> struct platform_device* -> struct exynos_adc* seems wrong.
Instead we should be doing
struct device* -> struct iio_dev* -> struct exynos_adc*Signed-off-by: Naveen Krishna Chatradhi
Reviewed-by: Doug Anderson
Signed-off-by: Jonathan Cameron
29 Mar, 2013
1 commit
-
exynos_adc is a DT only driver and exynos_adc_match table is always
compiled in. Hence remove the macro.Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron
18 Mar, 2013
2 commits
-
Without this change the exynos adc controller needed to have its phy
enabled in some out-of-driver C code. Add support for specifying the
phy enable register by listing it in the reg list.Signed-off-by: Doug Anderson
Tested-by: Naveen Krishna Chatradhi
Signed-off-by: Jonathan Cameron -
The original info_mask is going away in favour of the broken out versions.
Signed-off-by: Jonathan Cameron
Acked-by: Naveen Krishna Chatradhi
16 Mar, 2013
1 commit
-
This patch adds New driver to support:
1. Supports ADC IF found on EXYNOS4412/EXYNOS5250
and future SoCs from Samsung
2. Add ADC driver under iio/adc framework
3. Also adds the Documentation for device tree bindingsSigned-off-by: Naveen Krishna Chatradhi
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron