From: Piyush Patle <piyushpatle228@gmail.com>
To: jic23@kernel.org, ak@it-klinger.de, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v1 1/2] dt-bindings: iio: adc: avia-hx711: add avia,hx710b compatible
Date: Sat, 18 Apr 2026 22:35:41 +0530 [thread overview]
Message-ID: <20260418170549.312446-1-piyushpatle228@gmail.com> (raw)
Add the HX710B compatible to the binding and describe the variant-specific
channel and gain model.
Also add an example node for HX710B so the schema covers both supported
parts.
Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
---
.../bindings/iio/adc/avia-hx711.yaml | 36 +++++++++++++++----
1 file changed, 30 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml b/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
index 9c57eb13f892..19318c4dd994 100644
--- a/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
@@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/iio/adc/avia-hx711.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: AVIA HX711 ADC chip for weight cells
+title: AVIA HX711 and HX710B ADCs
maintainers:
- Andreas Klinger <ak@it-klinger.de>
@@ -12,9 +12,19 @@ maintainers:
description: |
Bit-banging driver using two GPIOs:
- sck-gpio gives a clock to the sensor with 24 cycles for data retrieval
- and up to 3 cycles for selection of the input channel and gain for the
- next measurement
- - dout-gpio is the sensor data the sensor responds to the clock
+ and 1 to 3 additional cycles for selection of the input channel and gain
+ for the next measurement
+ - dout-gpio is the sensor data output the sensor drives in response to
+ the clock
+
+ HX711: 24-bit ADC with selectable gain (32/64/128) and two differential
+ input channels. Channel A supports gain 64 and 128; channel B supports
+ gain 32.
+
+ HX710B: 24-bit ADC with fixed gain of 128. Channel 0 is the differential
+ input and channel 1 measures the DVDD-AVDD supply voltage difference.
+ Channel selection for the next conversion is controlled by the number of
+ trailing PD_SCK pulses.
Specifications about the driver can be found at:
http://www.aviaic.com/ENProducts.aspx
@@ -23,11 +33,12 @@ properties:
compatible:
enum:
- avia,hx711
+ - avia,hx710b
sck-gpios:
description:
Definition of the GPIO for the clock (output). In the datasheet it is
- named PD_SCK
+ named PD_SCK.
maxItems: 1
dout-gpios:
@@ -43,6 +54,9 @@ properties:
Definition of the regulator used as analog supply
clock-frequency:
+ description:
+ Bit-bang clock frequency on PD_SCK. Keep the PD_SCK high time below
+ the chip power-down threshold.
minimum: 20000
maximum: 2500000
default: 400000
@@ -58,10 +72,20 @@ additionalProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
- weight {
+ /* HX711 example */
+ weight0 {
compatible = "avia,hx711";
sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
avdd-supply = <&avdd>;
clock-frequency = <100000>;
};
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ /* HX710B example */
+ weight1 {
+ compatible = "avia,hx710b";
+ sck-gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>;
+ dout-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+ avdd-supply = <&avdd>;
+ };
--
2.43.0
next reply other threads:[~2026-04-18 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-18 17:05 Piyush Patle [this message]
2026-04-18 21:46 ` [PATCH v1 1/2] dt-bindings: iio: adc: avia-hx711: add avia,hx710b compatible David Lechner
2026-04-19 5:17 ` Andreas Klinger
2026-04-19 11:47 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260418170549.312446-1-piyushpatle228@gmail.com \
--to=piyushpatle228@gmail.com \
--cc=ak@it-klinger.de \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox