Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2682478rwb; Mon, 3 Oct 2022 04:18:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ifuufgtYTrlKpVHnoRFGfsqXleOtKwDiTo4fQKU1DcFNZeMn3zsMMaK1/zW+3PKjZEIwl X-Received: by 2002:a17:907:80d:b0:73d:a576:dfbd with SMTP id wv13-20020a170907080d00b0073da576dfbdmr14726160ejb.402.1664795904418; Mon, 03 Oct 2022 04:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664795904; cv=none; d=google.com; s=arc-20160816; b=qwLra7QhMTHNcvahKkwbjE+zAVgVtkQI8peSx0YpcStTqEBvNNgr3VQmWawhpLn0yd hHjCF5YPIQ9XQDhI1Etf5AcSENjVmDKZRVpOe6y9+Z8bCdIHol+qsE6XciKri9yt4bZn +j7hpvQMVd+xLTeg+Euozsfs4N+t/RYH6nrwMmS3lXYj85TVyV5Z4NxgznjSubHDmcfT gWW79Y9VMVnPFMcwZadug4CrOubZJzYs2FOmobpfEdilQY2sqb4J/OdLzrUV9gw1rqxo dYnb2TWLCYEqNy9VnKsW0MYMrW39zmiadENPTcUb+g9LnUPeGlxgHZNZbS3Y9Uibti+F IFMg== 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=BYArcrIHogaN4z+VTz8NmdxRc+s9gy0/ktJZFeS8rnE=; b=gHPKbjyUVY4/yWi6QRaFgQlxpdfiVymA2x2NbWA0owzbtFDiZplNwFNlsRCDyHC6Tf 5MzDJ3Uptp+/sWJnO3PHMtTPMaz7sK7hXNVC23B53TJwHmts5Fv4aMj+vuk0nFsjFcbj eU8LMcC+KkWspOitUXb79PxDDbbyAs/DXDBWegnuHBtGN/4bygQNWjmddFc+L2rO1kK5 d7g57UYLtFi5HWxY5RnXTqiFiCpe9o5qUrwUKDoJDBizo/AwVwo6TMH0vYZSvPYf/CSP yd06lMrAeGJBxauR0dm30R0Bd9TzPpGyShUeW8yh977/ob11DAsYz5/W8Y6qEJGTcJwA MA2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp23-20020a1709071b1700b00782ee59ad7fsi9162543ejc.977.2022.10.03.04.17.58; Mon, 03 Oct 2022 04:18:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbiJCK7f (ORCPT + 99 others); Mon, 3 Oct 2022 06:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiJCK7b (ORCPT ); Mon, 3 Oct 2022 06:59:31 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66742FFCB; Mon, 3 Oct 2022 03:59:30 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29395GFk005506; Mon, 3 Oct 2022 06:59:27 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3jxfd6uhf9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Oct 2022 06:59:27 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 293AxQjD015659 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Oct 2022 06:59:26 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 3 Oct 2022 06:59:25 -0400 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; Mon, 3 Oct 2022 06:59:25 -0400 Received: from IST-LT-39247.ad.analog.com (IST-LT-39247.ad.analog.com [10.25.16.10]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 293AxC2P017431; Mon, 3 Oct 2022 06:59:15 -0400 From: Ibrahim Tilki To: CC: Ibrahim Tilki , , , , , , , Subject: [PATCH v8 0/3] iio: adc: add max11410 adc driver Date: Mon, 3 Oct 2022 13:59:00 +0300 Message-ID: <20221003105903.229-1-Ibrahim.Tilki@analog.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: Jqho5-OY3zw2V1JECGafI4gdBSWPRUbB X-Proofpoint-ORIG-GUID: Jqho5-OY3zw2V1JECGafI4gdBSWPRUbB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-03_02,2022-09-29_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210030067 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Hi Krzysztof, I had accidentally inclueded a different binding file in two previous patch, thus irq flags slipped my eyes, sorry for that. Best Regards, Ibrahim Note: No sign-off tag for David as he was unreachable when the initial patch was sent. Changelog: since v8: - dtbinding: remove quotes around adc.yaml - dtbinding: use defines for interrupt flags since v7: - add asm-generic/unaligned.h header (reported by kernel test robot) - dtbinding: specify 2 items for interrupt-names - dtbinding: reorder required block since v6: - don't require avdd supply if not needed since v5: - allow user to specify both interrupt pins - keep irq info in max11410_state struct and use irq by name - get irqs by fwnode_get_irq_byname - don't allocate trigger when no irq supplied - fix deadlock condition in write_raw - minor style fixes - fix devicetree binding errors reported by dt_binding_check - convert module license to GPL as suggested by checkpatch since v4: - add in_voltage_filter2_notch_{center,en} attrs for sinc4 filter - add ABI documentation for filter sysfs - check interrupt-names property for configuring gpio of max11410 - remove hardwaregain property - add scale_available property for channes using PGA - separate vref regulator error -ENODEV from other errors - don't register trigger if no irq specified - style fixes since v3: - prefix defines with MAX11410_ - group vref regulators - use builtin iio_validate_scan_mask_onehot - validate iio trigger - move scan data into state struct - require vrefn regulator in DT if used by any channel - don't require irq for triggered buffer - remove filter sysfs attr and ABI documentation - add in_voltage_filter[0-1]_notch_{center,en} attrs since v2: - remove bit position shifting, use field_prep instead - reduce the amount of reg writes in max11410_configure_channel - add error checking in max11410_parse_channels - remove some unneeded blank lines and minor style fixes - remove scan data assignment in max11410_trigger_handler Ibrahim Tilki (3): iio: adc: add max11410 adc driver dt-bindings: iio: adc: add adi,max11410.yaml Documentation: ABI: testing: add max11410 doc .../ABI/testing/sysfs-bus-iio-adc-max11410 | 13 + .../bindings/iio/adc/adi,max11410.yaml | 177 +++ drivers/iio/adc/Kconfig | 13 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/max11410.c | 1050 +++++++++++++++++ 5 files changed, 1254 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-max11410 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,max11410.yaml create mode 100644 drivers/iio/adc/max11410.c -- 2.25.1