-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
5 changed files
with
501 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
52
trunk/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.