-
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.
iio: adc: hx711: Add DT binding for avia,hx711
Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger <ak@it-klinger.de> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
- Loading branch information
Andreas Klinger
authored and
Jonathan Cameron
committed
Jan 10, 2017
1 parent
fa2849e
commit ff1293f
Showing
2 changed files
with
19 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,18 @@ | ||
* AVIA HX711 ADC chip for weight cells | ||
Bit-banging driver | ||
|
||
Required properties: | ||
- compatible: Should be "avia,hx711" | ||
- sck-gpios: Definition of the GPIO for the clock | ||
- dout-gpios: Definition of the GPIO for data-out | ||
See Documentation/devicetree/bindings/gpio/gpio.txt | ||
- avdd-supply: Definition of the regulator used as analog supply | ||
|
||
Example: | ||
weight@0 { | ||
compatible = "avia,hx711"; | ||
sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; | ||
dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||
avdd-suppy = <&avdd>; | ||
}; | ||
|
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