Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp685701rdf; Tue, 21 Nov 2023 13:34:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeVJiBhsT8meUjkB/cT1WZCXO3Sm74NJap/yh/bj6fwoxtH0ix4cY4yNhKX5tuNDKpK4go X-Received: by 2002:a9d:754f:0:b0:6d6:47c7:1abb with SMTP id b15-20020a9d754f000000b006d647c71abbmr592538otl.22.1700602467943; Tue, 21 Nov 2023 13:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700602467; cv=none; d=google.com; s=arc-20160816; b=GCD75CgrAUNIx+IyvsiU0nxsZOmxaN34hQg5zLfKfCqX5qmYhCjAX4MyKF81ljXycn 5jrbi1mCePKBiMkN0iknXRnMbrIz7uuCgLuw7Zi3COKkTr4bbwalxykZpYZqS98yHqrn XET8gwrpPaZqz3mXbrWl1uny48/kVDmtH7wZ9E6+Sbce0gxgnqySd+uUa7F4G6aeRHnP 1T9cOoh2Qq3VBT7YywHXNbLMlm/8KiFcfjkHXvth71FNZ/RLKavpBGpSx20AGlJMHIuT fQk4mvV3/sN6bwd5F/fAtufx6V/ob1wnbhar3QBh7w1s50SW/MkmIOiBu1yflvzhLTMp EB9g== 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; bh=jFV57SXRkzkKPx4/sxjKPsQyJ7n649F1G/YsOrpI+cc=; fh=xsiAADvREAY/eUa8Nz/rFXFDSwS7UEQzU3dBwJcuX9k=; b=NVllcvW8Zku86FXR9fOGy1+i+tC6BrHQxPXizrUQm2E/1nLZ8wjPDo7seCZlBQhiY9 OKS71kXlXyrX0DFj7k6n0BqaCSASft6CsN6YheEocmkgkYR7vt3WuscpnMptTdE5Ctl0 5oLAC3a5jUKrVwZEd1wwFHrb10OmZaSJaWnSNzvRHeDB1icdsELm8st/abAIx103PCzl j6UV71IKbAskl9OP9lv4OIn5IRAmJiFE2WpfJwdwI3mQZwr+tcV6H8evvv5Ay3yjAk/Y bZbTtJzilid/HXDM4hAYQBveRBeW2oYLzu/cs4PyQ5e1cW8JVmk4hfYRV1JvIfMmMsdN MefQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a10-20020a631a4a000000b00563de199314si11278604pgm.896.2023.11.21.13.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 13:34:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B0449802C58E; Tue, 21 Nov 2023 13:34:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbjKUVe1 (ORCPT + 99 others); Tue, 21 Nov 2023 16:34:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjKUVe0 (ORCPT ); Tue, 21 Nov 2023 16:34:26 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F0FCF4; Tue, 21 Nov 2023 13:34:22 -0800 (PST) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3ALGQcPe024636; Tue, 21 Nov 2023 16:34:09 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3ueu275ev1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 16:34:09 -0500 (EST) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 3ALLY7D8056886 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 21 Nov 2023 16:34:07 -0500 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 21 Nov 2023 16:34:07 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 21 Nov 2023 16:34:06 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 21 Nov 2023 16:34:06 -0500 Received: from work.ad.analog.com (HYB-hERzalRezfV.ad.analog.com [10.65.205.129]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 3ALLXrCV019788; Tue, 21 Nov 2023 16:33:55 -0500 From: To: , , , , , CC: , Subject: [PATCH 0/7] Add support for AD7091R-2/-4/-8 Date: Tue, 21 Nov 2023 18:33:49 -0300 Message-ID: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: AI8lvFFjUVhbewESITz-PYV-jsJFqTD2 X-Proofpoint-GUID: AI8lvFFjUVhbewESITz-PYV-jsJFqTD2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_11,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 clxscore=1011 malwarescore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=975 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311060001 definitions=main-2311210168 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 13:34:26 -0800 (PST) From: Marcelo Schmitt This series adds support for AD7091R-2/-4/-8 ADCs which can do single shot or sequenced readings. Threshold events are also supported. Overall, AD7091R-2/-4/-8 are very similar to AD7091R-5 except they use SPI interface. This has been tested with raspberrypi and eval board on kernel 6.1 from ADI fork. Link: https://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/ad7091r8 Marcelo Schmitt (7): iio: adc: ad7091r-base: Set alert config and drvdata MAINTAINERS: Add MAINTAINERS entry for AD7091R iio: adc: ad7091r: Move defines to header file iio: adc: ad7091r: Alloc IIO device before generic probe dt-bindings: iio: Add binding documentation for AD7091R-8 iio: adc: Add support for AD7091R-8 iio: adc: ad7091r-base: Add debugfs reg access .../bindings/iio/adc/adi,ad7091r8.yaml | 101 +++++++ MAINTAINERS | 12 + drivers/iio/adc/Kconfig | 16 ++ drivers/iio/adc/Makefile | 4 +- drivers/iio/adc/ad7091r-base.c | 98 ++++--- drivers/iio/adc/ad7091r-base.h | 82 +++++- drivers/iio/adc/ad7091r5.c | 55 ++-- drivers/iio/adc/ad7091r8.c | 272 ++++++++++++++++++ 8 files changed, 551 insertions(+), 89 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7091r8.yaml create mode 100644 drivers/iio/adc/ad7091r8.c -- 2.42.0