Message ID | 20241029073857.753782-1-ahaslam@baylibre.com (mailing list archive) |
---|---|
Headers | show
Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 32051201111 for <linux-iio@vger.kernel.org>; Tue, 29 Oct 2024 07:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730187543; cv=none; b=aARggUfwH8QH+2hBt31tntt+xwG47UvB/lmBHIT27E/vru6RcydX5AKcya0S6YdJRLQ/kKW7i+diW7cOxPQ4gxwJzvsa+oZwpnOoWZjHQCwmSt3ug/Wjdl7+sFQ4+ZfNsHcu8bXNDgpjWhCEJzogdtAiJi8L3mnAtaWUsGP6QU0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730187543; c=relaxed/simple; bh=upa5PmzLtBu0Y3nfdOooxdpKI690k6f3BnZSYtMoQ0U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aNLnWD6pOIHXb5E2ZpNEKh1bpioL6nn1cNXMGwUE6CWNIuL5cVeA8PGaDt7TtTXz+nywU3mvk6GmHRjrh6YcxZIJriUitd/0JhGnITerBkLY7df/kEXZ4OYttkaR7pb4FZSQQ92YvQpN7nnzqm2EYLte3uXPF+oLPhUhFKzGCVI= 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=X677PZ5s; arc=none smtp.client-ip=209.85.128.43 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.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="X677PZ5s" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-431616c23b5so36183445e9.0 for <linux-iio@vger.kernel.org>; Tue, 29 Oct 2024 00:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1730187539; x=1730792339; 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=1Hq1VDxB7LVSJUoA1SaWPK+8W2w7PC8ifAzEZRqYKQc=; b=X677PZ5sKdYfYTjFBbbpJkcZUzmAyWNuet6Yya/SED2M7NSFTe2i/Cue9yQxhkyyAe qGoOFZatSYALd6toa6meCl80SVJ5VJiVYkT1QyYp/ZmZLk3MMA5C/Xwd811/WktL6fQi Ay08CtTZhmc3T/OtMvmb68kbuyfu9aJXK23WX8xzShv8Y330WXquiO6tykStAO0mqPKS olGTSKFbe2QH0UilCZqDErCSXcB7JzeswapIcwrP9YwOILPi/+PeYqyJU5Vrq9TlBN9w xjLbkcDVubtJuY2GN4GjAXiT0L/5J+tzoDhf8ZlsezHRA8V4REDLKH59KirbqGgJNker zONQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730187539; x=1730792339; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1Hq1VDxB7LVSJUoA1SaWPK+8W2w7PC8ifAzEZRqYKQc=; b=ct/iNvQplZFQ3L4+AbBpshKw59l3+x8FLQhgIuVaAIQSmyt1AFWq6VWJGwfmZTOwUC 93DVlVzp29tFej37JWp280+ya+igKVaXRnMiLuraKi0a5W2My80JFLZa08p/IcVMx6JE bslR1FSFXtngVZXHKXeOCuyV9ZroQIVZeYvzrDUXhpFb8LDgkdn5HHRPjDM3q64S29jI ADaZ+BLhH5Tx0Z9ivGnSVWLQ0yi07PLrqWvtPpjrdvd5VHoGgPju/m8E9JfT30rKkDvQ 28FaHEPmmYLz88x9pOvfmDrr8tJbRANS56jogyULop/wWSawjjQ+2FrIIeL0fzIOPimZ Njdw== X-Gm-Message-State: AOJu0YyIa63bJnbna24vRyL9eVPQqnbGpqaAQ0gPenHpSuSmM8Rcugyp LHJGIqjdsXa+E1UJGlAYUtOuxzEvMSZchDmy3FmsSFY2vhoxhLDuBFlI2j7LQzw= X-Google-Smtp-Source: AGHT+IEtOAQvtDnbjkZ4I95gauRiniPeISWYzewJLSNFQFAIdFxHpv6/j97ipl7h/ugJ38Pri5a+Ig== X-Received: by 2002:a05:600c:a0b:b0:431:4e33:98b6 with SMTP id 5b1f17b1804b1-431b5717175mr7901755e9.5.1730187539623; Tue, 29 Oct 2024 00:38:59 -0700 (PDT) Received: from axelh-ThinkPad-T450s.home (lfbn-nic-1-251-169.w2-15.abo.wanadoo.fr. [2.15.94.169]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058b714fesm11692939f8f.71.2024.10.29.00.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 00:38:59 -0700 (PDT) From: ahaslam@baylibre.com To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, nuno.sa@analog.com, dlechner@baylibre.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Axel Haslam <ahaslam@baylibre.com> Subject: [PATCH 0/6] Improvements and Enhancements for AD5791 DAC Driver Date: Tue, 29 Oct 2024 08:38:51 +0100 Message-Id: <20241029073857.753782-1-ahaslam@baylibre.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: <linux-iio.vger.kernel.org> List-Subscribe: <mailto:linux-iio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-iio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
Improvements and Enhancements for AD5791 DAC Driver
|
expand
|
On 10/29/24 2:38 AM, ahaslam@baylibre.com wrote: > From: Axel Haslam <ahaslam@baylibre.com> > > These patches aim to improve on the ad5791 driver: > - make use of chip_info / match tables, and drop device enum id. > - Add reset, clr and ldac gpios that have to be set to the correct level in case they > are not hardwired on the setup/PCB. > - simplify probe by using the devm_* functions to automatically free resources. > --- Reviewed-by: David Lechner <dlechner@baylibre.com>
From: Axel Haslam <ahaslam@baylibre.com> These patches aim to improve on the ad5791 driver: - make use of chip_info / match tables, and drop device enum id. - Add reset, clr and ldac gpios that have to be set to the correct level in case they are not hardwired on the setup/PCB. - simplify probe by using the devm_* functions to automatically free resources. --- Changes in v2: - Fix probe error print using uninitialized ret. - Add documentation for new struct parameters - Add review-by tags to device tree bindings - Link to V1: https://lore.kernel.org/all/CAKXjFTPwN2TYW6sq1kj3miZ0f5OqKX0aTk8eGf1sj9TBk1_e=A@mail.gmail.com/T/ Axel Haslam (6): dt-bindings: iio: dac: ad5791: Add optional reset, clr and ldac gpios dt-bindings: iio: dac: ad5791: Add required voltage supplies iio: dac: ad5791: Include chip_info in device match tables iio: dac: ad5791: Add reset, clr and ldac gpios iio: dac: ad5791: Use devm_regulator_get_enable_read_voltage iio: dac: ad5791: Use devm_iio_device_register .../bindings/iio/dac/adi,ad5791.yaml | 39 ++++ drivers/iio/dac/ad5791.c | 203 ++++++++---------- 2 files changed, 131 insertions(+), 111 deletions(-)