Skip to contentSkip to conversation

iio: hx711: add avia,data-ready-delay-ns property in DT

PATCH Superseded Andreas Klinger 1 participant 1 message Jul 3, 2018

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 iio: hx711: add avia,data-ready-delay-ns property in DT

add avia,data-ready-delay-ns property for hx711 ADC
this is the delay after rising PD_SCK until DOUT is read and assumed to be ready

---
 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +7 -0
index b3629405f568..669d213e2964 100644
@@ -8,11 +8,18 @@ Required properties:
 		See Documentation/devicetree/bindings/gpio/gpio.txt
  - avdd-supply:	Definition of the regulator used as analog supply
 
+Optional properties:
+ - avia,data-ready-delay-ns:	additional delay in nanoseconds between
+				rising of PD_SCK until DOUT is ready
+				should be less then maximum PD_SCK high
+				time which is 50000 in the datasheet
+
 Example:
 weight@0 {
 	compatible = "avia,hx711";
 	sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
 	dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 	avdd-suppy = <&avdd>;
+	avia,data-ready-delay-ns = <1000>;
 };
 
Signature · 1 line
2.1.4