Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp129647pxv; Thu, 8 Jul 2021 16:58:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgDnzSr/A4dclBgV6Vpo3i8zLo9RGXTDuBOIbdRqoZnSNLN50zMh1I68gseXi1EeZh1Q+K X-Received: by 2002:a17:906:b10e:: with SMTP id u14mr24534220ejy.522.1625788717010; Thu, 08 Jul 2021 16:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625788717; cv=none; d=google.com; s=arc-20160816; b=aniByj5wnNJEcrzMHIBmWVZ2ne68+4hrvlYjjQTlE5PQjW3oLDENKoWOkst9vMVGE5 ZTfHkdmnyISz9BABCBgzuAR/ovMv5r03geSBmi2tqv1kIihaQTj8XogDX1X1+q2Wc8hw ch+b/BcQ+jH8eEwJui3u28DlrDghbdjD4gTMSUyCxD67VdnmwFIq6PfLGm5lpDh66Q4t XSYFkjOllUq+rbEhUK8Mh+uV22gxtUjmTQN5LyKohnOc3R3UCw+iXT0q5zS/mDbXS4H0 hDekfsh3dwPUxJgPBoLgLEZm2FAsL5WmEXiPMbqWoqlvoeAliUhZLBbFs35BgkPBcSqE b+9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JxYklUz44zAQ3MzfouqUmQy/qiMtrAD9UXmtJKCtA/w=; b=o351jGJgFzzl6CbzTt63WODgC4hQmX9ZaOckpVc8LGj8sFUqVq2snCiESxx9cNKG4r 0rNWTPJgJ0vJ+znBTTRY/ZufSPlAmcwU8owSrt/czMWv5keaBzASerG2UOCePocqemuT 24rmjAtYKD/pO7Y0eis5TZy0iOqaxYGooDuNgR7AEhKBpmInNOkei0AqI8fvkTJv597t 43BnIOL+0u7+/nP/n7WvcwiVdRpEw2DolltIVgL28W/uhdDU7sUjQk7uP+C37wYapmfZ 6MJ4ImGcxltSPLq7yDt1X4x1xdHAA5xDd3g6WeiOkHPHhNyp4uMQkRsucXuqvLfnsePg o8ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kEiqnCuR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si4646770ede.436.2021.07.08.16.58.00; Thu, 08 Jul 2021 16:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kEiqnCuR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbhGHX7S (ORCPT + 99 others); Thu, 8 Jul 2021 19:59:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhGHX7R (ORCPT ); Thu, 8 Jul 2021 19:59:17 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40523C061574; Thu, 8 Jul 2021 16:56:34 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id i125so7547792qke.12; Thu, 08 Jul 2021 16:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JxYklUz44zAQ3MzfouqUmQy/qiMtrAD9UXmtJKCtA/w=; b=kEiqnCuR7tMsrDslENNLgLV8ythWAXcMIpmWJ1qplv5s886wXjuWdHYg3ytilBi0VN eA3pKnPaPndNSeXEMe3rVAjcE63zXJPxzQ/3emcXVGCimXO1EXLWFY6K1dxc3fS5n5HT MzEiGLm8oMbZ/L6LFLefqg22J44//2ovMNnuaoiTrX/JqpwHByOPJdMw3frg6FL5FUke 1Abi1w1HU5B9GUCe4SFRL+zerr71m9ldADTqHKLx6llGR9qu4E61mWuhy6vHeFU3/8QB +vAxM8n+RaIvwq/CjN9UeQE9FRLmuN89UdAL1mFwz5CyqjG2qKLepIjrO/sOOHMvU47W fOUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JxYklUz44zAQ3MzfouqUmQy/qiMtrAD9UXmtJKCtA/w=; b=ZC5b9OpX1rfNOAfiLP2PxCnl16pBfs4oli/qfmfp1QNoE20wFkq70OX2wqXmELr8TV 3a08rJz/8Zb4F1upbP7yIookqyhX6b2n13laIc0/fkJ8cUnR7XHLCJbWfF/AvIqE4Ncr fsHuq5H88euw7HqAiJHxxkGOwSaAs0gIk/kpbB9nFz03tZeqPsAurW1ZgIzEg9gDstIX WaOgjbpn8c9BfTA4SNrLrVfpXSxyKTJZ8YamY3kYY9qDXPapbRG7cm127zhhFYwjVNfu vrvzAaubIdtCS9FY4TgGjOEg8I9t2X7oCiAEIaJ0CDeSI3FAG6VaBwY2wK4mV/KghEci 8hPg== X-Gm-Message-State: AOAM530ZGaH6WCz22ots/l2wDEJQIEEyQ052ALTgaAXmCMDkB52Hp6PO iVQ04yTL7aFe2RsgtNqr6tA= X-Received: by 2002:a37:8081:: with SMTP id b123mr34932677qkd.231.1625788593329; Thu, 08 Jul 2021 16:56:33 -0700 (PDT) Received: from shaak.xiphos.ca (198-48-202-89.cpe.pppoe.ca. [198.48.202.89]) by smtp.gmail.com with ESMTPSA id m68sm1733234qkc.109.2021.07.08.16.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 16:56:32 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, charles-antoine.couret@essensium.com Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org Subject: [PATCH v1 0/4] AD7949 Fixes Date: Thu, 8 Jul 2021 19:56:14 -0400 Message-Id: <20210708235618.1541335-1-liambeguin@gmail.com> X-Mailer: git-send-email 2.30.1.489.g328c10930387 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While working on another series[1] I ran into issues where my SPI controller would fail to handle 14-bit and 16-bit SPI messages. This addresses that issue and adds support for selecting a different voltage reference source from the devicetree. This is base on a series[2] that seems to not have made it all the way, and was tested on an ad7689. [1] https://patchwork.kernel.org/project/linux-iio/list/?series=511545 [2] https://patchwork.kernel.org/project/linux-iio/list/?series=116971&state=%2A&archive=both Thanks for your time, Liam Liam Beguin (4): iio: adc: ad7949: define and use bitfield names iio: adc: ad7949: fix spi messages on non 14-bit controllers iio: adc: ad7949: add support for internal vref dt-bindings: iio: adc: ad7949: add adi,reference-source .../bindings/iio/adc/adi,ad7949.yaml | 22 ++ drivers/iio/adc/ad7949.c | 191 +++++++++++++++--- 2 files changed, 181 insertions(+), 32 deletions(-) base-commit: 6cbb3aa0f9d5d23221df787cf36f74d3866fdb78 -- 2.30.1.489.g328c10930387