Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4802735ybl; Tue, 4 Feb 2020 02:12:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxl9DJMvf/s8JVoqGzUv4arhf6RRZ1JccO/0b0hxN3007OjCj5e43SNw8EjqE3zoLyhrqxL X-Received: by 2002:aca:d6c8:: with SMTP id n191mr3044740oig.103.1580811130811; Tue, 04 Feb 2020 02:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580811130; cv=none; d=google.com; s=arc-20160816; b=gshl49Q+WKuIA4O5/U/IOVbz1qwASjFE6hutfbVy00sPet++vP8nkmBcEWTw5M9BNk 6JkGiuFmQmsPmoHVpUHZp2i/wqgKa06ldNhP/QHvzxPTa4u9ckHaEuNccrARAFtm5Jhi 7grRDksCrVIdMURhS3qYz/6M96iBuwb8Ut2lC9K/c4nR0isDZbA2p3ZNhwt/uK3M/wQ9 OyvZ2qmObvEjg3ni9IrLX6wQ3wRoj+M7t7DwirRUMZBibTtyToV/AS9NTminWPNFUXhi Wnusus7994HP9CGPfDRFuQjsSe6gjpJRmy4vvTzBWou7XQANmx846Wn+QGkghW59+XaR klvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=TnBSytEiuHjckJKgIBTRVB3ZknyBFrwKpM8hL2Jzguk=; b=aDB8efOT59Iatt/WqSly0/OEfOOp5kAzklkwB+N4W/TH25vTG+Vx2uejG2HKdBHVfo CwZnnbVhP+TE+phyayBolMTwWmqBfDD8+fXbwjRjZsRBElzcH8+OOLFAz6PmMxI2KljD Bpl+rGMI97G3Gik6M0NjwjqZCSK2R8fgzYpygoC4NcDTpW+IL2jtrxBTzyF9nUE4/QxO 9dtQP3CWaBlSjyO/VdYbnTT5kPd8PvMamMWn19W6M6b7KiyxE+QxlWiISHgKsbN29d2j 1gTaI48QTQVyOGoeSfS1tKmuchvdIvYfZfYXcYGf4ftxbdHv36xcX+mmBiGPyecz81D3 L4VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wb3Mffm5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si11666210otk.164.2020.02.04.02.11.54; Tue, 04 Feb 2020 02:12:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wb3Mffm5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726864AbgBDKLB (ORCPT + 99 others); Tue, 4 Feb 2020 05:11:01 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:38910 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726675AbgBDKLB (ORCPT ); Tue, 4 Feb 2020 05:11:01 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 014A7H6a001051; Tue, 4 Feb 2020 11:10:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=TnBSytEiuHjckJKgIBTRVB3ZknyBFrwKpM8hL2Jzguk=; b=wb3Mffm5nr64Cy7DS5Ugp9NJ58r5+3SliuunDgsZmtp4Uzt5Y/crEAjOJKw/Z1ONOIrv 6Z40Oa04gMOmNrdxiYLAGZreVnLAOSDMi8nllw6SvVPo45PdJr93LPs1wtso/SP2lMfE 73WSgSPjhB1OnB1x4eC6iHgjopnetFwVp+E16aSLEOBN2Phr1dAoQmX0xa08U90hTzNg 7lv4S7UmFwmxC1jIOlp+qm3l4YcfIoCIyUBReFFgfKXkH5aU0uArkEcmGYIz9nwfA3z0 Q98loFxGqyD3N1W3Z3NcWpNjnqEG+LfzxbnOtfzpiVT6262tDvAMFVGdQ8V20MGcMAkI Dg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xw13nr6wa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Feb 2020 11:10:41 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7F5F810002A; Tue, 4 Feb 2020 11:10:30 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 631C82AD9D8; Tue, 4 Feb 2020 11:10:30 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 4 Feb 2020 11:10:30 +0100 From: Olivier Moysan To: , , CC: , , , , , , , , Subject: [PATCH 0/4] iio: adc: stm32-dfsdm: add scale and offset support Date: Tue, 4 Feb 2020 11:10:04 +0100 Message-ID: <20200204101008.11411-1-olivier.moysan@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG8NODE2.st.com (10.75.127.23) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-04_02:2020-02-04,2020-02-04 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add scale and offset attributes support to STM32 DFSDM. Also add scale support to the SD modulator, which can be used as input for the DFSDM. Olivier Moysan (4): dt-bindings: iio: adc: sd modulator: add vref support iio: adc: sd modulator: add scale support iio: adc: stm32-dfsdm: use resolution define iio: adc: stm32-dfsdm: add scale and offset support .../iio/adc/sigma-delta-modulator.yaml | 4 + drivers/iio/adc/sd_adc_modulator.c | 108 ++++++++++++++++-- drivers/iio/adc/stm32-dfsdm-adc.c | 107 ++++++++++++++++- 3 files changed, 207 insertions(+), 12 deletions(-) -- 2.17.1