Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2175117/?format=api
{ "id": 2175117, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2175117/?format=api", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/1.0/projects/42/?format=api", "name": "Linux GPIO development", "link_name": "linux-gpio", "list_id": "linux-gpio.vger.kernel.org", "list_email": "linux-gpio@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20251217-staging-ad4062-v4-2-7890a2951a8f@analog.com>", "date": "2025-12-17T12:13:25", "name": "[v4,2/9] docs: iio: New docs for ad4062 driver", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "18186117aff7915a814d283974f9b4adc4fa6ef6", "submitter": { "id": 90425, "url": "http://patchwork.ozlabs.org/api/1.0/people/90425/?format=api", "name": "Jorge Marques", "email": "jorge.marques@analog.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20251217-staging-ad4062-v4-2-7890a2951a8f@analog.com/mbox/", "series": [ { "id": 485673, "url": "http://patchwork.ozlabs.org/api/1.0/series/485673/?format=api", "date": "2025-12-17T12:13:23", "name": "Add support for AD4062 device family", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/485673/mbox/" } ], "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2175117/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-gpio+bounces-29685-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-gpio@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=analog.com header.i=@analog.com header.a=rsa-sha256\n header.s=DKIM header.b=n1Qy5ZF0;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-gpio+bounces-29685-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com\n header.b=\"n1Qy5ZF0\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=148.163.135.77", "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=analog.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=analog.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dWXsR1W3hz1y0P\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Dec 2025 23:19:07 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id D896C308818B\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Dec 2025 12:14:29 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A1D5334214C;\n\tWed, 17 Dec 2025 12:14:20 +0000 (UTC)", "from mx0b-00128a01.pphosted.com (mx0a-00128a01.pphosted.com\n [148.163.135.77])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BC9833F8BF;\n\tWed, 17 Dec 2025 12:14:18 +0000 (UTC)", "from pps.filterd (m0375855.ppops.net [127.0.0.1])\n\tby mx0b-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 5BHAsJYx3839967;\n\tWed, 17 Dec 2025 07:13:50 -0500", "from nwd2mta4.analog.com ([137.71.173.58])\n\tby mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 4b3jw9jegb-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 17 Dec 2025 07:13:50 -0500 (EST)", "from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5])\n\tby nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 5BHCDnho041082\n\t(version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n verify=FAIL);\n\tWed, 17 Dec 2025 07:13:49 -0500", "from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com\n (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Wed, 17 Dec\n 2025 07:13:49 -0500", "from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com\n (10.64.17.5) with Microsoft SMTP Server id 15.2.1748.37 via Frontend\n Transport; Wed, 17 Dec 2025 07:13:49 -0500", "from HYB-DlYm71t3hSl.ad.analog.com (HYB-DlYm71t3hSl.ad.analog.com\n [10.44.3.73])\n\tby zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 5BHCDUv8014815;\n\tWed, 17 Dec 2025 07:13:42 -0500" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1765973660; cv=none;\n b=e8OOtTSn7Uy3KA3DCM74BLCPkDavWpisYwVutnqnJ0ZM/2cgJONsJQ7MGgdQ2XM1cPzXRPwMksabQzzqNed4YNbAukIjJKrr7/0HigcZc9ovTYzud5Efr2es8xxH4zHStTV/1vl5wdLft+mJUjaIjwXwY+VpfHChbTSUaQ+79Ag=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1765973660; c=relaxed/simple;\n\tbh=MuHYsLjxwdN8IkJNsHAUBMs6LN4MRGpg5MuRP0IoWa8=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References:\n\t In-Reply-To:To:CC;\n b=rdb7ZmoxlaxYG/w9Np/yPi53sYk4Ql0vfOfxsXXdcxMpV5I6mVZ4KnnJzMhjyjkh7Bya9b7bdcXR1OfsbKjOERgnn/MaytWUBlvyn8tQo300DGsS3Y7Wj9YMuxVoiJqhQl4GZaofQ7dLrtwy4wg4zo49fJcRgwXYfEV+/lxlsh0=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=analog.com;\n spf=pass smtp.mailfrom=analog.com;\n dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com\n header.b=n1Qy5ZF0; arc=none smtp.client-ip=148.163.135.77", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc\n\t:content-transfer-encoding:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to; s=DKIM; bh=xrV4J\n\tcgO8S4mlg0S60Bb6DHITfHakEA08GWxAiwTfrU=; b=n1Qy5ZF0aRb252PGD/GMg\n\t9UHoAtDMUK//AkXKre7U8qz3qnWfPzH9dw+RJOQU2d/1mBVzvmob1YgHznVDEqhM\n\tQisctj/o1htCVzP6+WDVlfzlL8aCIh+PU4luafAxgayRad5zBz+O4DrPetfTNv6Y\n\t7zO2R248YEZYzSlrRguPig7zoXEiUwLXPu1MidaiFdaIalmB2nrhZSnTB0b5D8YJ\n\tE3xGkwWsmAhxIYj7y9lBW5AG21lxU5u+0DskW98bbkBdVDqDb57nXY2SF5qu/9z0\n\te1NlVZy0GLQAWmkMQF7yQKqtFv6Fp2KnH39AVtOkEt7bgZFKxfpcboDP99wD08k0\n\tQ==", "From": "Jorge Marques <jorge.marques@analog.com>", "Date": "Wed, 17 Dec 2025 13:13:25 +0100", "Subject": "[PATCH v4 2/9] docs: iio: New docs for ad4062 driver", "Precedence": "bulk", "X-Mailing-List": "linux-gpio@vger.kernel.org", "List-Id": "<linux-gpio.vger.kernel.org>", "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-ID": "<20251217-staging-ad4062-v4-2-7890a2951a8f@analog.com>", "References": "<20251217-staging-ad4062-v4-0-7890a2951a8f@analog.com>", "In-Reply-To": "<20251217-staging-ad4062-v4-0-7890a2951a8f@analog.com>", "To": "Lars-Peter Clausen <lars@metafoo.de>,\n Michael Hennerich <Michael.Hennerich@analog.com>,\n Jonathan Cameron <jic23@kernel.org>, David Lechner <dlechner@baylibre.com>,\n\t=?utf-8?q?Nuno_S=C3=A1?= <nuno.sa@analog.com>,\n Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,\n Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>,\n Jonathan Corbet <corbet@lwn.net>, Linus Walleij <linus.walleij@linaro.org>,\n Bartosz Golaszewski <brgl@bgdev.pl>", "CC": "<linux-iio@vger.kernel.org>, <devicetree@vger.kernel.org>,\n <linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>,\n <linux-gpio@vger.kernel.org>, Jorge Marques <jorge.marques@analog.com>", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1765973610; l=4189;\n i=jorge.marques@analog.com; s=20250303; h=from:subject:message-id;\n bh=MuHYsLjxwdN8IkJNsHAUBMs6LN4MRGpg5MuRP0IoWa8=;\n b=X20dKF/QcN5DGrpOir73v8AawVMq83fiQvD+On/JHzQg4YhNG+nKSdazkThkWQ4u28i+XPhsS\n kewKQnbj1iWBhsk5UPa3TvNU0tUn9U3VytacQgTR1nnxXUWgv3g3so5", "X-Developer-Key": "i=jorge.marques@analog.com; a=ed25519;\n pk=NUR1IZZMH0Da3QbJ2tBSznSPVfRpuoWdhBzKGSpAdbg=", "X-ADIRuleOP-NewSCL": "Rule Triggered", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjUxMjE3MDA5NCBTYWx0ZWRfXwR+c+D0k6ocy\n gR7Q4vehIDyyW5XaSBONmRpu5nTxOJwsOwBR1urcYN8H2eWvtL6zveFoQod4MdzWLpBIh3cUhgY\n BL9Y6HW0pEtEKNAPVworFoLebTkU2eJ9k3A4B+P2py5pETjOtVW0/xez3AynI4W4yiASCDn9fn2\n w1QgN86B1uRxO8rgsynoY57jx3+/vOx3tpgOgUFFoR8baNcR/4wy/MB1eHVZX/YiMuzz/26LQpN\n PCwvLg5xQlaoSY/Tccngv281QzltMOTVWE9J4E0f7dlmVM2LnPhYwKrnEPwnnyFc/A0znvqpofm\n d6FR8ehjxt1qOLvErMMRm/Xe0yUOl0Y7B2cqUzgqjfdI6NdgEzDEZ5MEUX/uKUlJjVa+TJ4o35p\n DW14NvxCqgTtozmlsigLKG98T6ugjg==", "X-Authority-Analysis": "v=2.4 cv=TZGbdBQh c=1 sm=1 tr=0 ts=69429e7e cx=c_pps\n a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17\n a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=VkNPw1HP01LnGYTKEx00:22\n a=gAnH3GRIAAAA:8 a=5m_mccj1f-mIrhuec74A:9 a=QEXdDO2ut3YA:10", "X-Proofpoint-GUID": "GHcQ39509lgPrKWvMBbAGQCkocVIVqxt", "X-Proofpoint-ORIG-GUID": "GHcQ39509lgPrKWvMBbAGQCkocVIVqxt", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49\n definitions=2025-12-17_01,2025-12-16_05,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n phishscore=0 adultscore=0 impostorscore=0 spamscore=0 priorityscore=1501\n bulkscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 suspectscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512170094" }, "content": "This adds a new page to document how to use the ad4062 ADC driver.\n\nSigned-off-by: Jorge Marques <jorge.marques@analog.com>\n---\n Documentation/iio/ad4062.rst | 86 ++++++++++++++++++++++++++++++++++++++++++++\n Documentation/iio/index.rst | 1 +\n MAINTAINERS | 1 +\n 3 files changed, 88 insertions(+)", "diff": "diff --git a/Documentation/iio/ad4062.rst b/Documentation/iio/ad4062.rst\nnew file mode 100644\nindex 0000000000000..30200adf90c38\n--- /dev/null\n+++ b/Documentation/iio/ad4062.rst\n@@ -0,0 +1,86 @@\n+.. SPDX-License-Identifier: GPL-2.0-only\n+\n+=============\n+AD4062 driver\n+=============\n+\n+ADC driver for Analog Devices Inc. AD4060/AD4062 devices. The module name is\n+``ad4062``.\n+\n+Supported devices\n+=================\n+\n+The following chips are supported by this driver:\n+\n+* `AD4060 <https://www.analog.com/AD4060>`_\n+* `AD4062 <https://www.analog.com/AD4062>`_\n+\n+Wiring modes\n+============\n+\n+The ADC is interfaced through an I3C bus, and contains two programmable GPIOs.\n+\n+The ADC convert-start happens on the SDA rising edge of the I3C stop (P) bit\n+at the end of the read command.\n+\n+The two programmable GPIOS are optional and have a role assigned if present in\n+the devicetree ``interrupt-names`` property:\n+\n+- GP1: Is assigned the role of Data Ready signal.\n+\n+Device attributes\n+=================\n+\n+The ADC contains only one channel with following attributes:\n+\n+.. list-table:: Channel attributes\n+ :header-rows: 1\n+\n+ * - Attribute\n+ - Description\n+ * - ``in_voltage_calibscale``\n+ - Sets the gain scaling factor that the hardware applies to the sample,\n+ to compensate for system gain error.\n+ * - ``in_voltage_oversampling_ratio``\n+ - Sets device's burst averaging mode to over sample using the\n+ internal sample rate. Value 1 disable the burst averaging mode.\n+ * - ``in_voltage_oversampling_ratio_available``\n+ - List of available oversampling values.\n+ * - ``in_voltage_raw``\n+ - Returns the raw ADC voltage value.\n+ * - ``in_voltage_scale``\n+ - Returns the channel scale in reference to the reference voltage\n+ ``ref-supply`` or ``vdd-supply`` if the former not present.\n+\n+Also contain the following device attributes:\n+\n+.. list-table:: Device attributes\n+ :header-rows: 1\n+\n+ * - Attribute\n+ - Description\n+ * - ``sampling_frequency``\n+ - Sets the duration of a single scan, used in the burst averaging mode.\n+ The duration is described by ``(n_avg - 1) / fosc + tconv``, where\n+ ``n_avg`` is the oversampling ratio, ``fosc`` is the internal sample\n+ rate and ``tconv`` is the ADC conversion time.\n+ * - ``sampling_frequency_available``\n+ - Lists the available sampling frequencies, computed on the current\n+ oversampling ratio. If the ratio is 1, the frequency is ``1/tconv``.\n+\n+Interrupts\n+==========\n+\n+The interrupts are mapped through the ``interrupt-names`` and ``interrupts``\n+properties.\n+\n+The ``interrupt-names`` ``gp1`` entry sets the role of Data Ready signal.\n+If it is not present, the driver fallback to enabling the same role as an\n+I3C IBI.\n+\n+Low-power mode\n+==============\n+\n+The device enters low-power mode on idle to save power. Enabling an event puts\n+the device out of the low-power since the ADC autonomously samples to assert\n+the event condition.\ndiff --git a/Documentation/iio/index.rst b/Documentation/iio/index.rst\nindex 315ae37d6fd4b..ba3e609c6a13c 100644\n--- a/Documentation/iio/index.rst\n+++ b/Documentation/iio/index.rst\n@@ -22,6 +22,7 @@ Industrial I/O Kernel Drivers\n ad3552r\n ad4000\n ad4030\n+ ad4062\n ad4695\n ad7191\n ad7380\ndiff --git a/MAINTAINERS b/MAINTAINERS\nindex bc1d6b2d0a11e..0730b79c3dd0d 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -1437,6 +1437,7 @@ M:\tJorge Marques <jorge.marques@analog.com>\n S:\tSupported\n W:\thttps://ez.analog.com/linux-software-drivers\n F:\tDocumentation/devicetree/bindings/iio/adc/adi,ad4062.yaml\n+F:\tDocumentation/iio/ad4062.rst\n \n ANALOG DEVICES INC AD4080 DRIVER\n M:\tAntoniu Miclaus <antoniu.miclaus@analog.com>\n", "prefixes": [ "v4", "2/9" ] }