From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.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 34A3930567B for ; Sat, 22 Aug 2026 18:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787422850; cv=none; b=M8ZnWfLCln0OzTvYgY98WgwTwr7u4hxCklPXQN9Bfy2sM/DI6avvGLhU9x28elLFEIbPmaZnOlfLrSod0V3TFeP77ollIdCbTKYHNPMAkW+fiGdNle1QbeahIi47s07zgYsX6+68j/NHwqa8n2Szu2cFGW+wuDyK5nVWD/DNOTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787422850; c=relaxed/simple; bh=yAd7mVfoTBbWlzpS260BpQ70itHd8Zbdwg1YAKphL9w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W+Yt/K4vF/2OXtdKBG30VuNaTNk3KhEeSzy0Hd/uanLsoyomiN2zWljDiK7fE+sePd9U3J8PsTNUH/NiZPVjF9WKn3rAjmyElUkAYRr/b8YBZ2QToXaW1+70nftcYD0RFEermhIVeSUu7h0G185Y4E6xA3DYzthmdtx/oM+DzUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=QtdB0DiS; arc=none smtp.client-ip=209.85.210.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="QtdB0DiS" Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-7f3ff92cf4aso2197819a34.1 for ; Sat, 22 Aug 2026 11:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1787422846; x=1788027646; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=NQNhgPr9yKeFxbuFf8eNz2imAjAUqFj9cvzQCXV9ESs=; b=QtdB0DiSzSVUfDZCjXeD9nEncE0SZ5qIlVFYDFNoIKJMeSlyjWcPg0ucyxPo3DZVfe KWr9do1iFWeblA8KhMWJhLkdGx9CRogPHU0ozgglmnUOIVeb5R46lIkrYHyTPPwsOGuk YuWsFh6BHdy4j+60yDKckvtXR8jZBd6fvuyE6wBAdTn97A/+FZUZoa7JgoZRX3ShyHCE ampOQ+wdbk0/QkRE1sroDVPXNvMRdcik0MtGDAqZC8OwQf8/VKeqEaNnEgFaPDK13xYS 6TgEpgRA7wIJUvlbgbJbVOSeI0sROy66nSR1OuHh8VJqOl5cdJmJSLxO2W7uYAfpgk3j 8W0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787422846; x=1788027646; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NQNhgPr9yKeFxbuFf8eNz2imAjAUqFj9cvzQCXV9ESs=; b=Z3FmJTrpJfoh/xOhiLsxnb9fEcWNSs17+VdORdzk7iM4/g2qYG860cjuiL5Vj3rYax Mr5WdI3DseiNr6DsblqnzXNPlRte84t/u4Ew4oyFgC8Kh2YpHz4EZvXdlygwZpiVm3dE bn/CQJMBcSsKWoZ/3/QcWIPhyQ2eY3TdNRxfQJTeU8wFJjGZGvRDBgJToNIpd37lWWOP shl3/Vkqj//yH7JNiay1q8Mv9JBLobOQYgeiyUHczqCTWkVsvEuW6RpiaqboUiER+tmI yyYFO+p04A87WLNh0tLtEKp89NN5KjJqFzU5yNvUMlfGDisnQqP1m+mE11uQIRYPu9dv yZXA== X-Forwarded-Encrypted: i=1; AHgh+RpLU0dRYkEwaTOzHXE95XrZbUbZNUITHbILk745yM3bu1enea+a7hKZyGDKYbXu1AYqAQHgqWEfW4Lgtrs=@vger.kernel.org X-Gm-Message-State: AFuF++muXWw4deT362MbhI/u29zelV+vQiImMnD+8yFgLDxW0zvTrz+A MF+RsP6rVxfTy1qgxS0MdldSNchDU3VTVYy/HYydY+2oFqJWyWGffbbzpxNPZBJgauo= X-Gm-Gg: AR+sD12Qy4oyE4iBVz1/f/Y4vbNj0nZInORnjvJQVN+OtbzT2f4wACu7ceHs2f0vIZb mGvPRcNkE6Vunb9YmOndm5cZfS3XYd10NmoPKqnttHaA1Ca06PRCXj6Wwq4NlPkqcWsGUijg6w+ GEy7kseEni+NZO5AGEjyPay3Tzid7zmuzWinu0u+M20mTkuZGKd7Ajk+4Wg8oFk6irzTzV2ycwt cYsksoImq4oV+AgOyos6VsGGa9jrgyHTc+OHw8uS5btCN7DaK5z+FJuP2OC/Z6rd9rTzsKA1Z2h 1P3iZMTUHUrprXJ7PlhpZcR2+r/J75yvf104Te9lRIL3q/1Ln2mc61OLVKecYt/OeaLI5utwtof tpR8SEoAaaWy7ivoaoJA+F3COIdn+9xYGbQp1Xj63jqwROnC6eSLRdbqEkMrbv8IwRlc1bnUGzV 4t+h+Gyr+gb0xroGDkoVB9isE9YB9cENP40vHRs8QbolPvZmcDfQ6U27RSA2v4BBL1xUxYRUeeN pDUz37f6pIYhaALWgdwLSNYzj5NMCGLHw0N2G4= X-Received: by 2002:a05:6830:83a3:b0:7dc:dbe4:3f21 with SMTP id 46e09a7af769-7f461349073mr19255634a34.1.1787422846094; Sat, 22 Aug 2026 11:20:46 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:e0ca:316a:4629:d835? ([2600:8803:e7e4:500:e0ca:316a:4629:d835]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7f43fe7065csm10638335a34.1.2026.08.22.11.20.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Aug 2026 11:20:45 -0700 (PDT) Message-ID: Date: Sat, 22 Aug 2026 13:20:44 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 1/6] dt-bindings: iio: dac: ad5504: add output-range and missing gpios To: Taha Ed-Dafili <0rayn.dev@gmail.com>, jic23@kernel.org, lars@metafoo.de Cc: Michael.Hennerich@analog.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, nuno.sa@analog.com, andy@kernel.org, skhan@linuxfoundation.org, linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley References: <20260822085850.17527-1-0rayn.dev@gmail.com> <20260822085850.17527-2-0rayn.dev@gmail.com> From: David Lechner Content-Language: en-US In-Reply-To: <20260822085850.17527-2-0rayn.dev@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/22/26 3:56 AM, Taha Ed-Dafili wrote: > The AD5504 output range (0-30V or 0-60V) is determined by the R_SEL pin. > > Use standard output-range-microvolt and range-sel-gpios properties to > describe the hardware configuration of the R_SEL pin. Ensure mutual > exclusivity using the not/required logic. Additionally, add missing > vlogic-supply, clr-gpios, ldac-gpios and datasheet links, and provide > a complete usage example. > > Signed-off-by: Taha Ed-Dafili <0rayn.dev@gmail.com> > Acked-by: Conor Dooley > --- > .../bindings/iio/dac/adi,ad5504.yaml | 39 ++++++++++++++++++- > 1 file changed, 38 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml > index 9c2c038683b4..e0123dceaa33 100644 > --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml > +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml > @@ -10,8 +10,10 @@ maintainers: > - Lars-Peter Clausen > - Jonathan Cameron > > -description: > +description: | > High voltage (up to 60V) DACs with temperature sensor alarm function > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad5504.pdf > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad5501.pdf > > properties: > compatible: > @@ -27,6 +29,29 @@ properties: > maxItems: 1 > > vcc-supply: true > + vlogic-supply: true > + > + output-range-microvolt: > + description: | > + Specify the channel output full scale range. The R_SEL pin > + determines if the range is 0-30V or 0-60V. > + items: > + - const: 0 > + - enum: [30000000, 60000000] > + default: [0, 60000000] > + > + range-sel-gpios: > + description: > + GPIO connected to the R_SEL pin to select the output voltage range. > + maxItems: 1 > + > + clr-gpios: This is one that is starting to emerge as a common name, so I would call it clear-gpios instead to match the same name on chips with a similar function. > + description: GPIO that controls the /CLR pin (active low). > + maxItems: 1 > + > + ldac-gpios: > + description: GPIO that controls the /LDAC pin (active low). > + maxItems: 1 > > additionalProperties: false > > @@ -34,9 +59,17 @@ required: > - compatible > - reg > > +allOf: > + - not: > + required: > + - range-sel-gpios > + - output-range-microvolt > + > examples: > - | > #include > + #include > + > spi { > #address-cells = <1>; > #size-cells = <0>; > @@ -45,6 +78,10 @@ examples: > compatible = "adi,ad5504"; > vcc-supply = <&dac_vcc>; > interrupts = <55 IRQ_TYPE_EDGE_FALLING>; > + > + output-range-microvolt = <0 60000000>; > + clr-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; > + ldac-gpios = <&gpio 5 GPIO_ACTIVE_LOW>; > }; > }; > ...