-
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.
This driver add partial support of the maxim 1027/1029/1031. Differential mode is not supported. It was tested on armadeus apf27 board. Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr> Reviewed-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
- Loading branch information
Philippe Reynes
authored and
Jonathan Cameron
committed
Jun 28, 2014
1 parent
b978553
commit fc167f6
Showing
4 changed files
with
553 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
* Maxim 1027/1029/1031 Analog to Digital Converter (ADC) | ||
|
||
Required properties: | ||
- compatible: Should be "maxim,max1027" or "maxim,max1029" or "maxim,max1031" | ||
- reg: SPI chip select number for the device | ||
- interrupt-parent: phandle to the parent interrupt controller | ||
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
- interrupts: IRQ line for the ADC | ||
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
|
||
Recommended properties: | ||
- spi-max-frequency: Definition as per | ||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Example: | ||
adc@0 { | ||
compatible = "maxim,max1027"; | ||
reg = <0>; | ||
interrupt-parent = <&gpio5>; | ||
interrupts = <15 IRQ_TYPE_EDGE_RISING>; | ||
spi-max-frequency = <1000000>; | ||
}; |
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.