From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 18C9E3AEF22 for ; Sun, 3 May 2026 12:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777810212; cv=none; b=Z+h7Cu/q+nKRvOQpsgTe+o6E+s2ioWAsL9lIr6elFrhalY0TimRs1KG4yFyxXHVVRebPwP+2n9CO7T1HviwSS3X+SzdvpKmWpV5pAG28bB6WO3JaSm9tvKijtoQ3g5ecRbY8a/yIepSzo5lDbZ6MZOqU510lslLbPIO+ZY6lG3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777810212; c=relaxed/simple; bh=YzJ8RosHX05iVdAZ2STTIxyp1FpJncO7Lahr+HQeVvA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nE/1wWyIRPBegYiWtrN7b7Ajktck+i8Y4HdhG2Xrsodvi4Nn2md50ABPExIbXY4Pg17gVeT4e2pvFbjmAW007isYLJfLJiV/NDsCK3xB0I4die393ls6DnSdSmhprxcOw1HPXAZyHwFnfXIHY1hGw19z6gVsXHHKqCPD+oX8EmY= 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=MvDW7+kv; arc=none smtp.client-ip=209.85.215.176 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="MvDW7+kv" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-c8027e876fcso74735a12.1 for ; Sun, 03 May 2026 05:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777810209; x=1778415009; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0sJO8jnVqdesIsdCxc3bQ/uGr2AUdTF8/iD//ahP/KE=; b=MvDW7+kv/+2iWgcBQCZYvyM0ys2Q1/2G4/elB7Tfspjnw3xvmt1rn6/TasaaloDBia nwavCzR9mx5u4XqMXSH+ThUfFYrzc7XwkTAq+cm8+MK6ozuvN1P/DzZrxpQ6vLplAAeQ NJ+MNnms1rLRk5GfzNvUuRucDYM30J5l3paonr9CZD9NsBDyxM/akWK+q4trlIydfxGF +cz1lPXatZfb/vkFjDvrC+P/GG5OGnDK16f+H61GEvn/Zv3iIrfE93huG8HvDQ/dPThX qpZWyVM6eyWcY57ZF6EDDeQHQ4hnhIyy2+cdKcbuVXLQHTUHg5MRnk8Er/ONVSRtAhjz +lqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777810209; x=1778415009; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0sJO8jnVqdesIsdCxc3bQ/uGr2AUdTF8/iD//ahP/KE=; b=O3lR2l/D8jKfoweXl4FR00CeIEdnIa3cc+6BbNLNq5rx0w5CxG9v70EAIX2k6x4DWZ J2jzW+84y41KbsVblI9QZaYNd5apwDq7959BZSa5t02AxH/ikUV56C6PDOgfGcPuEMDW U1yWI58FEMKY8z4ktvbVGKourLxXtO9SeumhzMC8/DWPyCQihCCjPvQL4wwkfgUU4xhE PiFEt/oIEgUPRnqKaY1x2g4tUMZwo1+X8Ds+NbBNyxcpV5FZiPsUVr3aJruwQaXkvtDo 9Sjjii5sHoySzpbPdtmMywtbPFrtvYYj1/FWkP7ZVT6yjn00ln7HiwAju1ot9DrExSAK YprA== X-Forwarded-Encrypted: i=1; AFNElJ/Zwqzls2rNxYudrTAYo042lVFmeu4cYd6xq7W5I9U+7znhQ3F6qnMRR7lwMEG4z1IVbYJKm9ISgNpezBY=@vger.kernel.org X-Gm-Message-State: AOJu0YypxdzWI8TF4jkl3P5uftNcv7d/m/cbIG85lSDsQCqqkZQzjMeC 3TwfBgVb781zugF/4B9ndo4m40TOdmzeA1KsSs7QDwey3K8r1Q8ci17w X-Gm-Gg: AeBDiet+V69QMINA5U3P9HdwGUWHdLuZyT/x2Hb6CB8YwCGWunExCPqIKYu8aK+Bfdi jfg9s8hz66Jcbt6Dus/hhKKRktLL78cTBv/G2Yq/VhjsMbLvmWifRgJz3OWDbcQZydiCIHDAMEp MvmRWGAK7jF+h+hjGbUGI6L54nM4b0DCm3p+KeDJ/+Fe4oj61LBcv+dYyHBN+vS/dWnatQumN+/ nZ221gaTfhuzEbgHEazlYfjfyEEHSk7SppSbH6hoe/DSlq0l0zDOKG2kjAmCS9WaL+WFlkCITR3 nuV8jdESyGU+GvfTH3kixAa2pUt8+vgdq0wVmJ2mdBK5QRny/qJNjhXPNZlri42fYJ0yz1eEqIU kmvC6WdWdWOVu+gV8n/j9uvegNK0s3AlQBqXkrsi7anHB2Cgh0LA4cBXzMMnP/x9LJqeKnpyYb4 TXUt9gIHkLhOqsKtlNkm90HcFTkZXG0gK/48lVyaT1aqXO9o2DnSLtpFes06RMHdlF1rebWtV8B EJUMGqt3hK6hdQj6b2BVcBc5FdJgn3/0o6Cuz0Njt/xyjFU3HvCTy6K/c4ROJeBwcl7sVU= X-Received: by 2002:a05:6a00:302a:b0:82f:316:31f6 with SMTP id d2e1a72fcca58-8352d202921mr5662327b3a.26.1777810209269; Sun, 03 May 2026 05:10:09 -0700 (PDT) Received: from lord-daniel-VivoBook-ASUSLaptop-K3502ZA-S3502ZA.www.tendawifi.com ([14.139.108.62]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8357c4f4530sm1474364b3a.9.2026.05.03.05.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 05:10:08 -0700 (PDT) From: Piyush Patle To: Andreas Klinger , Jonathan Cameron Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 01/11] dt-bindings: iio: adc: hx711: clean up existing binding text Date: Sun, 3 May 2026 17:39:30 +0530 Message-ID: <20260503120949.80292-2-piyushpatle228@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260503120949.80292-1-piyushpatle228@gmail.com> References: <20260503120949.80292-1-piyushpatle228@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../bindings/iio/adc/avia-hx711.yaml | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml b/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml index 9c57eb13f892..1ea60dff98d5 100644 --- a/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml +++ b/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml @@ -10,14 +10,9 @@ maintainers: - Andreas Klinger 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 - - Specifications about the driver can be found at: - http://www.aviaic.com/ENProducts.aspx + The HX711 is a 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. properties: compatible: @@ -26,23 +21,23 @@ properties: sck-gpios: description: - Definition of the GPIO for the clock (output). In the datasheet it is - named PD_SCK + GPIO for the clock output (PD_SCK in the datasheet). maxItems: 1 dout-gpios: description: - Definition of the GPIO for the data-out sent by the sensor in - response to the clock (input). - See Documentation/devicetree/bindings/gpio/gpio.txt for information - on how to specify a consumer gpio. + GPIO for the data output from the sensor (DOUT in the datasheet). maxItems: 1 avdd-supply: description: - Definition of the regulator used as analog supply + Analog supply voltage (AVDD). clock-frequency: + description: + Controls the SCK bit-bang timing. The value is used to derive the + delay between SCK edges; keep the SCK high time below 60 us to + avoid triggering chip power-down mode. minimum: 20000 maximum: 2500000 default: 400000 -- 2.43.0