From patchwork Mon Dec 2 10:09:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Ranquet X-Patchwork-Id: 13890248 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 CB64A1FAC52 for ; Mon, 2 Dec 2024 10:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733134472; cv=none; b=fdbKPiGBopV50i1l3o5okFolJBarwoA82dyf134HGmnTpCjl1a0889sC8aDGfdHqd4thYk+M9jOnYD+jUyXkJfOj0DcYGF+pO1dauLZJvXBiTjijhHxUJdpj7k1wKQQV0/LC/X7XbBF03b5q63Hi5HVu5PR3Es+YH/BoKvElgIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733134472; c=relaxed/simple; bh=y89btrVZZHWMs6tFQVeVoCpJGbf3KUnvEJFPQGsh1qE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=lH8Qm5v89UvQkQQLX2yMWtWYZ1ukIscQymDTU9lw2x/3aQJv/xyrkw2+EdwpvnnbEFEwRbnrac3JIXvatQNOSpQNYjOuXJxacx+yJOR4+LJSxGwlehulgVHPMuj5hn80L7GAD64NjT0es/74Q3PF6tsF0OT3QQJauUtmspsDA/E= 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=WI5LKMdR; arc=none smtp.client-ip=209.85.208.180 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="WI5LKMdR" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ffced84ba8so36465061fa.2 for ; Mon, 02 Dec 2024 02:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1733134467; x=1733739267; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=MEqu8QTTmJEH9b+tgcljzF1wPRZvnpRGaZo9l19yhks=; b=WI5LKMdRcFrPoL//rzJE58z4pyqRrIkPFDU4pzP2yGfuvzjSxJLJGmAl805RTA8aRC dYTtrFoZFD9H/ZIHnzOA1UJCMJwOOKTAp7MvXZUIU0BNDsGVXoW86aN9zBtZcioVFCWL ZMUSjKM8/Sluli6mFT4J02eVRZ74AqxMJdJtQLvlhRGmPuy8Lj+LBYs4Haxh2l8FuC5c iknCp20QBNWQMElV+Jfo8INeVGjROv9nYNH1HaCe/T8gNJjimzDR/lLSMDQikgUXDH/7 CbZJS7JyZKyAquOOAdw/69ktilttlQPfUvdlsC/PbS7e/RKzXdzQ3QWHO4CI+5q3cM1j 5pYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733134467; x=1733739267; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MEqu8QTTmJEH9b+tgcljzF1wPRZvnpRGaZo9l19yhks=; b=bEoce2gT2bCI/F2RLmW5C98J9ja5U6Y+Og31LkGWq5RgjsX2sTn1SRqnZMTCDsTI5Q mzn7XNHTA1X+ts1pTnluJ+yMkPffuLqP1XKonasG/RwSoIqcxskL/iLVSBX2DIYTYFeS uY/tYWCV/eWD97SBM51j11nzcvo/2JL5bOxTXuGHbYKplIcfuWOkq4npL9UgTtYfjG19 gxNqdDFqr3V1nwYrBhMcTk5sQKoMpK6DRBDo7Np9qj4hMFS6JiV3jcM+BEgSnYdM5sjf zXKMhzR3j3pE80ZqEmyAiunteB3vXXdwhDo2iX1xb/9OPMPa9ZSypWMlyEctbztl6gVK dg/Q== X-Gm-Message-State: AOJu0YwRdYnFgsBQ/Ghe9j/kXTgWakuHU8Tmiq8XO00BDHw/nVRLxFzX iZRhw0hoadWT1TXA7XLBpgw4cau48iRuIE+CyYv7wVycb6kdONzbHGZOWjbslaM= X-Gm-Gg: ASbGnctnqqryDO3+pCeBK/Ni8tEuo3M6aq27xPjkF+sEyXwXspnQ/VHnGSHVHNjHiDi EaXO4QxnQRoP9yQTE6TR1LHoTw54+irwf4IkmRJlLuufiPogtKYOyA9GUZOhUJmobd8eO2YUdss ClY7lHuc9AUAuILTxtn1rMMOMum6KR3g7XyFbcph37g1FK/+CU8b7pyLegHdBtNpmrLHYMAwDGL rV8tYkiZzE/L8wixblwPE4Www2bux3eC6MzHBnPoGVPML11VPSF5YmXnmxJUj0nuJgsByY3fZ/K GKYHjtB27ADBNrx82pZs X-Google-Smtp-Source: AGHT+IFouL2tbzASUTdPpFT+L+a+KMjLRYgELVVpgbmS4v/eYLV2yBBgeVOSFMTcgCxdfeHhL4SyXw== X-Received: by 2002:a2e:91d1:0:b0:2ff:cae1:2297 with SMTP id 38308e7fff4ca-2ffd60cfac5mr107823531fa.26.1733134466887; Mon, 02 Dec 2024 02:14:26 -0800 (PST) Received: from [127.0.0.1] (alille-653-1-300-114.w90-1.abo.wanadoo.fr. [90.1.180.114]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434aa7e5e59sm181138325e9.44.2024.12.02.02.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 02:14:26 -0800 (PST) From: Guillaume Ranquet Subject: [PATCH v3 0/2] iio: adc: ad7173: add calibration support to chip family Date: Mon, 02 Dec 2024 11:09:51 +0100 Message-Id: <20241202-ad411x_calibration-v3-0-beb6aeec39e2@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHCHTWcC/33NSwrCMBAG4KtI1kYy0yaNrryHiEyT1Aa0laSEl tK7m3YlIq6Gfx7fzCy64F1kp93Mgks++r7LodjvmGmpuzvubc4MBZYAIDnZXMeboYevAw15naN RqoAK7FFrlg9fwTV+3NDLNefWx6EP0/Yjwdr9yyXgwGWjUdimlkaLc03TOnYH0z/ZKib8ULD6q SAXXKkS0JIpJNGXsizLG94fTs/9AAAA X-Change-ID: 20241115-ad411x_calibration-2c663171d988 To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Guillaume Ranquet X-Mailer: b4 0.15-dev Calibration on the ad7173 family is the same as on the ad7192 family of chips and mostly uses the ad_sigma_delta common code. Signed-off-by: Guillaume Ranquet --- Changes in v3: - Small fixes to the ABI documentation of sigma_delta - Move the system calibration mode to the ad7173_channel to avoid yet another allocation. - Link to v2: https://lore.kernel.org/r/20241127-ad411x_calibration-v2-0-66412dac35aa@baylibre.com Changes in v2: - Add a common ad sigma delta ABI documentation to describe calibration nodes that are common in the sigma delta family. - Link to v1: https://lore.kernel.org/r/20241115-ad411x_calibration-v1-1-5f820dfb5c80@baylibre.com --- Guillaume Ranquet (2): iio: adc: ad7173: add calibration support iio: adc: ad-sigma-delta: Document ABI for sigma delta adc .../ABI/testing/sysfs-bus-iio-adc-ad-sigma-delta | 23 ++++ Documentation/ABI/testing/sysfs-bus-iio-adc-ad7192 | 24 ----- drivers/iio/adc/ad7173.c | 116 +++++++++++++++++++++ 3 files changed, 139 insertions(+), 24 deletions(-) --- base-commit: 744cf71b8bdfcdd77aaf58395e068b7457634b2c change-id: 20241115-ad411x_calibration-2c663171d988 Best regards,