Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck...
[deliverable/linux.git] / Documentation / devicetree / bindings / arm / samsung / exynos-adc.txt
CommitLineData
10f5b148
NKC
1Samsung Exynos Analog to Digital Converter bindings
2
df4b404b 3The devicetree bindings are for the new ADC driver written for
10f5b148
NKC
4Exynos4 and upward SoCs from Samsung.
5
6New driver handles the following
71. Supports ADC IF found on EXYNOS4412/EXYNOS5250
8 and future SoCs from Samsung
92. Add ADC driver under iio/adc framework
103. Also adds the Documentation for device tree bindings
11
12Required properties:
13- compatible: Must be "samsung,exynos-adc-v1"
14 for exynos4412/5250 controllers.
15 Must be "samsung,exynos-adc-v2" for
16 future controllers.
17- reg: Contains ADC register address range (base address and
bb916ebb 18 length) and the address of the phy enable register.
10f5b148
NKC
19- interrupts: Contains the interrupt information for the timer. The
20 format is being dependent on which interrupt controller
21 the Samsung device uses.
22- #io-channel-cells = <1>; As ADC has multiple outputs
2b684024
DA
23- clocks From common clock binding: handle to adc clock.
24- clock-names From common clock binding: Shall be "adc".
25- vdd-supply VDD input supply.
10f5b148
NKC
26
27Note: child nodes can be added for auto probing from device tree.
28
29Example: adding device info in dtsi file
30
31adc: adc@12D10000 {
32 compatible = "samsung,exynos-adc-v1";
bb916ebb 33 reg = <0x12D10000 0x100>, <0x10040718 0x4>;
10f5b148
NKC
34 interrupts = <0 106 0>;
35 #io-channel-cells = <1>;
36 io-channel-ranges;
2b684024
DA
37
38 clocks = <&clock 303>;
39 clock-names = "adc";
40
41 vdd-supply = <&buck5_reg>;
10f5b148
NKC
42};
43
44
45Example: Adding child nodes in dts file
46
47adc@12D10000 {
48
49 /* NTC thermistor is a hwmon device */
50 ncp15wb473@0 {
8b6f5e0f 51 compatible = "murata,ncp15wb473";
1675088f 52 pullup-uv = <1800000>;
10f5b148
NKC
53 pullup-ohm = <47000>;
54 pulldown-ohm = <0>;
55 io-channels = <&adc 4>;
56 };
57};
58
59Note: Does not apply to ADC driver under arch/arm/plat-samsung/
df4b404b 60Note: The child node can be added under the adc node or separately.
This page took 0.099114 seconds and 5 git commands to generate.