From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F8E2368D73; Tue, 2 Jun 2026 16:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780418032; cv=none; b=fGHIJ03knnAEIHzrE6czw7VWN2nRGVdRFmtQMKmdqLFStLUbSdzjsZKKNjj9KT8lx1my4BmAEvirLpJT0Gbi2KLqGqQDkchDe31J5k4+YbIjfyPApuwXKkgixZYxRE5IKHVDPEfrYz/vVf8nMmULKg70soQFk/TZpOiEZ3jj+y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780418032; c=relaxed/simple; bh=VpyNWKEpUs6kC87Yh1bsIzN7Mc90ZiqU1b0YvNZszkg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CxJEITYLr9WlmvKYFzXH31b6n+cTCsn3Ii2iZnCpB1W7CqHf/dMo5H7lzRi4emzDI5CmPYWWuawZV1QwZTgUym+FrHPB4vwn687DMW87lnG4hChlII9HXkpAjx+hVfOuWNcIcQDygWdUkU7BhEjmeUqqW9L2obNkGIXtM4WviW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m4A8WTO6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m4A8WTO6" Received: by smtp.kernel.org (Postfix) with ESMTPS id 55DBEC4AF09; Tue, 2 Jun 2026 16:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1780418032; bh=VpyNWKEpUs6kC87Yh1bsIzN7Mc90ZiqU1b0YvNZszkg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=m4A8WTO64VeeJ3TqsUjnYWR0xS6wRskPkdnwSeKazoHd086a1ZQcwLsOAENmUpAzQ mgTGpwMxfeNx9tmYkkTWWJcQQphXJ8ipbB1yC7MVA6RtlPdOyLB0Llwjf10L8SYe1/ GjFWrDoTl9i6zuvLwOoYFjjqOCpKPdmKGUk/1zeanc6grLd6EF9pblB/lJ+qK2B09Y pkPqzm9FQYLe/w6+Dv5iWszm8jMwlDy626Ie2ThHZQc/AYgoaPNjvJSAIGWnwJ8Kxo zRSsWYbQflmruNAwKMZkQrr/S2FGN4uyKyTOoUejw05wH1nqNgYYmZ8U1duKHFGSxJ 6J+wF0qTIXX3w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F238CD6E57; Tue, 2 Jun 2026 16:33:52 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Tue, 02 Jun 2026 17:33:48 +0100 Subject: [PATCH 01/12] dt-bindings: iio: dac: ad5696: add reset/ldac/gain gpio support Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260602-ad5686-new-features-v1-1-691e01883d27@analog.com> References: <20260602-ad5686-new-features-v1-0-691e01883d27@analog.com> In-Reply-To: <20260602-ad5686-new-features-v1-0-691e01883d27@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Kees Cook , "Gustavo A. R. Silva" , Rodrigo Alencar , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780418030; l=2173; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=Uodwb5bj6wApJ0FYWPX0bGa/9JMjqxNyEKnyBWSUBgI=; b=/cO5cMmyoPmYi5A6C4aj/zj3Qe3VDU/ZaYzlWkznciljoLVbTLa8DvCAk1Wf6Y+DvJQLXY6/x nE99fKAPayACWfSUqog5pWO2jaAC/o+EvlfIIMtSa1U8c7XAc0hDBeO X-Developer-Key: i=rodrigo.alencar@analog.com; a=ed25519; pk=ULeHbgU/OYh/PG/4anHDfLgldFItQHAhOktYRVLMFRo= X-Endpoint-Received: by B4 Relay for rodrigo.alencar@analog.com/default with auth_id=561 X-Original-From: Rodrigo Alencar Reply-To: rodrigo.alencar@analog.com From: Rodrigo Alencar Add GPIO property for RESET, LDAC and GAIN pin. RESET is active-low, LDAC is used to load DAC channels with values from input registers and GAIN can double the voltage in output channels. The gain-gpios property is not available to all supported parts. Acked-by: Conor Dooley Signed-off-by: Rodrigo Alencar --- .../devicetree/bindings/iio/dac/adi,ad5696.yaml | 34 +++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml index b5a88b03dc2f..2dcc049f30e9 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml @@ -37,14 +37,45 @@ properties: description: | The regulator supply for DAC reference voltage. + reset-gpios: + description: Active-low RESET pin to reset the device. + maxItems: 1 + + ldac-gpios: + description: + Active-low LDAC pin used to asynchronously update the DAC channels. + maxItems: 1 + + gain-gpios: + description: + GAIN pin that sets a multiplier for the DAC output voltage. When high, + the DAC output voltage is multiplied by 2, otherwise it is unchanged. + maxItems: 1 + required: - compatible - reg -additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + anyOf: + - const: adi,ad5311r + - const: adi,ad5691r + - const: adi,ad5692r + - const: adi,ad5693 + - const: adi,ad5693r + then: + properties: + gain-gpios: false + +unevaluatedProperties: false examples: - | + #include i2c { #address-cells = <1>; #size-cells = <0>; @@ -53,6 +84,7 @@ examples: compatible = "adi,ad5696"; reg = <0>; vcc-supply = <&dac_vref>; + ldac-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; }; ... -- 2.43.0