From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C47792FD7D3 for ; Sat, 18 Apr 2026 17:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776531961; cv=none; b=MwJ3Ez455E2AjL4rVopxJXpPahdcdAbmlq4WMSF3kv8sNhrSkz1LKchqh1Rp31XCKGdihfUmzDkbVbayRQMK03M2pg3dmNBzkAtrFrOqWWvJPiWiBaq8yDUTv9K8I1N8/Qme7WNxkE0qkrT01QlYVqeCzdO8uy/RH7tyCuqWtb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776531961; c=relaxed/simple; bh=AmWEh6daW1VQAeTy8GGtceY6duADadqAiHNIJMFUJhU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LH5snkYWDDCJFY6w66Kb4xJ84PMYAGPQDZ3Zdev9oXJtCp9+DuCPMbKybI+n1/ESUgcK1EmXjT0ZcooSEfyCfOoolu4qUdzKdHAgvMR7/XJ/e9DL7p1TAa+Ko9+LMKc8M7KYGSeB2yBVbl1Xg3UjsQMtX4RqRuU0+TbmXGrBVX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UT1G/fsZ; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UT1G/fsZ" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-82735a41920so691035b3a.2 for ; Sat, 18 Apr 2026 10:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776531958; x=1777136758; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0JodRHsR4G0nSxaXov0yHPNIAP1IY9vLGIzz8YV/oYk=; b=UT1G/fsZNeA2W7gxFGrWJibzmtl+9tvigOJUdw69RYWg/r3b8TidIRMi+MQMKLKWAd RRy9N9l5+k/z/CNOkbJ1hFw6pwDuwWqTWibgVoUMKCsIjDIZvbQr7/KYeN/AXSsURvMZ eEj3i5KSw3GM0oJf6YCKHL9+1BZVmNYTuuRjHJrK13gvuyUZzaaDpAinnyZjjiLowPIw LhPfuvfirUZmMx4HcpTNWkrCOmrmpq5BfkvlvqOoetbA1/rcRAyL7mGdB/N4lH0MRUMb /yAGlhPXoRanwC98L3xbSg2UT801yUAO61LCGF8faLCezF8hUy084U3+ujeboNUEPZAt 4WWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776531958; x=1777136758; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0JodRHsR4G0nSxaXov0yHPNIAP1IY9vLGIzz8YV/oYk=; b=Zb1OGnDmovXQWe5zufl3PDh9ifujLkVJRIvW0+o/pBCHmmPP0KNLI81BiOZo0aGsSD syQ7Nwi8zOVOTA+1hu/j/wfIv16japguZfOKMROYFawX5Oy5TrRXCtfPh4eCRD6/0Fbv FyReV58DKr3EgRkGy4Z4oUrYs/FTAX/m0XB4rBhQiDxQT6tWWm5gdTZgdAUK5AHpb1Qj DA7mcvoVD/jGTHDFuvMALh8y6bYWEfPmwr7pfofFYgvkhPipvKNGjcDSwYWOVYT4tAyb rS2yWPC8ceK8GsKrEWxa5HBhSzLEIefAzNMfzblcky42YDZGRcVhmDbsIBN5TsuEpioL Vj2Q== X-Forwarded-Encrypted: i=1; AFNElJ/OWKJnJFf9sbxiMxVU0Y0HP8mUHO3si6DC7WiK61GFVbPAyshuJqLdEtrpGE6PrUUx/VYfBbyP2vBHjU0=@vger.kernel.org X-Gm-Message-State: AOJu0YyeqXl/14ThR+96i+QSMom7/l7rpo76IY0oZpJwQjwQeUcF2S23 g87vN6QNBY5PwW1VOeQykYZ41g+cm106Lbhc6WDRRuMiI4XhtraOtol9 X-Gm-Gg: AeBDiesxdfIqaqdqlEI75OBYID8ddxoqIn/B3d9W9xrqAyipTKgG4MlVNJ9kAKDPaBX dc3LlgpopP1+HEqzEO8ecXbHxdqfjpe+P8NmkeTAefDLnkOSX6Q4Cu8wj5OP4jRjjsfVVRdr9TK /OCXsB+3X28XhLoJKk1jnH4oohLFzsrA7w710AiYWmLIjNkdBqXX8x4b5d27FY5Jzhyemq123lw kj+qxQKAQhZxVc0p3Mw2M7FjG/dnwjO0o25E8X/GcICrDhLqZtQ6gs7Ln12zQSlcUzxM8XNDZk3 PefonDyvWcK1+hds/19c9qlOLUpbQp4Ktv2Bpyl2eHYVe/aqa6JKD45+8uriqcPXFR1TD5GvUwU d0Ps5VIjT0fUVWnpvLE4x8jXrgrQfmAZrFg/BqDmzO5PL/pIDzHiquWIa5NPN1Ge6xtgNEMYUdy t2edWEmy0RxC08XHgt+XAsEgxFgC5xiuMZy3PaeWVNKyMUQ47qPVDXy628BDdqz1riWZYmSL3hz gNZvvoZXY4re5xQG4NncZwlTVZRZ5jQiEqjTnbZ2DIjLPVy9Tbogb+I1EBEVQ== X-Received: by 2002:a05:6a00:21d3:b0:82a:6de8:fa50 with SMTP id d2e1a72fcca58-82f8c82eac0mr7759057b3a.18.1776531958135; Sat, 18 Apr 2026 10:05:58 -0700 (PDT) Received: from lord-daniel-VivoBook-ASUSLaptop-K3502ZA-S3502ZA.. ([2405:201:31:d016:3ec3:66e6:8cde:aa47]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8ebe40dasm5435965b3a.40.2026.04.18.10.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2026 10:05:57 -0700 (PDT) From: Piyush Patle 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 Message-ID: <20260418170549.312446-1-piyushpatle228@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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 @@ -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 - 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 + /* 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