From nobody Fri Sep 25 00:40:31 2026 Received: from mx0b-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 C520736E477; Fri, 18 Sep 2026 07:36:50 +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=1789717024; cv=none; b=lIByNOAGn4C0lPvxJi2VKILX+BkJr4iIXq3j4arSneJWLOLjAL44DuuqVDrPYVo2w86gBkJcI8cvcprAZPWBN1VCMhz6sMH4TnppYeqz7gkhKREjP5oEpd5kaGrHzCRmGcmIP6fi+m3oyXudAyX/SnquGbUrQNpygN38hjrkksY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789717024; c=relaxed/simple; bh=kaCf1JN87prBH5H46VXgbn71d9g35Qr2/GG6rTHH5Hg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=h7MgqEFDlUCLos4PhIzM+sGHDKRA4cxMsZ+USB3HIwn102/ds8Zz7ScVw/rEM8aE+QSrJqoGtdiGXSIn5nogJe7VAUzcOzpaEnR7FJwt0/eCXjvTNIDywrbGwgHJDGrFV1Vqh3j+G+sxfgqIun2XX3EdtkIs5/QFUi2Da+VtDgE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=urbTGLAe; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="urbTGLAe" Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68I5w5543358511; Fri, 18 Sep 2026 03:36:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=8PVm5 0JCiHuBarNBJapwnIi2qWF2cnI1FvRDzyda90w=; b=urbTGLAeF6xmktJ+LdUho LBl738nnikJh9V3pLE7bcVqnEVQwc2hSSfEkTb0jcQuYCMP0qgW9vcKgXYZR7ydR 76f8KwzXEKn7yULslt4jPWMJcpBZej50rLNcG5ykRxUH5Wye23G3Y2sRQusJAlsb M9Tm/fy4/50rR3GgdwyyHMbWvUDBIb3xycpRYZp7C5yhWuLIMOJQ5B9avWPagOIs 6AP9/eUfrmqODfB5zzg+DMkf5NpF8Nk/5wlRTUMPkcmSYA12jZV1tsdgvKJvajZG 4Azv/wW+keK58sGcBQJJsmL85VxXE1EtAy/dpLaaszL6Qn3y+vqe97U6/5JU5fJC Q== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 4gqj57vhv0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Sep 2026 03:36:13 -0400 (EDT) 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 68I7aCCc011023 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Sep 2026 03:36:12 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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.1748.37; Fri, 18 Sep 2026 03:36:12 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 18 Sep 2026 03:36:12 -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.1748.37 via Frontend Transport; Fri, 18 Sep 2026 03:36:12 -0400 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.219]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 68I7ZjpT019677; Fri, 18 Sep 2026 03:36:06 -0400 From: Antoniu Miclaus To: Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , "Shuah Khan" , Randy Dunlap , Marcelo Schmitt , Joshua Crofts , Radu Sabau , Salih Erim , Jishnu Prakash , "Jakub Szczudlo" , , , , , Subject: [PATCH v2 1/6] iio: adc: ade9000: fix ADE9000 full-scale RMS and PCF codes Date: Fri, 18 Sep 2026 10:35:30 +0300 Message-ID: <20260918073537.1572-2-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918073537.1572-1-antoniu.miclaus@analog.com> References: <20260918073537.1572-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX4e+J16bKfSB8 cBV+uTYvouvENOE1ShWGyiLfDKV+zHHl2/qpgIURCQBs377BFDXHRL1g31TfPzR3VgwQDfjyFxV 4WGilC3T+Nsc+Mg9842Jt5WbXVws4m9noLBzsR/S7NPMLM7oPem2 X-Authority-Analysis: v=2.4 cv=HfuB3SE8 c=1 sm=1 tr=0 ts=6aace9ed cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=N--XFCr6TIEc_64PeIT2:22 a=gAnH3GRIAAAA:8 a=ViKl6yswhRTQ_48acFcA:9 X-Proofpoint-ORIG-GUID: WP8XjiEnMNoXanGMZEDtcfRNVanox2nx X-Proofpoint-GUID: WP8XjiEnMNoXanGMZEDtcfRNVanox2nx X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX6E33dBAKGmki DBV7JlOBkB0ysH7/+nxXH4GdbUMuAa8sXrNFZMTwMnDj49DvGe4f2SH/BPO+tdGjePq/aSN/eL2 N3IP3XxEnKLJlNDN+4CpylyxTtlccbJRX/O2RZ8BihpORyuT37epItlaLJ8RDtWhJB/6DomGiMr bsMCvbF0+7wAMq9bvZHNuFUbtZPlxhTEDMHWhk12RjBRFFcW4PBxwcpFapXlDXtyDLRWuyZulVk 174UYATP1y3drqQYJn3Huyk3oq7IbSwLc2op53CtB/rzUtui/ckS7oqXKkKHcvAD3dvoo+oURpv Fa+VAAPT0zHsHydFqo5LKZKeOjxPKKzevu/3xbdvD/uYoAs5Woc1i81d2E8ilLUPHa13ZdHx9Xe fFJznnNETcS5G2bvvBH6QVW1onbdb4aPZz8t9p+PpzvfX4k8G9u0sbaAPw6fY7u0nN7r3YmI9J3 LoCzCVRWZ/E98tCsiCw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-18_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 priorityscore=1501 suspectscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609180102 Content-Type: text/plain; charset="utf-8" The ADE9000 chip_info uses full-scale codes that do not match the datasheet. The RMS full-scale code was set to 52866837, which is the ADE9078 value; per the ADE9000 datasheet the xRMS/xFRMS full-scale reading is 52702092. The PCF full-scale code was set to 74770000, a value that appears in no datasheet; the ADE9000 xI_PCF/xV_PCF full-scale reading is 74532013. Because the IIO scale of the RMS and PCF channels is reported as 1 / full_scale_codes, these wrong values make the affected current and voltage channels read about 0.3% low on real hardware. The active power (WATT) full-scale code was already correct and is left unchanged. These are the same family-A values already used by the ADE9430. Fixes: 81de7b4619fc ("iio: adc: add ade9000 support") Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno S=C3=A1 --- Changes in v2: - no changes. drivers/iio/adc/ade9000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c index fd1362a98052..0f64bfb221da 100644 --- a/drivers/iio/adc/ade9000.c +++ b/drivers/iio/adc/ade9000.c @@ -677,9 +677,9 @@ static const struct ade9000_chip_info ade9000_chip_info= =3D { .name =3D "ade9000", .channels =3D ade9000_channels, .num_channels =3D ARRAY_SIZE(ade9000_channels), - .rms_full_scale_codes =3D 52866837, + .rms_full_scale_codes =3D 52702092, .watt_full_scale_codes =3D 20694066, - .pcf_full_scale_codes =3D 74770000, + .pcf_full_scale_codes =3D 74532013, }; =20 static const struct ade9000_chip_info ade9078_chip_info =3D { --=20 2.43.0 From nobody Fri Sep 25 00:40:31 2026 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 43C7F4A2E32; Fri, 18 Sep 2026 07:36:45 +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=1789717016; cv=none; b=iUZi6kxlhHOfV1txPeoNwdcjDv0gQXvRPc+X7/Ito5etDi1p0yUk2JmIWKUysfTWJX7KePkpdRQZwdccVKiEnuGwZv+0g7eYMuc0hGfwhxk245LAW9gjt5udzatvjwnQAJPN/Xm/Db46GxvI6GY2cBE5yS8hAMwn8Xj3aXSxLeg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789717016; c=relaxed/simple; bh=BB1CWGAce8kzl2nNA7V8Mf2cWPWwnS69sdS81EWA3TM=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EK1KnXl03vJ04ote+whRzD96cVScgG2VSOLptCAnAS0ca563rZ3MQVk7KbDEg+ICr3vhOpuaLg4h7bmqwEppa+HHKG1yEScng9ag/X+VmTOezAcmCRyL5uRPee6kpZ1bRsLmPn1ijBE/2EfeSvFZA+Msby2nLtuht8Pk9ZZq3VY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=yXuPWvkn; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="yXuPWvkn" Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68I5wRrL3969437; Fri, 18 Sep 2026 03:36:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=pub59 7Tt19iQNAUAhkbhqQ/yDDbDH1KhPbFPriZJEiY=; b=yXuPWvknlmZ74rJq9JDVf 9ixbw2ALLp7iRXtTSL7dtGl7OTnWl5GtzyP5AnDHmbEJVNFznqLImvrRDfw4YFIf I6YAvS9VUx/y6smWh3GgRovUMVYnvqURpdiRIQOD3Z7djLp5yYxVDEW5AkpfoNim +PHVCthi5tjv2A9JaFrPfnZvgbOLLTqsRDzxdUmC+gelHac0NujUTV8seFADIdUo 6lZd+cRsOUFuiw13tfUlV3onq28eojQywXUGg7fvR2miu35ZVsgPMzIWunp4uerc DV8GLcXONdYUscoSEkWKb3s+xAvfSj/KEHxn6RVfLVBNR8/J+OPt6nt5ItOHxB3/ A== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4grk0xktf7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Sep 2026 03:36:16 -0400 (EDT) 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 68I7aF2g011029 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Sep 2026 03:36:15 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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.1748.37; Fri, 18 Sep 2026 03:36:15 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 18 Sep 2026 03:36:14 -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.1748.37 via Frontend Transport; Fri, 18 Sep 2026 03:36:15 -0400 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.219]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 68I7ZjpU019677; Fri, 18 Sep 2026 03:36:09 -0400 From: Antoniu Miclaus To: Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , "Shuah Khan" , Randy Dunlap , Marcelo Schmitt , Joshua Crofts , Radu Sabau , Salih Erim , Jishnu Prakash , "Jakub Szczudlo" , , , , , Subject: [PATCH v2 2/6] iio: adc: ade9000: fix DIPC event never being handled or cleared Date: Fri, 18 Sep 2026 10:35:31 +0300 Message-ID: <20260918073537.1572-3-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918073537.1572-1-antoniu.miclaus@analog.com> References: <20260918073537.1572-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: -gkmVFXqn2LvykUChoaKkxncRoH_9aBC X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX4YMLN0YAQhDu tbYuMknz1NdmipcL4f1N4aQEIYopx2tK96P4a64b6MgTSnP7AEkSeKZOBA68LPxOqCeZcArmC0p 5Yup82ZDXpEkUI/AV2kjWNpbGvDbfemjQ4f3FdTFUra86OL/aL79AoeM49crjDnpVD9DNU0sLKn zEuQWSQId6J5E8/1X/rSQGp6KRokCfwKHlBYP6oGWsQi9xGm+HRnbEkgOP2SV0Y0MnjO0vdChQi lYE5bBWcpcxGPyoa82a7NGKcHrHzw/FBVgeBM+uJcG367dgqaVw63q/otaKM8b1PzDOlD9dq02C 5aFY4YAsDfp/WQFXmIuS9CgMRnqcHYPROua1AyYxfqPitQIKLihd1kkCLaidseqEYbsC3mVz8ef sITRe6SsjgvMfZceWoFqRftG738Bu2ZY1NlRUY46IKq6h7uNGWUK+IYA7OsF8TsBzNh/yXu8SDK 9J24Bg3KeluyevhOGCw== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX1Xeac/kgMe1Z Kz03B2qarRFwXfAibVe8RBgNmZlWfw7XCHKUNrvCkOmNMAcGaFaViA1J2uQdgu0sD2Nqdp4/7UV IAkTLYN9HR5K2TdbRFlonMgFwyEi1qUhUXCKsd+NQjyCNPU79L/B X-Proofpoint-ORIG-GUID: -gkmVFXqn2LvykUChoaKkxncRoH_9aBC X-Authority-Analysis: v=2.4 cv=OtXaWC/t c=1 sm=1 tr=0 ts=6aace9f0 cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=Z0pTeXoby7EwIRygza74:22 a=gAnH3GRIAAAA:8 a=UsWkN0LNHv3q8H0V0WkA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-18_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 bulkscore=0 adultscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609180102 Content-Type: text/plain; charset="utf-8" The STATUS1 interrupt handler scans the enabled interrupt bits using ADE9000_ST1_CROSSING_DEPTH as both the bitmap size and the exclusive upper bound of the for_each_set_bit_from() loop. ADE9000_ST1_CROSSING_DEPTH was 25, so the scan only covered bits 6..24 and never examined bit 25, ADE9000_ST1_DIPC_BIT (phase C voltage dip). As a result, when userspace enables the DIPC threshold event and it fires, the handler neither pushes the IIO event nor sets bit 25 in handled_irq. Since STATUS1 is write-1-to-clear, the DIPC status bit is never cleared and the interrupt keeps re-asserting, causing an interrupt storm. Bump ADE9000_ST1_CROSSING_DEPTH to 26 so the scan includes DIPC. Fixes: 81de7b4619fc ("iio: adc: add ade9000 support") Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno S=C3=A1 --- Changes in v2: - new patch, found by the sashiko review of v1. drivers/iio/adc/ade9000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c index 0f64bfb221da..ce0317766698 100644 --- a/drivers/iio/adc/ade9000.c +++ b/drivers/iio/adc/ade9000.c @@ -219,7 +219,7 @@ #define ADE9000_ST1_ERROR2_BIT BIT(30) #define ADE9000_ST1_ERROR3_BIT BIT(31) #define ADE9000_ST1_CROSSING_FIRST 6 -#define ADE9000_ST1_CROSSING_DEPTH 25 +#define ADE9000_ST1_CROSSING_DEPTH 26 =20 #define ADE9000_WFB_TRG_DIP_BIT BIT(0) #define ADE9000_WFB_TRG_SWELL_BIT BIT(1) --=20 2.43.0 From nobody Fri Sep 25 00:40:31 2026 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 89ECC4A3D33; Fri, 18 Sep 2026 07:36:47 +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=1789717020; cv=none; b=odvf2yrI4ghC1drVQUn51Sj8fb0mD0uBSN2ZRcnSd90hC498d0EOI0R1TOLEF8otk21KvOhGhLHp8/ncOptT8WOT7LwYn3G9k2aD3NNUeNMBgsEqVnLWueyaTHgBo805anTvlSV6vBqK9yfFlf8q5fsRtA2iOk3y+K5nWyy9I9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789717020; c=relaxed/simple; bh=MpY3lUBzKaNOnaSHyA4bsUZWIqVKUTZbdVnjSTQMKAk=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WNgJDbMbu/qAG9RhFp2PqOvtxG2gZWyuZ/KvWIteQ3c02Qm7Ghi/2A1FkITocBcXU6DMhe8zmETS3bE7gd5oPn51mXkEirg7v51cDLGAxWCcj9KCwXfRwNA0k3dAXGl7dTISTlQNIc9XwIzp04xyYYBN43B8FtMBohkXffQ5jD0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=I+EQCyXS; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="I+EQCyXS" Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68I5wZX23969914; Fri, 18 Sep 2026 03:36:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=GoPv8 P155wxUDcmexVb9CzwlQPvh4tikXZB/LojDcCY=; b=I+EQCyXSjEaxQyLNk+0id 6sjJHXn7zMCQCCif8/itEaQaEdV6Y/vSUbFjYixj/Cr/VzWVGHDYVHyuWXeu/Jpo DERMYQp55CmFSI6DmYL9JKMaG0WcjPyH0PV7DmdCmGEp5FYpIJOHEG7QFNqH0TaG 3LbOmR2sp4LjxGRCkr3O/rhPIZ9tpPQ4KpzbU7yMGsq95CptfWVgYnQNck99RzDQ /zYm6KqximuxhHb0D2qnEKNz4FQw4ZRr02w08q7fzcg4Ovc0IZ2PWanng6hWgMcW vVx9NBAu1a7lkC7Nl3ZMUewk1DLCKS/ISJZbicNlRKpCZAMeUmk+Ao2hKsIoO3e0 w== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4grk0xktfq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Sep 2026 03:36:20 -0400 (EDT) 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 68I7aIak011044 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Sep 2026 03:36:18 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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.1748.37; Fri, 18 Sep 2026 03:36:19 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 18 Sep 2026 03:36:18 -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.1748.37 via Frontend Transport; Fri, 18 Sep 2026 03:36:18 -0400 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.219]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 68I7ZjpV019677; Fri, 18 Sep 2026 03:36:12 -0400 From: Antoniu Miclaus To: Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , "Shuah Khan" , Randy Dunlap , Marcelo Schmitt , Joshua Crofts , Radu Sabau , Salih Erim , Jishnu Prakash , "Jakub Szczudlo" , , , , , Subject: [PATCH v2 3/6] dt-bindings: iio: adc: adi,ade9000: add adi,ade9430 compatible Date: Fri, 18 Sep 2026 10:35:32 +0300 Message-ID: <20260918073537.1572-4-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918073537.1572-1-antoniu.miclaus@analog.com> References: <20260918073537.1572-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: ARBHifQJC88ihIGPDG2W3geeUaOxeK8e X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX07KfieoEneXH tZqkXEGYTSlK6XXL3zTNk4Scs2rnaGURRHKG/hTQmX60+AyDWC6asIl/6Z3q03ojlkO3gJgR5rM 9eRnlUsMrNQ1P1I7avzUeuey92eaY3LGaRVFFPxvxyPUI6p3KEPkMw2AOHvizIQlKrCTkiyDGBz xT6gw9eY1FtIlhZehxd9DGPHI20E4OefO83sUoLV9cmZ/kUcIL+T+eNBrV51UYWa8lKOQ5C/sTE 3xGaKQZfesXdxGUbA/j2LCkJemeTlePjUMStG3oE+5vmM3qA15LM2Ynnj58ome/wIED0172d3LL 3C5ELk5Kg+sMoAKA5h+RO6MVFIF2pBH+T/pRx0JyWefmTD040+DfqYN9ei3wFSaY2LcCiMiwtO/ MZWzd3T94bUGVsRW2lbPWXRSVsMLd4Orz1K52tp7I5X9NSX54bhSCd05inPMlvaLjOwmqKb8hKi Dk/c6TRWg/I3Wm16kqg== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX51kUW7CoQ59m Gzyy1+ZbqQqdYqZLVVczzyY45f8QwRLVN+FEqZsP55aAcTe0uUwpgZJ7CQ83Q3VZUq6pa/gOoBq 6jNrvBOz1LpOmfLrk6qLWbKEicA0em7fiEgWwmJwPvTXuvt0avG8 X-Proofpoint-ORIG-GUID: ARBHifQJC88ihIGPDG2W3geeUaOxeK8e X-Authority-Analysis: v=2.4 cv=OtXaWC/t c=1 sm=1 tr=0 ts=6aace9f4 cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=Z0pTeXoby7EwIRygza74:22 a=gEfo2CItAAAA:8 a=gAnH3GRIAAAA:8 a=tT9GeYvpIO8S9_p5PeQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-18_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 bulkscore=0 adultscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609180102 The ADE9430 is a polyphase energy metering device from the same family as the ADE9000. It is register-compatible with the ADE9000 but does not provide the on-chip dip/swell detection, and it has no on-chip digital integrator (it relies on an external analog integrator for Rogowski coil current sensors). Add the new compatible. No spi-max-frequency constraint is needed as the ADE9430 supports the same 20 MHz maximum SPI clock as the ADE9000. Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno S=C3=A1 --- Changes in v2: - no changes. .../bindings/iio/adc/adi,ade9000.yaml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml b/D= ocumentation/devicetree/bindings/iio/adc/adi,ade9000.yaml index 1e940e8c7297..ec68e6887142 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml @@ -5,23 +5,26 @@ $id: http://devicetree.org/schemas/iio/adc/adi,ade9000.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: Analog Devices ADE9000/ADE9078 High Performance, Polyphase Energy M= etering +title: Analog Devices ADE9000/ADE9078/ADE9430 High Performance, Polyphase = Energy Metering =20 maintainers: - Antoniu Miclaus =20 description: | - The ADE9000 and ADE9078 are highly accurate, fully integrated, multiphase - energy and power quality monitoring devices. Superior analog performance= and a - digital signal processing (DSP) core enable accurate energy monitoring o= ver a - wide dynamic range. An integrated high end reference ensures low drift o= ver - temperature with a combined drift of less than =C2=B125 ppm/=C2=B0C maxi= mum for the - entire channel including a programmable gain amplifier (PGA) and an - analog-to-digital converter (ADC). The ADE9078 does not provide the on-c= hip - dip/swell detection available on the ADE9000. + The ADE9000, ADE9078 and ADE9430 are highly accurate, fully integrated, + multiphase energy and power quality monitoring devices. Superior analog + performance and a digital signal processing (DSP) core enable accurate e= nergy + monitoring over a wide dynamic range. An integrated high end reference e= nsures + low drift over temperature with a combined drift of less than =C2=B125 p= pm/=C2=B0C + maximum for the entire channel including a programmable gain amplifier (= PGA) + and an analog-to-digital converter (ADC). The ADE9078 and ADE9430 do not + provide the on-chip dip/swell detection available on the ADE9000, and the + ADE9430 has no on-chip digital integrator (it uses an external analog + integrator for Rogowski coils). =20 https://www.analog.com/media/en/technical-documentation/data-sheets/ADE9= 000.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ADE9= 078.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ADE9= 430.pdf =20 $ref: /schemas/spi/spi-peripheral-props.yaml# =20 @@ -30,6 +33,7 @@ properties: enum: - adi,ade9000 - adi,ade9078 + - adi,ade9430 =20 reg: maxItems: 1 --=20 2.43.0 From nobody Fri Sep 25 00:40:31 2026 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 A6A20632; Fri, 18 Sep 2026 07:36:44 +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=1789717015; cv=none; b=D6hRxIl0NX4YsLKz3JfKiX5Y6ec8ryXK5WGZJARIdxCRHVvo8XXhhXc8EoV7iw2N4oxl6JlGT4YC/DTcBXiVvVTEEraG/KRTOcnEv6QEQPqNLDqIsyH0atJ1kxRUK3J5TrAJoJIO4jR8AjBoRVgMF4xJ+nWXxmzYLGe6zxcPZZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789717015; c=relaxed/simple; bh=ArZcDThcurlJ0nD6yr9+gwux3lXVW1q0qXu9PpWMjSg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Uc2/2zRAGlc60bNIRXegHusRRHclD9eidbSp/j/2bK99WCw/vIudYjxc83o+X4sgwrSbWvUOfVJ03bJXxZe4PMeypqQBlPoKR9sVUY5qFStWMMgkp2H4T98n/2qiRrhQAWPjs6LZ3eiQFDPw8ETJm9ZgqiQH6ZhEtQC2nO/1eJQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=s/ROTyyK; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="s/ROTyyK" Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68I5wKFb570743; Fri, 18 Sep 2026 03:36:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=viFGZ LX5Gyzr3zRHG5k+XuJmn61uaJo4fgcVYFFmRFo=; b=s/ROTyyKHUAsZJDfj05io 0bR1kNlC2BN4CWgam2imGfUtrVbZelLjTdBj0fGkp5VloOy9BHEP8aeIMPb3fLPO nT2jUYQu1cRjiQnAdCF3//RgprmV+h6acRpYPGWyDrSiYTDCggwpOVek5E0XIjQ8 yTuN0X5qXmsMDUFNcDA8okHgDRxCSDDpQpqU6FZI/okcoatGoecaY+f+KzSGG/9e Tap5MeNAfvsyAJSQsi3zD0je8v1Oj323x9f7iDJ/aqLNUaORLTFhy2v742QGS++b bi9JABNSkUZFeHTxPGKW+1IM+RLcPFFDyweGKmrPbxvX0LNTQqJMasvJt+tVUN1j w== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4grk0h3ubj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Sep 2026 03:36:24 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 68I7aNS1011068 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Sep 2026 03:36:23 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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.1748.37; Fri, 18 Sep 2026 03:36:23 -0400 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.1748.37 via Frontend Transport; Fri, 18 Sep 2026 03:36:23 -0400 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.219]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 68I7ZjpW019677; Fri, 18 Sep 2026 03:36:15 -0400 From: Antoniu Miclaus To: Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Randy Dunlap , Marcelo Schmitt , Joshua Crofts , Radu Sabau , Salih Erim , Jishnu Prakash , Jakub Szczudlo , , , , , Subject: [PATCH v2 4/6] iio: adc: ade9000: gate the DICOEFF write behind a chip_info flag Date: Fri, 18 Sep 2026 10:35:33 +0300 Message-ID: <20260918073537.1572-5-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918073537.1572-1-antoniu.miclaus@analog.com> References: <20260918073537.1572-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfXyqNmLa4XOvKn Za49AHB07HCSW0r2Z/T1Jw1lQIXmSYuqrzzdiHE5JnMYmIsi58ENSTAmdIwVbvFgiljho1szSsW L5okolq20bT9FRxCFapDPIgJX6pzMP/znyGMUJZZtnhtQqFOH3Cd X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfXyd31opQCh0Al 2SQNJW4wv2yQsQBs9zcLB2ukMcCoSgaolYsH/yEqrhJTC15Yb3VM8rRdFSoLeaf3KBXmmkFawfg s+SyXOqMXxA9hZAA56iF2v3uSAFqSUNO2Uh+rDaiESRydUwH7x/sHtTHCxWkShkHEnDkDfIYB4Y Qt+GTz/CbbDrsp6ZH8rFe5Z73fdTB0+wJmngM8awnI+MzvOLToEQG91iPQS8wikwmzr+kgpKLCZ p9vlCfS3xjIPyK4I0mr/NlPuZDohkNg/JmGGG1jEwtakLsXmi/lC2tSZ8ySE5YDVZxQH2uyS1re 9TGGlj05Dv3vns7ZZJ5xZt/iTv3AAvs+WCTtuEy7bH7KVVAPGjsfpowqJgwvmdQYTGUD8S33SQT D7XfcE4vkq4xNEZO5ZW5Z41y73JXyiyq/yhdO+d3tXOaCt6ZiUVoDvmbEiiYELitT9NnB3N4/GY EvoJ/n/c7GWVKY0nRpg== X-Proofpoint-GUID: GQKX71cEFcHn1KVTpKlWEGCSuX0qLR8_ X-Proofpoint-ORIG-GUID: GQKX71cEFcHn1KVTpKlWEGCSuX0qLR8_ X-Authority-Analysis: v=2.4 cv=IpqL47/g c=1 sm=1 tr=0 ts=6aace9f8 cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=uXIjobp8t2wMuQ0fPvqm:22 a=gAnH3GRIAAAA:8 a=HWq8w0C2B1yOpf0TK-AA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-18_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 adultscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 suspectscore=0 bulkscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609180102 Content-Type: text/plain; charset="utf-8" Some parts in the ADE9000 family have no on-chip digital integrator and therefore lack the DICOEFF register; they use an external analog integrator for Rogowski coil current sensors. Prepare for such parts by adding a has_digital_integrator flag to the chip_info and only writing DICOEFF when it is set. Move the DICOEFF and RUN writes out of the shared initialization sequence into ade9000_setup() so DICOEFF can be issued conditionally while RUN still starts the DSP afterwards. All currently supported parts set the flag, so there is no functional change. Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno S=C3=A1 --- Changes in v2: - new precursor patch, split out of the ADE9430 support patch. drivers/iio/adc/ade9000.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c index ce0317766698..0167d5bcdb74 100644 --- a/drivers/iio/adc/ade9000.c +++ b/drivers/iio/adc/ade9000.c @@ -290,6 +290,7 @@ enum ade9000_wfb_cfg { * @rms_full_scale_codes: digital code produced at full-scale RMS input * @watt_full_scale_codes: digital code produced at full-scale power input * @pcf_full_scale_codes: digital code produced at full-scale xI_PCF/xV_PC= F input + * @has_digital_integrator: part has an on-chip digital integrator (DICOEF= F) * * The full-scale codes are taken from the respective datasheets and are u= sed to * derive the IIO scale of the raw measurement channels. @@ -301,6 +302,7 @@ struct ade9000_chip_info { unsigned int rms_full_scale_codes; unsigned int watt_full_scale_codes; unsigned int pcf_full_scale_codes; + bool has_digital_integrator; }; =20 struct ade9000_state { @@ -680,6 +682,7 @@ static const struct ade9000_chip_info ade9000_chip_info= =3D { .rms_full_scale_codes =3D 52702092, .watt_full_scale_codes =3D 20694066, .pcf_full_scale_codes =3D 74532013, + .has_digital_integrator =3D true, }; =20 static const struct ade9000_chip_info ade9078_chip_info =3D { @@ -689,6 +692,7 @@ static const struct ade9000_chip_info ade9078_chip_info= =3D { .rms_full_scale_codes =3D 52866837, .watt_full_scale_codes =3D 20823646, .pcf_full_scale_codes =3D 74680000, + .has_digital_integrator =3D true, }; =20 static const struct reg_sequence ade9000_initialization_sequence[] =3D { @@ -704,13 +708,11 @@ static const struct reg_sequence ade9000_initializati= on_sequence[] =3D { { ADE9000_REG_EVENT_MASK, ADE9000_EVENT_DISABLE }, { ADE9000_REG_WFB_CFG, ADE9000_WFB_CFG }, { ADE9000_REG_VLEVEL, ADE9000_VLEVEL }, - { ADE9000_REG_DICOEFF, ADE9000_DICOEFF }, { ADE9000_REG_EGY_TIME, ADE9000_EGY_TIME }, { ADE9000_REG_EP_CFG, ADE9000_EP_CFG }, /* Clear all pending status bits by writing 1s */ { ADE9000_REG_STATUS0, GENMASK(31, 0) }, { ADE9000_REG_STATUS1, GENMASK(31, 0) }, - { ADE9000_REG_RUN, ADE9000_RUN_ON } }; =20 static int ade9000_spi_write_reg(void *context, unsigned int reg, @@ -1672,6 +1674,21 @@ static int ade9000_setup(struct ade9000_state *st) if (ret) return dev_err_probe(dev, ret, "Failed to write register sequence"); =20 + /* + * DICOEFF must be configured before the DSP is started. Parts without + * an on-chip digital integrator lack this register, so skip it there. + */ + if (st->info->has_digital_integrator) { + ret =3D regmap_write(st->regmap, ADE9000_REG_DICOEFF, + ADE9000_DICOEFF); + if (ret) + return dev_err_probe(dev, ret, "Failed to set DICOEFF\n"); + } + + ret =3D regmap_write(st->regmap, ADE9000_REG_RUN, ADE9000_RUN_ON); + if (ret) + return dev_err_probe(dev, ret, "Failed to start DSP\n"); + fsleep(2000); =20 return 0; --=20 2.43.0 From nobody Fri Sep 25 00:40:31 2026 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 CABE349D5A1; Fri, 18 Sep 2026 07:36:44 +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=1789717013; cv=none; b=OpCPK/qwTuIuIaulsY/7cvG5YZ2Cc9/HPayjI4/pKjiiT+zIrfCESAqzPJ/ruv7MEtU//FF9dmxvgNGt2XxBjoECL+VQBcAtzivUzSUjUCbJN0i7fKn3fQiVrJDnURU+n/RSqKUSiI2KDJcMmgmteNh1oCVS69F0QRcDrSNfWXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789717013; c=relaxed/simple; bh=VhMAE3ufNZbB0YJLoZN9BJs9K3vI9jhjkDTfXq7XvE8=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M436sLvzQHCEKj0MDWamZG6lLOzJ35cXxaK0P/5pDcNQ3Fyf4tA/7koTT8DXn+yXsxoog0j6QNyN2FTajk1C9rDZq/KdLDp0lAunOUQNXLuTWu3cnSWt47Z6lMYh9fLUR3qVpLKy0QVMq4pInyFpCMyIHcnNLCYxmZeCsE5pM2U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=GzoHavaf; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="GzoHavaf" Received: from pps.filterd (m0516787.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68I5wceu255622; Fri, 18 Sep 2026 03:36:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=r6JyW 2APjiiJ2Tv21NG+40B9kelFs3J7hgA1aU4MYww=; b=GzoHavaftT/YKnhw6v2XJ 4avBPpS9P57035k8JvlN5WalkB+DP55n6sPVf5kAL7E6aYFkYX7qyfPPv8ZtfZ5F R0anumZNEaT3SIjAVoe7gLAfaxt2bN5xr0FWLoRZohqfs4Ajr3Ke6ZKunDRsQAD4 pGd1oyQsvTbq2LPQP9SU9LbLiL/cFprmW6bAFWtY888zj898MMa4hOD/gIKqF4Se SMGFzFe8zOij/VCWV9Dk+o09Yq/IXsM1E1jHbgtj2J6agSMfgH4aMyKVC1vclBGg N5rCKG+0GtPyEbWNiGzNC+l+1I/rHcX/yeU0UafSAl+j7OEBKJR4MFcDp6s3AqYI w== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4grm943db9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Sep 2026 03:36:28 -0400 (EDT) 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 68I7aRwL011071 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Sep 2026 03:36:27 -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.1748.37; Fri, 18 Sep 2026 03:36:27 -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.1748.37 via Frontend Transport; Fri, 18 Sep 2026 03:36:27 -0400 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.219]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 68I7ZjpX019677; Fri, 18 Sep 2026 03:36:19 -0400 From: Antoniu Miclaus To: Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Randy Dunlap , Marcelo Schmitt , Joshua Crofts , Radu Sabau , Salih Erim , Jishnu Prakash , Jakub Szczudlo , , , , , Subject: [PATCH v2 5/6] iio: adc: ade9000: add support for ADE9430 Date: Fri, 18 Sep 2026 10:35:34 +0300 Message-ID: <20260918073537.1572-6-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918073537.1572-1-antoniu.miclaus@analog.com> References: <20260918073537.1572-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Authority-Analysis: v=2.4 cv=AcckjHXG c=1 sm=1 tr=0 ts=6aace9fc cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=OmVn7CZJonkx5R5zMQLL:22 a=gAnH3GRIAAAA:8 a=zlWSOBlsY_1KlUt2hasA:9 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX72zr1mxz+3NQ QcP9e0DpyfuM0n3Xwus24acJ8Htr+l4Ih3+poYW7cR7cNs4WmzO1eI9s5YercGJb7DN2/5Vooe6 ppdCL+7EgmlHiiPQj81V0vchIIbHzwaXDF5OijQnX/0A5t91ix+I X-Proofpoint-ORIG-GUID: CvdzLwUUP3eKmIKiLRTQAytXEqJ1NX5P X-Proofpoint-GUID: CvdzLwUUP3eKmIKiLRTQAytXEqJ1NX5P X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfXxiYSNhtzbSth 2ik39xCjDbbo0bXwEj4K9Q136Y+PTMupYjUKrulzF/xZMJBRjQVUljWengiKd0l8eFtu2D6RKlj s1ppKYtzyNt0CKY+PH6YR11qIZBRhxn7LvtCadbRuVnLs912d0XeuwFypli5+UNYPqtmbE+aowh oetnShlJoZ9bmouRKWoxGCJTOV02fgFso1te7YdXLo+qtu/HbbRzXTpfTdSxSOguOsclWJxpP0f XEXz+PawifEk4eW+UeM+gEaaTlGC7E7kshOawrchxw+Fm60sVUNiMS89BS4sax0eASSCzUsGKC/ kOTZSsWsKj+FYLS6MWEGSZvn5zS4HBu14c8sqVOq14WyTBpIPtBeWGRMrwIEvYU1PJ9iY+dpV8l aQ18DPsEsGfsPZbYgFBL2qovbNULRtY05B+vRUaJwXlg/qBXSixTu02EPcVwnM4tj95SI7mJRBT 97XsZtTtYZ1lflAtQbQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-18_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609180102 Content-Type: text/plain; charset="utf-8" The ADE9430 is a polyphase energy metering device that is register compatible with the ADE9000. The differences relevant to the driver are the absence of the on-chip dip/swell detection and the absence of an on-chip digital integrator (the ADE9430 uses an external analog integrator for Rogowski coils, so the DICOEFF register does not exist). Its full-scale ADC codes are the same family-A values as the ADE9000. Add a chip_info for the ADE9430, reusing the dip/swell-less channel table first added for the ADE9078, and explicitly set has_digital_integrator to false so the DICOEFF write is skipped. Wire up the SPI and OF device tables and Kconfig. Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno S=C3=A1 --- Changes in v2: - reuse ade9078_channels instead of adding a duplicate channel table. - move the DICOEFF gating to a separate precursor patch. drivers/iio/adc/Kconfig | 1 + drivers/iio/adc/ade9000.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 7a60ffd0ddd8..3a3ae09fc10f 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -587,6 +587,7 @@ config ADE9000 integrated circuits: - ADE9000 - ADE9078 + - ADE9430 =20 The devices feature high-precision analog-to-digital converters and digital signal processing to compute RMS values, power factor, diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c index 0167d5bcdb74..e0113b62a261 100644 --- a/drivers/iio/adc/ade9000.c +++ b/drivers/iio/adc/ade9000.c @@ -695,6 +695,16 @@ static const struct ade9000_chip_info ade9078_chip_inf= o =3D { .has_digital_integrator =3D true, }; =20 +static const struct ade9000_chip_info ade9430_chip_info =3D { + .name =3D "ade9430", + .channels =3D ade9078_channels, + .num_channels =3D ARRAY_SIZE(ade9078_channels), + .rms_full_scale_codes =3D 52702092, + .watt_full_scale_codes =3D 20694066, + .pcf_full_scale_codes =3D 74532013, + .has_digital_integrator =3D false, /* no on-chip digital integrator */ +}; + static const struct reg_sequence ade9000_initialization_sequence[] =3D { { ADE9000_REG_PGA_GAIN, ADE9000_PGA_GAIN }, { ADE9000_REG_CONFIG0, ADE9000_CONFIG0 }, @@ -1859,6 +1869,7 @@ static int ade9000_probe(struct spi_device *spi) static const struct spi_device_id ade9000_id[] =3D { { .name =3D "ade9000", .driver_data =3D (kernel_ulong_t)&ade9000_chip_inf= o }, { .name =3D "ade9078", .driver_data =3D (kernel_ulong_t)&ade9078_chip_inf= o }, + { .name =3D "ade9430", .driver_data =3D (kernel_ulong_t)&ade9430_chip_inf= o }, { } }; MODULE_DEVICE_TABLE(spi, ade9000_id); @@ -1866,6 +1877,7 @@ MODULE_DEVICE_TABLE(spi, ade9000_id); static const struct of_device_id ade9000_of_match[] =3D { { .compatible =3D "adi,ade9000", .data =3D &ade9000_chip_info }, { .compatible =3D "adi,ade9078", .data =3D &ade9078_chip_info }, + { .compatible =3D "adi,ade9430", .data =3D &ade9430_chip_info }, { } }; MODULE_DEVICE_TABLE(of, ade9000_of_match); --=20 2.43.0 From nobody Fri Sep 25 00:40:31 2026 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 D576334CFC6; Fri, 18 Sep 2026 07:36:46 +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=1789717023; cv=none; b=HFYpB9RS2HdgVKqwudh/JJP/1tnNpApPlyKOL3AZ0S703dIUd/9B+JuugO0IGFNO4Z4LAUySf+BMNEA6rBO/Co6cdjATx02/9P6VQskOZjcw6wpfobKoW61WdU3IF7SlYswuO7wwg9sfaQrbGxrZy9JB2Zv+v/1PPixH2/l+Xh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789717023; c=relaxed/simple; bh=f9WYzTLiWKdzllNBYvR+OUb0QNBzZ3k/xWPwTZimHgM=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iBFCiaDmMZSgFbs4+FvXGFD82giSDxeaZakLKh/vvs3lzX5pGsrlgtrr/Gd9f0NWrtdhYYwrvwnTUzj8Rd7kvVDVGYBq4p2soFL9kL2EobCfP59IsmcMphGd3I9yyJqlRZDH9XnlVpZCPIaFlWHeroFonX7D4/Cq0UJSuV45YfU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=nvjBw6gQ; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="nvjBw6gQ" Received: from pps.filterd (m0516787.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68I5wXws255494; Fri, 18 Sep 2026 03:36:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=yPGhU A26BiVOxfNi60No7o3cxtmkRkHhIdkhUh7dIMk=; b=nvjBw6gQR8BJ9yB67p0M+ 9YY9gjRfhZQ2RkW+KNihcGyQV78wsAcDUlf3jQGuXHgsBBKx0enRx/RMGSpP5kcU sxp1dipNTWM3fv6NF3DB5Wp8xQENuy7H34rCQYGX3+Er6m6vXdRzSaGPKn211vqq j6D3xCPTjWwC8NVFyj2Nbgj0cOdlGWkgnDNhppsGLRhr20YOb1Z45+mDIHD7QUr1 U3k0Gq+MusVTobhIa9NCvTjeiybEWbz7anJsehNpCYVfwzoPImQ4K+AE1VfnJp98 Pqfl/N+sBHu+5U4XPVS7/VHWLpKGQ1R5/K29RjTN2SvJAmUfCTuwwESJuCpCU/kN w== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4grm943dbj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Sep 2026 03:36:31 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 68I7aU52011086 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Sep 2026 03:36:30 -0400 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.1748.37; Fri, 18 Sep 2026 03:36:30 -0400 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.1748.37; Fri, 18 Sep 2026 03:36:30 -0400 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.1748.37 via Frontend Transport; Fri, 18 Sep 2026 03:36:30 -0400 Received: from HYB-b1tGeUj4GP1.ad.analog.com (HYB-b1tGeUj4GP1.ad.analog.com [10.48.65.219]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 68I7ZjpY019677; Fri, 18 Sep 2026 03:36:22 -0400 From: Antoniu Miclaus To: Antoniu Miclaus , =?UTF-8?q?Nuno=20S=C3=A1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , "Shuah Khan" , Randy Dunlap , Marcelo Schmitt , Joshua Crofts , Radu Sabau , Salih Erim , Jishnu Prakash , "Jakub Szczudlo" , , , , , Subject: [PATCH v2 6/6] docs: iio: ade9000: document ADE9430 support Date: Fri, 18 Sep 2026 10:35:35 +0300 Message-ID: <20260918073537.1572-7-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260918073537.1572-1-antoniu.miclaus@analog.com> References: <20260918073537.1572-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Authority-Analysis: v=2.4 cv=AcckjHXG c=1 sm=1 tr=0 ts=6aace9ff cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=OmVn7CZJonkx5R5zMQLL:22 a=gAnH3GRIAAAA:8 a=vQEn8HwnhkxuN93CXDYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX4pLF9LMfYJ1Q t+1RUpHUmzt/hjZ6VwZR+HUvw/eNP8KU6MI3iocCzTcPHFAdxIPqlzuGhQgfXnuiuhkgElH9Cz/ VgX7eTw2551sF5SFLobAUI0z+UsSZc3tprh/Y45akQ/c/wa46Ds8 X-Proofpoint-ORIG-GUID: YTvAoYu1QUyd7ABu7DvuGLCqal5AKYYy X-Proofpoint-GUID: YTvAoYu1QUyd7ABu7DvuGLCqal5AKYYy X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE4MDEwMiBTYWx0ZWRfX7yv2dstVrW4i sHiHkpmm9FLEov23K88DpnGH1v5MnLsv0KTGHaMRh0pqk+dH9JCbZMJ2CZmDN/S/UFDrhshmXYe 6oC3gsuoN7MaZAK86vHy6aEMd5vPpRQGEeLlBJygf4INJl0gK7uQ1dat7Cz7/SoiXhtEQ57aWcl 5a9pnPOl1ex1Vpu3Enk30ST5KMpyrIA+h7eYSphz3DsNzDqCQujlGWnZUSA4CdRpzE0kSc8qwb6 YKJzXD9qdAh/kevX+ZD7GuKkt1DEvJtW6GLhA/Fq8V8N3lkf1pWF5KJ3diQqp0VEHMiSh/0+nzy cnisbxitdyK4ZiVxedxc6FDanBNjU4IH+cChcG7LGDnR17A7NLlTYnfk+x6Hlvt2ciq4qFfcuCl Lhp7DyqDHGYUvJHGjtpnjF2ntNP3E3PTGCiQH1A8v10K3GuLyFo51C1MD5blCWpzrKZCmmnqCws QSnv6FRY4PM9BKtf4Tw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-18_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609180102 Add the ADE9430 to the list of supported devices and note that, like the ADE9078, it does not provide the on-chip dip/swell voltage events. Also note that the ADE9430 has no on-chip digital integrator and instead uses an external analog integrator for Rogowski coils. Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno S=C3=A1 --- Changes in v2: - reword the intro to "The supported parts are..." so it does not need updating for each new part. Documentation/iio/ade9000.rst | 36 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Documentation/iio/ade9000.rst b/Documentation/iio/ade9000.rst index 72737b5ec59c..f518bc1cc3cd 100644 --- a/Documentation/iio/ade9000.rst +++ b/Documentation/iio/ade9000.rst @@ -1,29 +1,31 @@ .. SPDX-License-Identifier: GPL-2.0 =20 -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -ADE9000/ADE9078 driver -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D +ADE9000/ADE9078/ADE9430 driver +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D =20 -This driver supports Analog Device's ADE9000 and ADE9078 energy measurement -ICs on SPI bus. +This driver supports Analog Device's ADE9000, ADE9078 and ADE9430 energy +measurement ICs on SPI bus. =20 1. Supported devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 * `ADE9000 `_ * `ADE9078 `_ - -The ADE9000 and ADE9078 are highly accurate, fully integrated, multiphase = energy -and power quality monitoring devices. Superior analog performance and a di= gital -signal processing (DSP) core enable accurate energy monitoring over a wide -dynamic range. An integrated high end reference ensures low drift over -temperature with a combined drift of less than =C2=B125 ppm/=C2=B0C maximu= m for the entire -channel including a programmable gain amplifier (PGA) and an analog-to-dig= ital -converter (ADC). - -The ADE9078 does not provide the on-chip dip/swell (sag) detection availab= le on -the ADE9000, so the RMS voltage swell/dip events described below are only -available on the ADE9000. +* `ADE9430 `_ + +The supported parts are highly accurate, fully integrated, +multiphase energy and power quality monitoring devices. Superior analog +performance and a digital signal processing (DSP) core enable accurate ene= rgy +monitoring over a wide dynamic range. An integrated high end reference ens= ures +low drift over temperature with a combined drift of less than =C2=B125 ppm= /=C2=B0C maximum +for the entire channel including a programmable gain amplifier (PGA) and an +analog-to-digital converter (ADC). + +The ADE9078 and ADE9430 do not provide the on-chip dip/swell (sag) detecti= on +available on the ADE9000, so the RMS voltage swell/dip events described be= low are +only available on the ADE9000. The ADE9430 additionally has no on-chip dig= ital +integrator and instead uses an external analog integrator for Rogowski coi= ls. =20 2. Device attributes =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 2.43.0