Path: blob/master/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/avia-hx711.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: AVIA HX711 ADC chip for weight cells78maintainers:9- Andreas Klinger <ak@it-klinger.de>1011description: |12Bit-banging driver using two GPIOs:13- sck-gpio gives a clock to the sensor with 24 cycles for data retrieval14and up to 3 cycles for selection of the input channel and gain for the15next measurement16- dout-gpio is the sensor data the sensor responds to the clock1718Specifications about the driver can be found at:19http://www.aviaic.com/ENProducts.aspx2021properties:22compatible:23enum:24- avia,hx7112526sck-gpios:27description:28Definition of the GPIO for the clock (output). In the datasheet it is29named PD_SCK30maxItems: 13132dout-gpios:33description:34Definition of the GPIO for the data-out sent by the sensor in35response to the clock (input).36See Documentation/devicetree/bindings/gpio/gpio.txt for information37on how to specify a consumer gpio.38maxItems: 13940avdd-supply:41description:42Definition of the regulator used as analog supply4344clock-frequency:45minimum: 2000046maximum: 250000047default: 4000004849required:50- compatible51- sck-gpios52- dout-gpios53- avdd-supply5455additionalProperties: false5657examples:58- |59#include <dt-bindings/gpio/gpio.h>60weight {61compatible = "avia,hx711";62sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;63dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;64avdd-supply = <&avdd>;65clock-frequency = <100000>;66};676869