Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp212848rdb; Thu, 18 Jan 2024 00:59:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOz6G63GMzMBliOfSQKnFX0uPEJOc7V+GYdPUjs2YSUbW1c2jBCRzmYkGH4O9C6L+2v3oF X-Received: by 2002:a05:6214:d08:b0:67f:9fbd:6736 with SMTP id 8-20020a0562140d0800b0067f9fbd6736mr469376qvh.78.1705568391959; Thu, 18 Jan 2024 00:59:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705568391; cv=pass; d=google.com; s=arc-20160816; b=TEBsMf01XC01sCD0nlQxGcikxvixjOZ3D0dW8n5NBDwoZUo7D39dwZ58YQRh9DAufx 0y2l6muy2OaTZwRqpwaWhTCNvOFlOgczD2tKCa8YiI0YQ/2qcVL1fiEswbZq8UoZG7Jn MsqPmrjN4DPkGaIAbAUqRTx9rgaTmbZTKLvgMWo0mtpUiJ9gx8i53SjV0eXn9H1mXrFx qhXyhJpsd8hvxiWdtYkxnFCKS5AECKuI+E4IrUrYKq1kdSLLQBTpneeJW9bVQiAwDu8T wRjpisPGQLahfBcqxcu1v/g2+D7yyjy6qUrlpIXtsBEnJgNVZgyu88rjw27B05LyaBgm YRsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=3dE21UqUfx1BG9P06pXKHJBrqpvkxlPj+OgSyybkm4w=; fh=FZgVegd/iNYZg2lya05TuTVrPCTVcNMVzxrxBDfl4gs=; b=FXyDDvp3RHWcRMfARdzxa75OTfrRgXssWqZmy9BvsjOiyECfvArK0nXqCX40kzQ/Qc i0ZvYq9OHsy7LtD95eZVrq4zqXYNYJCXVf9ovFcE7d+p4AIcM2GsT9NN52v2TYqTkOQC uaP19goH17qAN8/nBJmtZDycF0Qf7S8AZyi4mPfB16nTfCPjJGc5YgIkVgzffW1Qwobj 22Wom09B+X5KM73V2pesb2Y9ggauBQwRpGAbw4skzNiDTeuvRbwAHBnZm65Dfb5sEIYq vDAbPUmjwWtKlcrnSe8Q8c3AFEmM6xuRV6sB+4jJLIQI4bvs+A0C7BnXyB4KA1b4TmLO 1jpg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-29924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f24-20020a0caa98000000b006818433b30csi2129174qvb.600.2024.01.18.00.59.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-29924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B379A1C247E7 for ; Thu, 18 Jan 2024 08:59:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98BE8134C3; Thu, 18 Jan 2024 08:59:41 +0000 (UTC) Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9F91B65B; Thu, 18 Jan 2024 08:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705568381; cv=none; b=bprWKvzMN9YkufhJfjboOUXbVD4QoLwAYbw3ShERWlR53UpW5NEWt6Xy+//R2JzyD0qnJZmttEmgwynnNUED96KUTD5f+l3oLPQhjWwey3QNK+JEP1LA+TQtW3jWq+4tuZTSfbMWw/jmib3YsVGj5l5CYIMDvW7hN73TRPdTNog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705568381; c=relaxed/simple; bh=Z+ME5VN8rrkjD60UPCiD8moWnYbIJ6eP398m8HGXerw=; h=Received:Received:Received:Received:Received:Received:Received: From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-ADIRuleOP-NewSCL: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; b=LfqlfrYGnA26QnhmFD2wSKHOM7SwHPoTj3GkBqmjiQarZ2fd+OnsC74drmooTiHqHRMfxzkSpSfE6DxCa23HoOuQ8rqm6B3zaO36ZvLwapwvxKQ7m0MvGYVQmVnMd0ISMjvmFFUXVelDhNHlX8yyGeqSLofs197eaw9tKlRPW3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40I6geAh016278; Thu, 18 Jan 2024 03:59:24 -0500 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3vnm16b3bs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jan 2024 03:59:23 -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 40I8xMXv001124 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 18 Jan 2024 03:59:22 -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; Thu, 18 Jan 2024 03:59:21 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Thu, 18 Jan 2024 03:59:19 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 18 Jan 2024 03:59:19 -0500 Received: from kim-VirtualBox.ad.analog.com (KPALLER2-L03.ad.analog.com [10.116.242.67]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 40I8x0RB005188; Thu, 18 Jan 2024 03:59:03 -0500 From: Kim Seer Paller To: , , CC: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Crt Mori" , Linus Walleij , "Bartosz Golaszewski" , Kim Seer Paller Subject: [PATCH v6 0/2] Changes to admfm2000 driver Date: Thu, 18 Jan 2024 16:58:54 +0800 Message-ID: <20240118085856.70758-1-kimseer.paller@analog.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: C2pnlf4GNyYDzD2eZppyi8hDQ9Hvl6wQ X-Proofpoint-ORIG-GUID: C2pnlf4GNyYDzD2eZppyi8hDQ9Hvl6wQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-18_04,2024-01-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 malwarescore=0 clxscore=1011 impostorscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 priorityscore=1501 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401180063 Hi all, Apologies for taking a long time to follow up on this series. I took some time to test and try out the suggested changes. As for the major change in the bindings and driver, the array of switch and attenuation GPIOs were moved under child nodes utilizing the devm_fwnode_gpiod_get_index() for GPIO parsing. I have just an inquiry regarding the difficulty of implementing the use of guard(mutex)(&st->lock) for my current controller. Is it okay to simply use the mutex_lock function instead? Best regards, Kim Seer Paller Kim Seer Paller (2): dt-bindings: iio: frequency: add admfm2000 iio: frequency: admfm2000: New driver .../bindings/iio/frequency/adi,admfm2000.yaml | 129 ++++++++ MAINTAINERS | 8 + drivers/iio/frequency/Kconfig | 10 + drivers/iio/frequency/Makefile | 1 + drivers/iio/frequency/admfm2000.c | 307 ++++++++++++++++++ 5 files changed, 455 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/frequency/adi,admfm2000.yaml create mode 100644 drivers/iio/frequency/admfm2000.c base-commit: 296455ade1fdcf5f8f8c033201633b60946c589a -- 2.34.1