get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.0/patches/2175122/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2175122,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2175122/?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-6-7890a2951a8f@analog.com>",
    "date": "2025-12-17T12:13:29",
    "name": "[v4,6/9] docs: iio: ad4062: Add IIO Events support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "090d5845de4327fef876b16e704827a09b33fb24",
    "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-6-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/2175122/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-29689-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=x75ZIWV9;\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-29689-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=\"x75ZIWV9\"",
            "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 4dWXvq1Tk5z1xty\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Dec 2025 23:21:11 +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 3970630681A8\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 17 Dec 2025 12:14:49 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 946203446A6;\n\tWed, 17 Dec 2025 12:14:24 +0000 (UTC)",
            "from mx0a-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 45DBC342CB0;\n\tWed, 17 Dec 2025 12:14:22 +0000 (UTC)",
            "from pps.filterd (m0167089.ppops.net [127.0.0.1])\n\tby mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 5BH8SXrn3979344;\n\tWed, 17 Dec 2025 07:14:01 -0500",
            "from nwd2mta4.analog.com ([137.71.173.58])\n\tby mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4b3bbevk6b-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 17 Dec 2025 07:14:00 -0500 (EST)",
            "from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10])\n\tby nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 5BHCDxTO041108\n\t(version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n verify=FAIL);\n\tWed, 17 Dec 2025 07:13:59 -0500",
            "from ASHBCASHYB4.ad.analog.com (10.64.17.132) by\n ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1748.37; Wed, 17 Dec 2025 07:13:59 -0500",
            "from ASHBMBX9.ad.analog.com (10.64.17.10) by\n ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1748.37; Wed, 17 Dec 2025 07:13:59 -0500",
            "from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com\n (10.64.17.10) with Microsoft SMTP Server id 15.2.1748.37 via Frontend\n Transport; Wed, 17 Dec 2025 07:13:59 -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 5BHCDUvC014815;\n\tWed, 17 Dec 2025 07:13:51 -0500"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1765973664; cv=none;\n b=Zi3wFjndLRCAWd/w7SdWOD3lGnroBZATCx//yXplJv2yGoUfoUCfKP3trw8B6cYt9L1ej6cs8Oti19FnDb3swToifpxa1M3Fcyt4IpECrtqTJ8vW04KlFG+7O5qmHJuqWxf0ZLeg6gpkm59W38xfX73UGilukYMCC2Y2yMIK1Io=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1765973664; c=relaxed/simple;\n\tbh=fyI5mimULp3XgcPi56o1DTpa5TxXCpPMzp3xNKiC0zI=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References:\n\t In-Reply-To:To:CC;\n b=RIhjT21v+ZSywq9zzEyfZrx+UArK5dd2SZKnhMJpyJqjgSUK8WO2OEZXqhOGxshE5d1vgKk+/gVNTWehFhII904dREM+ns+8l3DCUJXxTsP+OWWBSZyZeBVYq7TyEA5X7fDTTNEL1elKK4t5s9ZDrI1FQoOHGtHjo9eGWvn8fbA=",
        "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=x75ZIWV9; 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=JbhBG\n\t99E83UqESzQ32vc9RiIs22UMws2gIJLz89/fyI=; b=x75ZIWV9kOBU4wBxvPfgt\n\tHvKvmP7Cls/78gIq2aVQaR0V3lJwt8mDUTYH16yzy6MbXAU8WhkXc8I4JK/JqWbq\n\tKa9mbJHdJxPlZ9S9KdrFhonjZoTCtFSugSXIvOUtzag5/D34oPQmik1xNCNwOAnV\n\tJld3EqgEdYwR8UKiXXt68L0jPmqtYcS/xUvWB9VQS4iSi6bQB3LI4SOYFOVgnVTX\n\t7Y/BBAPZQKUelrELhG/PhX5SNdZDZUtajxgj7yQJOqeb0CY/iAhPFm+s9VeIVzEP\n\t4SJIE5k2g16EcUPsLSJJ33gztx+RDw505QIcXMnec2NhyMvKXabbXCFkyeDTPmUn\n\tQ==",
        "From": "Jorge Marques <jorge.marques@analog.com>",
        "Date": "Wed, 17 Dec 2025 13:13:29 +0100",
        "Subject": "[PATCH v4 6/9] docs: iio: ad4062: Add IIO Events support",
        "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-6-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=2816;\n i=jorge.marques@analog.com; s=20250303; h=from:subject:message-id;\n bh=fyI5mimULp3XgcPi56o1DTpa5TxXCpPMzp3xNKiC0zI=;\n b=n+fFm/A4fzfxg4GCV0+SoIdOmW9cqpy+xvpYG2kImHbQV9ZVfISofSc+NuISFYxQnu/rb+Uz6\n HC9DFqkLAFgDOULJyLqpJ2x+WkphOz9gK6EQU66EpBdBK1ASaRLCd+r",
        "X-Developer-Key": "i=jorge.marques@analog.com; a=ed25519;\n pk=NUR1IZZMH0Da3QbJ2tBSznSPVfRpuoWdhBzKGSpAdbg=",
        "X-ADIRuleOP-NewSCL": "Rule Triggered",
        "X-Proofpoint-ORIG-GUID": "LYtmni-30NM7F9igFN9ubYRqSV7ir1yO",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjUxMjE3MDA5NSBTYWx0ZWRfX3a9SgOE/J12a\n Q5lY4BKuxfhu1mmXxgJOkzz5jtTIUNmGIIc/xkzf2Gd/zM3Au/w+dz3xA67zzpj3zGlG/bG3EoA\n O0Zr2RvfbXR5WlnszbWx5qXBKFr0dsd00bd1k6Zl1uVmLhEeWfsAcQTdMcP/Okf0fRyj262NKcA\n dxVW8LQYhqgmX2hHKdXkgIf+pm3b/JVZ+feB+d/jshz5ws47l48Qh1wAy/6XfpEwN5AmLqk4oAD\n l0p4+pcaLFjb+LLYCbiJGxsxzHdN6bSZOZg1WBBmjIsYp3O960GgFtk+47cgZgaDajfPNXezC4j\n 9NiZs3QAuWRwDsAAjskuDr29sTTm+v48FOvljLsrYqw/CE0xOWIEya8aJVDI9SdsQ7lm+8wAK3l\n MU10iuLTBCZ8cedbdMGVR8HNuVhQIw==",
        "X-Authority-Analysis": "v=2.4 cv=YqsChoYX c=1 sm=1 tr=0 ts=69429e88 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=RvCAy4sPJie4B97SFe0A:9 a=QEXdDO2ut3YA:10",
        "X-Proofpoint-GUID": "LYtmni-30NM7F9igFN9ubYRqSV7ir1yO",
        "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 spamscore=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0\n phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 priorityscore=1501\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512170095"
    },
    "content": "Explains the IIO Events support.\n\nSigned-off-by: Jorge Marques <jorge.marques@analog.com>\n---\n Documentation/iio/ad4062.rst | 41 +++++++++++++++++++++++++++++++++++++++--\n 1 file changed, 39 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/Documentation/iio/ad4062.rst b/Documentation/iio/ad4062.rst\nindex 12ac16dfc3028..8d388f9e2f450 100644\n--- a/Documentation/iio/ad4062.rst\n+++ b/Documentation/iio/ad4062.rst\n@@ -26,6 +26,7 @@ at the end of the read command.\n The two programmable GPIOS are optional and have a role assigned if present in\n the devicetree ``interrupt-names`` property:\n \n+- GP0: Is assigned the role of Threshold Either signal.\n - GP1: Is assigned the role of Data Ready signal.\n \n Device attributes\n@@ -74,8 +75,10 @@ Interrupts\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+The ``interrupt-names`` ``gp0`` entry sets the role of Threshold signal, and\n+entry ``gp1`` the role of Data Ready signal.\n+\n+If each is not present, the driver fallback to enabling the same role as an\n I3C IBI.\n \n Low-power mode\n@@ -97,3 +100,37 @@ The acquisition is sequential and bounded by the protocol timings, software\n latency and internal timings, the sample rate is not configurable. The burst\n averaging mode does impact the effective sample rate, since it increases the\n internal timing to output a single sample.\n+\n+Threshold events\n+================\n+\n+The ADC supports a monitoring mode to raise threshold events. The driver\n+supports a single interrupt for both rising and falling readings.\n+\n+The feature is enabled/disabled by setting ``thresh_either_en``. During monitor\n+mode, the device continuously operates in autonomous mode. Any register access\n+puts the device back in configuration mode, due to this, any access disables\n+monitor mode.\n+\n+The following event attributes are available:\n+\n+.. list-table:: Event attributes\n+   :header-rows: 1\n+\n+   * - Attribute\n+     - Description\n+   * - ``sampling_frequency``\n+     - Frequency used in the monitoring mode, sets the device internal sample\n+       rate when the mode is activated.\n+   * - ``sampling_frequency_available``\n+     - List of available sample rates.\n+   * - ``thresh_either_en``\n+     - Enable monitoring mode.\n+   * - ``thresh_falling_hysteresis``\n+     - Set the hysteresis value for the minimum threshold.\n+   * - ``thresh_falling_value``\n+     - Set the minimum threshold value.\n+   * - ``thresh_rising_hysteresis``\n+     - Set the hysteresis value for the maximum threshold.\n+   * - ``thresh_rising_value``\n+     - Set the maximum threshold value.\n",
    "prefixes": [
        "v4",
        "6/9"
    ]
}