From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.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 BD5E344E042 for ; Wed, 3 Jun 2026 18:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780512555; cv=none; b=IqKWoPmc5bKthZZ4bjXeY30PENiMzoWEcZ9C7GLjD4GqNA1SDw1UDgWors7jAvBQF+cw1mCPddQozedcHdNlq569lkCLd2ZVY4eoSEXtFGv3nVKvy7mEFVw/VCVgfXXVOCX3jV2iDkVlH2UlzMHKK9JIdqKFE8Ognm0YA8uVs9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780512555; c=relaxed/simple; bh=fGN8QACq5acyX3/tm53OfWk81sTlEN73wII2m7as1Oo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sF6NiLCZ5siWUXVdQe5oL1WX7UUq/YlGW24dq1qjdJmgbeyMUmYAzHFuuvlcVX0/9zDepKF7O4YZfeKLucczZDoWRzfqOOgpRgjhM4FOoOJ5jqQPQ2syYYMyuSv33XwzDDGhDhpTXqUVZuaVchC3pWOxPNAe031+u2yxa2/VLgo= 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=Z2LfR414; arc=none smtp.client-ip=209.85.214.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="Z2LfR414" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2c0c3543590so29628585ad.2 for ; Wed, 03 Jun 2026 11:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780512554; x=1781117354; 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=Yf9rYDctPN9NDbaPR2RYs1zVFeB2pT+PMnoNRzcUIUM=; b=Z2LfR4145JMTATunS7NAGFCT4P/81X6vTim35taRggW3hfGB8i/QwDpeSj7yPLStmt GjE/OTMt8LFHl8LypTPtlVazbNRblCcMXmvbkkoRHQkm1IuFTLab+EN/qgDoLrON5d6b kEra20z5xnL9tSE4PHqsUiDB+5AbwaTMgI2tOaoyTakppd4gup+q6+WL/399c0Wk9Zr7 ffYQ6Sitd6kI0UKp4Q98T32Cxgyv/vF6XFhwXWi4enSrZ531w1ff6rhwCi0QQ8lwO3RT f+cfazEmJI7ZCklNL2L/jc5PYiWsqFV/CsgPsy1QiB1V1Uz1msLdaUW/fVIZ256lLFfN yQiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780512554; x=1781117354; 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=Yf9rYDctPN9NDbaPR2RYs1zVFeB2pT+PMnoNRzcUIUM=; b=FNs6JQI2kgmP5+swdjwD9R+/g8kRAAZh3XPt9m6/zdvTSR5oogIL2QGeVV85hGCHif tU2eLfoUeBACKnQhY5n86ygVOx476ZKeZXln/8ibDy0kW1+sUPSPNJbIMJWIQjU1pMEG D8UB436CuO0ZG9JJWf8ygAnStT3p25XvdZZ4P/cp+/WlylpYK8goF5DW2DOmAZd16nMP hlCHT4xogTOov80msc9tLepmHkAeq9hk0aXT2OobXulOENUb4cyFFMWuUE5lek4Efu7q F8HXU9DaRnJKKwyzdjH61+3dxJRdcvgBGSP9dUL+goF67dwHyQqR7yM/GF8psyjcExBa UnPw== X-Forwarded-Encrypted: i=1; AFNElJ9WPBYRPAjtvQC9W9ydBf7CQMk+wkguUvSOzzKIuamnTgj7ezAX7QQfg3twtfEhHOS0IQJL5EUrWNPl0m0=@vger.kernel.org X-Gm-Message-State: AOJu0Yyc8eEcOABnV9wZnCH49xpORDnPNjal6EBLt39o5ri8825aSRKm 0CzG2yQiX6KZKxfTjwjgbuaH/JpAxkwx9Me/g8kw9GyS1kA2zI9BO5bO X-Gm-Gg: Acq92OFnu+T+Zjzh/OCsA4Pg6toof1h1iDXtaNXBbh3ydjnJwP5p4R1Gennfbw6s6fp ZV9KBLNfrX2OvVRljV7mn+3cobcktYqIuyr1rYn2/f2D7Qu7I/W9sVZcNfXbjkkbZwr7QFEVpUu OOkUNSA0LRhpyX5rqF965RH9ps0D0ICsZtJVjEc5UjSmG1gdMLWh2OafcxG4C5A068OsJNa1TKg ZXXOIE09/oIBUyJgP2uOQ18EjCgmtnXh9frjVe3baNgMJSgyN5DEsuSKa9AKtXFhfGlTTKAHiee HACAbPn/VYLVHAEykuqrSkJ3s2geGRS0bLJ2uYEsMNdmUHJuHkPwaX0xpurA2AmeHT51aHCVkzo v3BLn4WxxTTE6Z7w2/Fipc7pgR3pOHib7raChfDby4XdQYb4g2frtFyH/MsiwX126Y1qYXUflo1 ObS6P5w/rp3DbbGPUfU+AIV9Na796gwZVZluUBQin3ksq5F2UuwrjlOuTN6cobg6IX2EmTQEePc ObdqNxuI/h5bqYKH8wmma4yr0dZP9grDNQGDemH++eUr7kFkCpYZaNexi/yAbcs X-Received: by 2002:a17:903:3c6c:b0:2bf:800:19f8 with SMTP id d9443c01a7336-2c163a3f9cbmr57906695ad.17.1780512553868; Wed, 03 Jun 2026 11:49:13 -0700 (PDT) Received: from lord-daniel-VivoBook-ASUSLaptop-K3502ZA-S3502ZA.. ([2409:40c1:4015:6e6f:ee79:7998:9a6f:65e3]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164f6d59csm32139675ad.4.2026.06.03.11.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2026 11:49:13 -0700 (PDT) From: Piyush Patle To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jic23@kernel.org, ak@it-klinger.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andy@kernel.org, nuno.sa@analog.com, dlechner@baylibre.com Subject: [PATCH v11 01/11] dt-bindings: iio: adc: hx711: clean up existing binding text Date: Thu, 4 Jun 2026 00:18:49 +0530 Message-ID: <20260603184859.89693-2-piyushpatle228@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260603184859.89693-1-piyushpatle228@gmail.com> References: <20260603184859.89693-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 Reviewed-by: Andy Shevchenko Acked-by: Conor Dooley --- .../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