From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 DC9C724501B for ; Thu, 12 Feb 2026 18:20:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770920424; cv=none; b=kQ8SIpAsl0adbx/OIMCSVVSO/aHTdzL2e1wnikzEkBA+haP8LAMvFnNRbtm7Nqi24aEGqW5xwLyJ3vcQpWqWE6F74ceDYzKt8Rjzrvtaho3YH2I8SdntyaGFZWPA2xngc/jRP2pp8wgKSVOph3FP5tplfgzgO+PE4fZtHShKEks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770920424; c=relaxed/simple; bh=uVa+/wT3KNLi8Q8FvKRnSsnebspAdMUzmu8d9BvGiTA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vCB7Z4ix+Gr3+n1TqxcdhYTgK+Mz26M9SDNqmuUHgkwIkCSoRx/+HWDeiBUhA57SeMXho+oWOgg7EbRNLbXTZsK77IMYBKvuHlx7MZgEV3IJcafkKbMv/yR0klBSrCfnKky/FmsRKg8tkF5a6XEn+7AC7ilxhsi1rHzI4tCfILc= 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=Ywr+ulJD; arc=none smtp.client-ip=209.85.221.52 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="Ywr+ulJD" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-43767807cf3so108749f8f.1 for ; Thu, 12 Feb 2026 10:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770920421; x=1771525221; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8E3QEIEUXqaGRqVfLNoA5ttIhLZ1wRahVarTW2/Waqg=; b=Ywr+ulJDq1lCI17n1lzkNvhPrf/eRQg9rbnIxaz61F51boA1l3EdrljY+0J4Q24Rnn LY/7y9ChFWLW6d6PdeLEwtsGjcQYtlQkh/9w5yje0fBYQiweecLlpQ61ppiU9rbfyTgE K6xVzsrmMhgepB9tkX16zGm9zCwcmwv/aJd2Hd/3R0+bTpmfpgb2bg/K/Tj50bs2RrgT ih4qpqbxaMHFwQgNKQN7zw5e+XjZCQf5r70obj71zVLbl1Erxgsw4rw07kY6+sGk0lel fnPcSr0EzWWAz04MvW6mWU+qLFILX/+Lf5W8cu8Aac4FIm99v+QQmMrzRP8vgit89vkD gY9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770920421; x=1771525221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8E3QEIEUXqaGRqVfLNoA5ttIhLZ1wRahVarTW2/Waqg=; b=jcwnYKQ21ZhhYHhzEWbcwb4ZlAf3g2CRCbpaOxkjZHyIczgEFvAKrvzV4sDxEmxPnl TdYTfxS0kPzeXlk2Cqa+H61bNv/WiYJwGDowlScl2iToISzhitjiPAmZ0pU2qAtVilXs ZU9P2mU4xrkAPX1a2JVJAuw9ainuKpnrR5LYayIvZ99v0ngaBBlJuGRMLA4NQRabhDAV QCTz5UNFF6v1h5jY0SLOJ/I/pDKFNaEwpehR9fKokWI04UCcP81hbjpygr0Hqg2B/muq 16b8xAjpLtoJr3odUtiS6JyA2qTR/d2tsyFqvpxlGezReSZaLGz6M9CJq4z+RHvmV+zi J2BQ== X-Forwarded-Encrypted: i=1; AJvYcCVWIum5TSYT/GqK/ZqvoFfVhf+cMcH1xDhtuy0O375f2ferXs6MYO/xTgIUtIrt4D9ea78gFzwwVPtmOTI=@vger.kernel.org X-Gm-Message-State: AOJu0YzdAmZ306Br5jW9uTbluYuJEd8HSsB2AaNWcO6KjoBNW5Uav8Ik 2kGV311+rXW+sW0ahYiLLsusAEQpcnu36LOsPbDuDPFtNM4QexyGMhHj X-Gm-Gg: AZuq6aKT1ki14bzMwtu6HLThWEo/Wajy4ItaqvwPmjramtal3qkOoSMrzJCIsjNnIxO Y2hu/9xJQOw97YHGkdbwU4c7pBmHVNvZZQiYm9coMUIgd3g0Y5oJfrN3/2VbvOTTGe4DIMSuYCL zDkTXkdMidHWANJe1rWyrwedMC2TCbR6FPrBVHpvHVUhluUSFsF4dVRnBqcEK129K3YLd+lDRX5 HJnPOWSWacU6uUe9vWUDjXAz7hxRsfKR3DGDt6pd9sALaFV0QMDxTRdiV8Z9YnDXoNCgS9kGTNN obvsMitY5SyDJ6RjruI1hkyFCG7KKPhWNkRScFGLJJ9J5SJBRb5oyVqNkWw6ihCNUVyfftSi1iw mdO1H6Kl66UIHUc7JcEmhVlRKS60aD5/JnCHMf7ZwCllPY5qC6abMZBneyJHT+rNjJxvN1dpZx/ On/YacVrnxS6oTFWLe6uQ2LzB9DSRZbzkn3JfUWAJfu61XdwHQhYIdvCORGdF5ySFK X-Received: by 2002:a05:6000:26c2:b0:437:7770:d058 with SMTP id ffacd0b85a97d-4378acd7296mr6978525f8f.63.1770920420975; Thu, 12 Feb 2026 10:20:20 -0800 (PST) Received: from db07.UM6P.local ([196.200.180.25]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43783dfc2b0sm13239933f8f.21.2026.02.12.10.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Feb 2026 10:20:20 -0800 (PST) From: Taha Ed-Dafili <0rayn.dev@gmail.com> To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mentees@lists.linuxfoundation.org, me@brighamcampbell.com, skhan@linuxfoundation.org, Taha Ed-Dafili <0rayn.dev@gmail.com> Subject: [PATCH v1 0/2] iio: dac: ad5504: fix voltage scaling and add missing bindings Date: Thu, 12 Feb 2026 19:19:53 +0100 Message-ID: <20260212181955.42724-1-0rayn.dev@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes the voltage scale calculation for the AD5504 DAC and updates the devicetree bindings to support the necessary hardware configuration. Previously, the driver calculated the scale based on the VCC supply voltage. However, as confirmed by the datasheet (Rev. B) and discussion on the mailing list [1], the AD5504 has an integrated precision reference, and the output range is determined strictly by the state of the R_SEL pin (0-30V or 0-60V). To address this: 1. Patch 1 adds `adi,output-range-volts` (and GPIO equivalents) to the bindings to describe the hardware state of the R_SEL pin, along with other missing properties (vlogic, clear, ldac). 2. Patch 2 updates the driver to use this property for scale calculation, falling back to the 60V range if unspecified, while retaining the VCC regulator enable for power. Link: https://lore.kernel.org/linux-iio/20260210121032.4630-1-0rayn.dev@gmail.com/ [1] Taha Ed-Dafili (2): dt-bindings: iio: dac: ad5504: add output-range and missing gpios iio: dac: ad5504: use adi,output-range-volts for scale calculation Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml | 20 ++++++++++++++++++++ drivers/iio/dac/ad5504.c | 15 ++++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) Taha Ed-Dafili (2): dt-bindings: iio: dac: ad5504: add output-range and missing gpios iio: dac: ad5504: use adi,output-range-volts for scale calculation .../bindings/iio/dac/adi,ad5504.yaml | 38 +++++++++++++++++++ drivers/iio/dac/ad5504.c | 26 ++++++++----- 2 files changed, 54 insertions(+), 10 deletions(-) -- 2.47.3