Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363563
b: refs/heads/master
c: 10f5b14
h: refs/heads/master
i:
  363561: 9c0b173
  363559: 9813382
v: v3
  • Loading branch information
Naveen Krishna Chatradhi authored and Jonathan Cameron committed Mar 16, 2013
1 parent bddd053 commit 27ce283
Show file tree
Hide file tree
Showing 5 changed files with 501 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43bb786ad2886ea38364e57924c19e9d29f37201
refs/heads/master: 10f5b14811023df0ba1a936b14880eabb6d9c199
52 changes: 52 additions & 0 deletions trunk/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Samsung Exynos Analog to Digital Converter bindings

This devicetree binding are for the new adc driver written fori
Exynos4 and upward SoCs from Samsung.

New driver handles the following
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 bindings

Required properties:
- compatible: Must be "samsung,exynos-adc-v1"
for exynos4412/5250 controllers.
Must be "samsung,exynos-adc-v2" for
future controllers.
- reg: Contains ADC register address range (base address and
length).
- interrupts: Contains the interrupt information for the timer. The
format is being dependent on which interrupt controller
the Samsung device uses.
- #io-channel-cells = <1>; As ADC has multiple outputs

Note: child nodes can be added for auto probing from device tree.

Example: adding device info in dtsi file

adc: adc@12D10000 {
compatible = "samsung,exynos-adc-v1";
reg = <0x12D10000 0x100>;
interrupts = <0 106 0>;
#io-channel-cells = <1>;
io-channel-ranges;
};


Example: Adding child nodes in dts file

adc@12D10000 {

/* NTC thermistor is a hwmon device */
ncp15wb473@0 {
compatible = "ntc,ncp15wb473";
pullup-uV = <1800000>;
pullup-ohm = <47000>;
pulldown-ohm = <0>;
io-channels = <&adc 4>;
};
};

Note: Does not apply to ADC driver under arch/arm/plat-samsung/
Note: The child node can be added under the adc node or seperately.
7 changes: 7 additions & 0 deletions trunk/drivers/iio/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ config AT91_ADC
help
Say yes here to build support for Atmel AT91 ADC.

config EXYNOS_ADC
bool "Exynos ADC driver support"
help
Core support for the ADC block found in the Samsung EXYNOS series
of SoCs for drivers such as the touchscreen and hwmon to use to share
this resource.

config LP8788_ADC
bool "LP8788 ADC driver"
depends on MFD_LP8788
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/iio/adc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ obj-$(CONFIG_AD7791) += ad7791.o
obj-$(CONFIG_AD7793) += ad7793.o
obj-$(CONFIG_AD7887) += ad7887.o
obj-$(CONFIG_AT91_ADC) += at91_adc.o
obj-$(CONFIG_EXYNOS_ADC) += exynos_adc.o
obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
obj-$(CONFIG_MAX1363) += max1363.o
obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
Expand Down
Loading

0 comments on commit 27ce283

Please sign in to comment.