1 # SPDX-License-Identifier: GPL-2.0
4 $id: "http://devicetree.org/schemas/iio/adc/avia-hx711.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: AVIA HX711 ADC chip for weight cells
10 - Andreas Klinger <ak@it-klinger.de>
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
17 - dout-gpio is the sensor data the sensor responds to the clock
19 Specifications about the driver can be found at:
20 http://www.aviaic.com/ENProducts.aspx
29 Definition of the GPIO for the clock (output). In the datasheet it is
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.
43 Definition of the regulator used as analog supply
58 #include <dt-bindings/gpio/gpio.h>
60 compatible = "avia,hx711";
61 sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
62 dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
63 avdd-supply = <&avdd>;
64 clock-frequency = <100000>;