-
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.
hwmon: (ntc_thermistor) Add DT with IIO support to NTC thermistor driver
This patch adds DT support to NTC driver to parse the platform data. Also adds the support to work as an iio device client. During the probe ntc driver gets the respective channels of ADC and uses iio_raw_read calls to get the ADC converted value. Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> [Guenter Roeck: fixed Kconfig dependencies; use ERR_CAST] Tested-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
- Loading branch information
Naveen Krishna Chatradhi
authored and
Guenter Roeck
committed
Apr 8, 2013
1 parent
4b5e536
commit 9e8269d
Showing
4 changed files
with
163 additions
and
20 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/hwmon/ntc_thermistor.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,29 @@ | ||
NTC Thermistor hwmon sensors | ||
------------------------------- | ||
|
||
Requires node properties: | ||
- "compatible" value : one of | ||
"ntc,ncp15wb473" | ||
"ntc,ncp18wb473" | ||
"ntc,ncp21wb473" | ||
"ntc,ncp03wb473" | ||
"ntc,ncp15wl333" | ||
- "pullup-uv" Pull up voltage in micro volts | ||
- "pullup-ohm" Pull up resistor value in ohms | ||
- "pulldown-ohm" Pull down resistor value in ohms | ||
- "connected-positive" Always ON, If not specified. | ||
Status change is possible. | ||
- "io-channels" Channel node of ADC to be used for | ||
conversion. | ||
|
||
Read more about iio bindings at | ||
Documentation/devicetree/bindings/iio/iio-bindings.txt | ||
|
||
Example: | ||
ncp15wb473@0 { | ||
compatible = "ntc,ncp15wb473"; | ||
pullup-uv = <1800000>; | ||
pullup-ohm = <47000>; | ||
pulldown-ohm = <0>; | ||
io-channels = <&adc 3>; | ||
}; |
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
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