From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 BA8B23E9C06 for ; Mon, 25 May 2026 10:51:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779706308; cv=none; b=N0z68Vc5AouzBfpOIZeeUx5K6RpHmhvPSdh57ZlYE01Ynogt0JkvTsXYgMhCRJ18ABn0SBhFsDWfOwt2yNpZGINkQ33QJBbfk51bWuLSkWIELSwDnTCBtdkoflWxoPB7VYf49Y9XtPFXvcijB0SuKsui5DFyDKPJ0xSEg9WiW9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779706308; c=relaxed/simple; bh=fGN8QACq5acyX3/tm53OfWk81sTlEN73wII2m7as1Oo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ex7v8scGjeLZL7G6qZGaNDTSgvK4e4DyVyuH9ieiWn0c83Fiy1lnomXfE3Lf853+MTi3zSfAyvvWEjzqnOFVr2JaTrzE1QIN8E9aD7iNgPDhJfuM0kgtFQXo7/4BqEI3yvLSYvdhf0xM2osVp5mxboGE4RBuSSjjGl15rJkkEHE= 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=FlK/JZGf; arc=none smtp.client-ip=209.85.216.45 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="FlK/JZGf" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-36931e4f5e8so8801051a91.2 for ; Mon, 25 May 2026 03:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779706302; x=1780311102; 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=FlK/JZGfALU3zpzsgZQRkL0bE9hcwMEnyz2P/DT0Zl4usRSuQUB0zv6zBy5TpBSwkz KcYfshz0A7ctoWjj0Mz4bskHGX3RcIuWYZ/qxlMyFF5tmvK95TAy66xzO6+gudB2yCBR q8ZgoTf2OpFaPIF0H4n9s+hnmGV2qoDK3ZTKTMcdz8mgJSPfZtsbTuUjBQDnJszhrDRH G/IMtRSOzNCEiOXI8fegkApgiU2mswc6kyX1rG97Mk2tw1HUyez/H4smt3yw1RVgSrp2 knAykL51LAHCktFnSm9xD2CNExbLnulQTfh+v2hQCStmkuQVc2t1eJhxar8+AAKcORkg tGLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779706302; x=1780311102; 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=D/Mmr9xXX+pu3kFFK57Yp5W7l6vpNBsiv6JUF+oWr2CgULhHW+Pdie68WlbXbjmm+c ZbvKVhZwC+flsNHt3fAaxczwnVgDEiBLsZjmAUK1REyhRju4IReuDN40+skiwEGnLvAW D2sILKYRj7Sy9sruP1boro6jz37DwsfPDZul7gu7WNvytew6UeqcctgETbSu4yrtiP5v 62iCvMNgcLCnGW1wXQchcHUiZnOC+6LDxD7uF70ZUV1m6mtDSfJjO+05sD6MDTXiSqh5 DORZegm2G2U/4BiJkpzS2GVBFJLLjAimhTjdw9TegqLf/1VltEYZBoiwb2yOh+h0hxbC jcWw== X-Forwarded-Encrypted: i=1; AFNElJ8PjvYPqXZ5cIb6COxxuOsi3ZAMr2NTOL1edDBblzMGwRTbmJEu3rwk9ninTC6dipIC1/KArVjCvoxNbhg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+6rsqqn7lYp8fZRWzzH6AiEffC1B0NUICyx/xjH7p4LwNFZu7 Y+pAn8XFXwuitrKVIT7UQ1b9In7PRp+6uzzA+TdBoQUkqzvBJ7y65r9Z X-Gm-Gg: Acq92OGAsUGvJBSFh/WuVT9XahJhgb2DWZZ54BcBR/O00T6koXBS83Lz81dWWuNmivn i43N4pnHZiHn5uVxmkHZmOUlMYlszZui4jOnAjmnhE4i3eAaGaKg4IGeOayjWQCiTBEE1bMxB8e +BdAQfqkqWHqy2I/qgVCY+oy0ISBXvU/SsQ4/f6ITr3zyLybnYiwcc2xKgT7iuqLTBFuoJiAf4K TTqQkwS7cwDNw2mOn8RRMI6uM7NgyFAgh29IbdTRJKywNVCNWlSzmeApm22R+t2tjCPCfOcVc4X lcbA7kPOIvf7yi/gYBVnaLqW+0fokL2IMYEJXCCYy6NQ9gWfiKzAYArs3NRrDk9tTna7h3bSjaA 2nlBM9FLqBj7ZAwu/o2cDojBTwtAkRfEGhPIYJH9tzA60n3/ep9BjFNMETcyXDIFOkS3W0XgsLk z6duPOCjc1vj+Fi+EoeoeZ95NPHeAzvdp0Ee6FXcGO1xF0PcdQdl4kwW8yNHqvZnyC5PLaYyJrq jEJDnXmJb2eG2dRqwooOsw6kq8H3RWWUqTenFxM8w== X-Received: by 2002:a17:90a:c110:b0:368:341a:a925 with SMTP id 98e67ed59e1d1-36a67616959mr14192750a91.23.1779706301802; Mon, 25 May 2026 03:51:41 -0700 (PDT) Received: from lord-daniel-VivoBook-ASUSLaptop-K3502ZA-S3502ZA.. ([2405:201:2011:e829:fadd:33b:8fc3:b2c8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36a7265a001sm9302388a91.7.2026.05.25.03.51.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 03:51:40 -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 v10 01/11] dt-bindings: iio: adc: hx711: clean up existing binding text Date: Mon, 25 May 2026 16:21:17 +0530 Message-ID: <20260525105127.180156-2-piyushpatle228@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260525105127.180156-1-piyushpatle228@gmail.com> References: <20260525105127.180156-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