Skip to content

Commit d20605e

Browse files
PiyushPatle26jic23
authored andcommitted
dt-bindings: iio: adc: hx711: clean up existing binding text
Rewrite the binding description and property text so it describes the existing HX711 hardware behavior directly instead of documenting old driver implementation details. Also clarify that clock-frequency controls the SCK bit-bang timing. No functional change. Signed-off-by: Piyush Patle <piyushpatle228@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 92767f9 commit d20605e

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ maintainers:
1010
- Andreas Klinger <ak@it-klinger.de>
1111

1212
description: |
13-
Bit-banging driver using two GPIOs:
14-
- sck-gpio gives a clock to the sensor with 24 cycles for data retrieval
15-
and up to 3 cycles for selection of the input channel and gain for the
16-
next measurement
17-
- dout-gpio is the sensor data the sensor responds to the clock
18-
19-
Specifications about the driver can be found at:
20-
http://www.aviaic.com/ENProducts.aspx
13+
The HX711 is a 24-bit ADC with selectable gain (32/64/128) and two
14+
differential input channels. Channel A supports gain 64 and 128;
15+
channel B supports gain 32.
2116
2217
properties:
2318
compatible:
@@ -26,23 +21,23 @@ properties:
2621

2722
sck-gpios:
2823
description:
29-
Definition of the GPIO for the clock (output). In the datasheet it is
30-
named PD_SCK
24+
GPIO for the clock output (PD_SCK in the datasheet).
3125
maxItems: 1
3226

3327
dout-gpios:
3428
description:
35-
Definition of the GPIO for the data-out sent by the sensor in
36-
response to the clock (input).
37-
See Documentation/devicetree/bindings/gpio/gpio.txt for information
38-
on how to specify a consumer gpio.
29+
GPIO for the data output from the sensor (DOUT in the datasheet).
3930
maxItems: 1
4031

4132
avdd-supply:
4233
description:
43-
Definition of the regulator used as analog supply
34+
Analog supply voltage (AVDD).
4435

4536
clock-frequency:
37+
description:
38+
Controls the SCK bit-bang timing. The value is used to derive the
39+
delay between SCK edges; keep the SCK high time below 60 us to
40+
avoid triggering chip power-down mode.
4641
minimum: 20000
4742
maximum: 2500000
4843
default: 400000

0 commit comments

Comments
 (0)