Skip to contentSkip to conversation

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

PATCH Superseded Andreas Klinger 2 participants 4 messages Jun 23, 2018 – Jun 24, 2018

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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

add 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 | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +8 -1
index b3629405f568..8c9bcaa4d750 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:
+ - 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 {
+weight {
 	compatible = "avia,hx711";
 	sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
 	dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 	avdd-suppy = <&avdd>;
+	data-ready-delay-ns = <1000>;
 };
 
Signature · 1 line
2.1.4
maintainer
#1 lore raw
Quoted 5 lines · On Sat, 23 Jun 2018 20:54:21 +0200 Andreas Klinger <[email protected]> wrote:

add 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

One unconnected change. I'm not sure it's wrong as such but it should not be in this patch.

Quoted 11 lines
---
 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +0 -0
index b3629405f568..8c9bcaa4d750 100644
@@ -8,11 +8,18 @@ Required properties:
 		See Documentation/devicetree/bindings/gpio/gpio.txt
  - avdd-supply:	Definition of the regulator used as analog supply

Documentation/devicetree/bindings/iio/adc/avia-hx711.txt Required properties: · line 18

Quoted 10 lines
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +7 -1
 
+Optional properties:
+ - 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 {
+weight {

Change has nothing to do with this patch...

Quoted 7 lines
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +1 -0
 	compatible = "avia,hx711";
 	sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
 	dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 	avdd-suppy = <&avdd>;
+	data-ready-delay-ns = <1000>;
 };
 
#2 lore raw

Hi Jonathan,

Jonathan Cameron <[email protected]> schrieb am Sun, 24. Jun 14:10:

Quoted 24 lines
Quoted 5 lines · On Sat, 23 Jun 2018 20:54:21 +0200 Andreas Klinger <[email protected]> wrote:

add 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

One unconnected change. I'm not sure it's wrong as such but it should not be in this patch.

Quoted 12 lines
---
 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +0 -0
index b3629405f568..8c9bcaa4d750 100644
@@ -8,11 +8,18 @@ Required properties:
 		See Documentation/devicetree/bindings/gpio/gpio.txt
  - avdd-supply:	Definition of the regulator used as analog supply
 
Quoted 9 lines

Documentation/devicetree/bindings/iio/adc/avia-hx711.txt Required properties: · line 18

Quoted 9 lines
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +7 -1
+Optional properties:
+ - 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 {
+weight {

The device tree compiler (dtc) gives a warning if there is no reg = <...> setting. That's why i changed it to be without @0.

Should i create an individual patch for this change in this series or create another patch which is unrelated to this series?

Andreas

Quoted 11 lines

Change has nothing to do with this patch...

Quoted 7 lines
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +1 -0
 	compatible = "avia,hx711";
 	sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
 	dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 	avdd-suppy = <&avdd>;
+	data-ready-delay-ns = <1000>;
 };
 
maintainer
#3 lore raw
Quoted 40 lines · On Sun, 24 Jun 2018 15:28:59 +0200 Andreas Klinger <[email protected]> wrote:

Hi Jonathan,

Jonathan Cameron <[email protected]> schrieb am Sun, 24. Jun 14:10:

Quoted 24 lines
Quoted 5 lines · On Sat, 23 Jun 2018 20:54:21 +0200 Andreas Klinger <[email protected]> wrote:

add 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

One unconnected change. I'm not sure it's wrong as such but it should not be in this patch.

Quoted 12 lines
---
 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +0 -0
index b3629405f568..8c9bcaa4d750 100644
@@ -8,11 +8,18 @@ Required properties:
 		See Documentation/devicetree/bindings/gpio/gpio.txt
  - avdd-supply:	Definition of the regulator used as analog supply
 
Quoted 9 lines

Documentation/devicetree/bindings/iio/adc/avia-hx711.txt Required properties: · line 18

Quoted 9 lines
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +7 -1
+Optional properties:
+ - 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 {
+weight {  

The device tree compiler (dtc) gives a warning if there is no reg = <...> setting. That's why i changed it to be without @0.

Quoted 2 lines

Should i create an individual patch for this change in this series or create another patch which is unrelated to this series?

Either is fine by me. It's such a trivial change that it really doesn't matter.

Jonathan

Quoted 15 lines

Andreas

Quoted 11 lines

Change has nothing to do with this patch...

Quoted 7 lines
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt +1 -0
 	compatible = "avia,hx711";
 	sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
 	dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 	avdd-suppy = <&avdd>;
+	data-ready-delay-ns = <1000>;
 };