Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195287/?format=api
{ "id": 2195287, "url": "http://patchwork.ozlabs.org/api/patches/2195287/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260210170439.406513-4-shenwei.wang@nxp.com/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260210170439.406513-4-shenwei.wang@nxp.com>", "list_archive_url": null, "date": "2026-02-10T17:04:37", "name": "[v7,2/4] docs: driver-api: gpio: rpmsg gpio driver over rpmsg bus", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "4f189043bdafe0969e7ead0cf39c7459d79a6da7", "submitter": { "id": 74153, "url": "http://patchwork.ozlabs.org/api/people/74153/?format=api", "name": "Shenwei Wang", "email": "shenwei.wang@nxp.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260210170439.406513-4-shenwei.wang@nxp.com/mbox/", "series": [ { "id": 491712, "url": "http://patchwork.ozlabs.org/api/series/491712/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=491712", "date": "2026-02-10T17:04:37", "name": null, "version": 7, "mbox": "http://patchwork.ozlabs.org/series/491712/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195287/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195287/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-31561-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=nxp.com header.i=@nxp.com header.a=rsa-sha256\n header.s=selector1 header.b=Dar9S8EM;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-31561-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com\n header.b=\"Dar9S8EM\"", "smtp.subspace.kernel.org;\n arc=fail smtp.client-ip=52.101.84.51", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=nxp.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=nxp.com", "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=nxp.com;" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f9Sfy6951z1xwG\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 04:07:38 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 5791D307ACDB\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 17:05:54 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D51AD32AACB;\n\tTue, 10 Feb 2026 17:05:53 +0000 (UTC)", "from DB3PR0202CU003.outbound.protection.outlook.com\n (mail-northeuropeazon11010051.outbound.protection.outlook.com [52.101.84.51])\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 0888C326930;\n\tTue, 10 Feb 2026 17:05:52 +0000 (UTC)", "from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11)\n by DB9PR04MB8362.eurprd04.prod.outlook.com (2603:10a6:10:241::12) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9587.18; Tue, 10 Feb\n 2026 17:05:49 +0000", "from PAXPR04MB9185.eurprd04.prod.outlook.com\n ([fe80::b4c0:6119:2228:2ceb]) by PAXPR04MB9185.eurprd04.prod.outlook.com\n ([fe80::b4c0:6119:2228:2ceb%4]) with mapi id 15.20.9611.006; Tue, 10 Feb 2026\n 17:05:49 +0000" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770743153; cv=fail;\n b=JivROpRU3xToF3MUUAj60nBZpFvhGIjujd/nXjWDU80fAu480i482+Tgm+pxcN+f7LH5ggY/7kJ1RpZybz+UiupN+GX9vBd8FkH8ay9CAFwLZJvFExMOLRJ+Ph2ZRtkmjJ00hjVvHvf5frB8BViIxoo6JIS0XO85Yn+G4doOIAQ=", "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=pFpWfgNxDAfIeyWEYCmCmXFuXaahWE1SZu31h4iygznxBkhurYZcobiwvKsn/4HBA96MRGE9JR88z98wxXBD1zZgESkfH4rPSV8L7fDsSGAm1Gds2egcTv9lIrmZPQjydkVGT8oh5trSdKjAOgR5JQo9vUJwFatAPdQNMrk/c2Ia7lddjw5iVn26jkUyOxuVBwF8EkL+EAnIGhuSfCgtuaqkith8T9qcfi6aIap6E3DMX2AG18p3B8oI9yXZzqILfMHi7CBlTDbSlHvuU6ofk1ctDlez2L4wkWG3w3Isiccpbm6pcsG2v7XAV39ebObjWiPnyDv4GXjNEpRG7S0vCA==" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770743153; c=relaxed/simple;\n\tbh=N38VAq6Arjr2X538y88r8z8OjYp8hHe1fL026vSh6Gw=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t Content-Type:MIME-Version;\n b=hCoOIPaqj14KzVzEig+KzxDrPsK5bYVyIeVXB37b+dthpls8aq6XtSznsavjRzPD7UkGFoStK1re3sJb1ivuPVPMi9V1BQpWg5LjOBibl7V+x7Xiti2LKd3sUq42P2tS8LwiDOYUWR94P5ICTnQUTsefDaDDpmPUwO/5MIxWbzk=", "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=zTr8k7wuw+cdbwhFl/Ngv2Gor4tOSzMKlKWMPISzeYs=;\n b=WbvvjfoVXEV0Lyx/ffld7iAnQWQQuGgOpZxJbE59Rebv9J8f4sOxNko+DtYSgZFOwtty1ydrEENNpndabJfqxsokDTrb2dfagHc9pxObBL6ddGsfQBJXtzcFT238U2B6Aybh+Na4l5GbPgPqAvigueDOT6l3gt98cHgH4azQ7G7q4N+fn/WPvKM6lCmdiNKaZLoQZAuz8XLPtlM3VlxtmrZKxCyU9C2/XRLHDfVqbMRpKu11t0al+NJGUm1CroAeWuYX54OFuOyFHc/JBgO1ZBp/JKNcFpmyxRI9kCXY6tpjNRiVd37WznXsqlgAmqWyOBBdgW+WuYYvshTp19Xrag==" ], "ARC-Authentication-Results": [ "i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=nxp.com;\n spf=pass smtp.mailfrom=nxp.com;\n dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com\n header.b=Dar9S8EM; arc=fail smtp.client-ip=52.101.84.51", "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass\n header.d=nxp.com; arc=none" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=zTr8k7wuw+cdbwhFl/Ngv2Gor4tOSzMKlKWMPISzeYs=;\n b=Dar9S8EMG217+mJ7vQ5fJ5G8JBfmcfhPpfF1jQV2MXG0Nl4peA56vq7GtyRRw+Uvq4LyI66LCJF+C9A/3sNBZ5Y3CSpRJVAI10dKStjtWC7srBBK8Xr2YgKZFMZge4sL+Nw2Bf343AP6GB2TjLAyGYGrO4QoYsuI82RT3qOxvlcmpENth/2pRJvpK5rptJmlvxp6bFaYdbk+DSR2OxlKZnuk6ySrIg0qYm/7Zz2i4tu+t2UVMAri7l1CD4do00BErGyfcEmf4hDd20eIi+CG3oFd1hN62Adu2D2/3Su7VE0JojoFzECd9Yqca0LoNn8+No1McRv9BPvhC15IZMP1kQ==", "From": "Shenwei Wang <shenwei.wang@nxp.com>", "To": "Linus Walleij <linusw@kernel.org>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tBjorn Andersson <andersson@kernel.org>,\n\tMathieu Poirier <mathieu.poirier@linaro.org>,\n\tShawn Guo <shawnguo@kernel.org>,\n\tSascha Hauer <s.hauer@pengutronix.de>,\n\tJonathan Corbet <corbet@lwn.net>", "Cc": "Pengutronix Kernel Team <kernel@pengutronix.de>,\n\tFabio Estevam <festevam@gmail.com>,\n\tShenwei Wang <shenwei.wang@nxp.com>,\n\tPeng Fan <peng.fan@nxp.com>,\n\tlinux-gpio@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tlinux-remoteproc@vger.kernel.org,\n\timx@lists.linux.dev,\n\tlinux-arm-kernel@lists.infradead.org,\n\tlinux-doc@vger.kernel.org,\n\tlinux-imx@nxp.com,\n\tarnaud.pouliquen@foss.st.com", "Subject": "[PATCH v7 2/4] docs: driver-api: gpio: rpmsg gpio driver over rpmsg\n bus", "Date": "Tue, 10 Feb 2026 11:04:37 -0600", "Message-ID": "<20260210170439.406513-4-shenwei.wang@nxp.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260210170439.406513-1-shenwei.wang@nxp.com>", "References": "<20260210170439.406513-1-shenwei.wang@nxp.com>", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-ClientProxiedBy": "PH8PR02CA0023.namprd02.prod.outlook.com\n (2603:10b6:510:2d0::15) To PAXPR04MB9185.eurprd04.prod.outlook.com\n (2603:10a6:102:231::11)", "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", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "PAXPR04MB9185:EE_|DB9PR04MB8362:EE_", "X-MS-Office365-Filtering-Correlation-Id": "d7dea314-e147-4215-eed4-08de68c6a401", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "\n\tBCL:0;ARA:13230040|366016|19092799006|52116014|7416014|376014|1800799024|921020|38350700014;", "X-Microsoft-Antispam-Message-Info": "\n 2j4E+T414uY/8/NERA208Tsc5m0UYIhIQXmuAtdyZ6MrwQpZ+4EdOc5no/pCRML9Ojvqhrr8c0Ux8rY3/PldVvswKkzIkEqTFS0AsTVmD1OadjfpL6rMCR7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q8O0ClKakENGTBbN5h8lKvX6QjA3VN0GEOEdVp82L12EyBWJHaO1O3BaWEo9hysQb1U0qu7l9LMbfWwQ8nQjlssx4yPHjDW2jno5mTPhnUDkbs8DLO7r/ktZEMvG+ER1p/vLQ3uKbtZUdNF4V+CTGdyH9RUiKBy9opSwepZIh7ZbrpECLyT1/DQJBA5CDSHlSm0kzze9+ioX3rBVucA8kBb7AbGtzZWbWqMJF88yo5EhB69ge+twpAK8SRk3Yh8mXfAzbxTlKuHmvkMLu0VWv54ueyPoR0uAOeMBKz0jB0eQo4ICjNzlFtZudZ17ud7jktcL3wsGePbElOt9UIbJe4G1PtclT70aesbf14RvrTCJin4t28WVYMoo0OF09DPwt2Yzh4RZiOIaMyOxfOdkbt9JkWkpY6s/rJo+ch3n/8OI6Y34wBCs7pr1t8FCpv7Lg75QkDqre74sxAGa9olKxvijPqnL", "X-Forefront-Antispam-Report": "\n\tCIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(19092799006)(52116014)(7416014)(376014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n 9aQgxzoQaBMbTW5Yh10pEyOZGgh5rE5rGOkZZCC2U5PSS6edAX7t8n1OzMUfu8KqpFarv+Y0+BVOZgaooyRpu8wiujoT1JiNzkkd7QI1BIt8b3Uz1fJcDqs8VgXJ6xgwKR9bEZ/9ca0I+vaEIprO0AoJLTQSGg48bD5Z/jng9fcDyvejKHnJcXa6PRjHCvThb/l1O1co1QfU47dvEBQUJ84QHXx1D7pH8VaqNnCU4nal5g4wRFfLwrhc3hRzW4G4r1oslNQZJpKQS+p7OCnkJOsUN/HyHgR4G7yUHx9q9BppxR35yDAu29qirzB9DyPsqePYZp2T9F0l4VZBoCYV3+fesj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XHzchzDqGRR1v4UWKadN3AbkanWQYUY5akArHUWE9WjeXcfZA62FSjw69bD+3yyLNE/M3MUkaHFrHPvp3Pz3kvag8VbesxjljM3j/MlAJUTmMkk4Dl3/EVTAchlzAOercncWdYPk5U+ipdstCPplGDM+Y1VnWs9LhjQkIy/Bot7IHeU+x0918Jgvf1qzoCt4JDRq097OpyQ099K2AXyIkz4YOmd67OZFSq3zbZ4TmFZ6bJf/P7nnVmyELr4a5jVJCi1+CHKHxHyEE0VPyMYVV87wyZo8uizQQoGnMutFET+qtF5/7i9BPsesB48Vw==", "X-OriginatorOrg": "nxp.com", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n d7dea314-e147-4215-eed4-08de68c6a401", "X-MS-Exchange-CrossTenant-AuthSource": "PAXPR04MB9185.eurprd04.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Internal", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "10 Feb 2026 17:05:49.8751\n (UTC)", "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted", "X-MS-Exchange-CrossTenant-Id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635", "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED", "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n +44MiQKlrpFGPzGJdIniheOgc16aPf7DsWH2R81au9ALR2+vQrWroBgK0MO+reXQIMYtfpf4ma2hfUlIWKQSUw==", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB9PR04MB8362" }, "content": "Describes the gpio rpmsg transport protocol over the rpmsg bus between\nthe remote system and Linux.\n\nSigned-off-by: Shenwei Wang <shenwei.wang@nxp.com>\n---\n Documentation/driver-api/gpio/gpio-rpmsg.rst | 236 +++++++++++++++++++\n Documentation/driver-api/gpio/index.rst | 1 +\n 2 files changed, 237 insertions(+)\n create mode 100644 Documentation/driver-api/gpio/gpio-rpmsg.rst", "diff": "diff --git a/Documentation/driver-api/gpio/gpio-rpmsg.rst b/Documentation/driver-api/gpio/gpio-rpmsg.rst\nnew file mode 100644\nindex 000000000000..6964de309471\n--- /dev/null\n+++ b/Documentation/driver-api/gpio/gpio-rpmsg.rst\n@@ -0,0 +1,236 @@\n+.. SPDX-License-Identifier: GPL-2.0-or-later\n+\n+GPIO RPMSG Protocol\n+===================\n+\n+The GPIO RPMSG transport protocol is used for communication and interaction\n+with GPIO controllers located on remote cores on the RPMSG bus.\n+\n+Message Format\n+--------------\n+\n+The RPMSG message consists of a 14-byte packet with the following layout:\n+\n+.. code-block:: none\n+\n+ +-----+-------+--------+-----+-----+------------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | ID |vendor |version |type |cmd |reserved[5] |line |port | data |\n+ +-----+-------+--------+-----+-----+------------+-----+-----+-----+----+\n+\n+- **ID (Message Identification Code)**: Must be 0x5. Indicates the GPIO message.\n+\n+- **Vendor**: Vendor ID number.\n+ - 0: Reserved\n+ - 1: NXP\n+\n+- **Version**: Vendor-specific version number (such as software release).\n+\n+- **Type (Message Type)**: The message type can be one of:\n+\n+ - 0: GPIO_RPMSG_SETUP\n+ - 1: GPIO_RPMSG_REPLY\n+ - 2: GPIO_RPMSG_NOTIFY\n+\n+- **Cmd**: Command code, used for GPIO_RPMSG_SETUP messages.\n+\n+- **reserved[5]**: Reserved bytes. Should always be 0.\n+\n+- **line**: The GPIO line(pin) index of the port.\n+\n+- **port**: The GPIO port(bank) index.\n+\n+- **data**: See details in the command description below.\n+\n+GPIO Commands\n+-------------\n+\n+Commands are specified in the **Cmd** field for **GPIO_RPMSG_SETUP** (Type=0) messages.\n+\n+The SETUP message is always sent from Linux to the remote firmware. Each\n+SETUP corresponds to a single REPLY message. The GPIO driver should\n+serialize messages and determine whether a REPLY message is required. If a\n+REPLY message is expected but not received within the specified timeout\n+period (currently 1 second in the Linux driver), the driver should return\n+-ETIMEOUT.\n+\n+GPIO_RPMSG_INPUT_INIT (Cmd=0)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+**Request:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 0 | 0 | 0 |line |port | val | wk |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+- **val**: Interrupt trigger type.\n+\n+ - 0: Interrupt disabled\n+ - 1: Rising edge trigger\n+ - 2: Falling edge trigger\n+ - 3: Both edge trigger\n+ - 4: Low level trigger\n+ - 5: High level trigger\n+\n+- **wk**: Wakeup enable.\n+\n+ The remote system should always aim to stay in a power-efficient state by\n+ shutting down or clock-gating the GPIO blocks that aren't in use. Since\n+ the remoteproc driver is responsible for managing the power states of the\n+ remote firmware, the GPIO driver does not require to know the firmware's\n+ running states.\n+\n+ When the wakeup bit is set, the remote firmware should configure the line\n+ as a wakeup source. The firmware should send the notification message to\n+ Linux after it is woken from the GPIO line.\n+\n+ - 0: Disable wakeup from GPIO\n+ - 1: Enable wakeup from GPIO\n+\n+**Reply:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 1 | 1 | 0 |line |port | err | 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+- **err**: Error code from the remote core.\n+\n+ - 0: Success\n+ - 1: General error (Early remote software only returns this unclassified error)\n+ - 2: Not supported (A command is not supported by the remote firmware)\n+ - 3: Resource not available (The resource is not allocated to Linux)\n+ - 4: Resource busy (The resource is already in use)\n+ - 5: Parameter error\n+\n+GPIO_RPMSG_OUTPUT_INIT (Cmd=1)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+**Request:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 0 | 1 | 0 |line |port | val | 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+- **val**: Output level.\n+\n+ - 0: Low\n+ - 1: High\n+\n+**Reply:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 1 | 1 | 0 |line |port | err | 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+- **err**: See above for definitions.\n+\n+GPIO_RPMSG_INPUT_GET (Cmd=2)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+**Request:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 0 | 2 | 0 |line |port | 0 | 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+**Reply:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+-----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D |\n+ | 5 | 1 | 0 | 1 | 2 | 0 |line |port | err |level|\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+-----+\n+\n+- **err**: See above for definitions.\n+\n+- **level**: Input level.\n+\n+ - 0: Low\n+ - 1: High\n+\n+GPIO_RPMSG_GET_DIRECTION (Cmd=3)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+**Request:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 0 | 3 | 0 |line |port | 0 | 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+**Reply:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+-----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D |\n+ | 5 | 1 | 0 | 1 | 3 | 0 |line |port | err | dir |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+-----+\n+\n+- **err**: See above for definitions.\n+\n+- **dir**: Direction.\n+\n+ - 0: Output\n+ - 1: Input\n+\n+GPIO_RPMSG_NOTIFY_REPLY (Cmd=4)\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+The reply message for the notification is optional. The remote firmware can\n+implement it to simulate the interrupt acknowledgment behavior.\n+\n+**Request:**\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 0 | 4 | 0 |line |port |level| 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+- **line**: The GPIO line(pin) index of the port.\n+- **port**: The GPIO port(bank) index.\n+\n+Notification Message\n+--------------------\n+\n+Notifications are sent with **Type=2 (GPIO_RPMSG_NOTIFY)**:\n+\n+When a GPIO line asserts an interrupt on the remote processor, the firmware\n+should immediately mask the corresponding interrupt source and send a\n+notification message to the Linux. Upon completion of the interrupt\n+handling on the Linux side, the driver should issue a\n+**GPIO_RPMSG_INPUT_INIT** command to the firmware to unmask the interrupt.\n+\n+A Notification message can arrive between a SETUP and its REPLY message,\n+and the driver is expected to handle this scenario.\n+\n+.. code-block:: none\n+\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+ |0x00 |0x01 |0x02 |0x03 |0x04 |0x05..0x09 |0x0A |0x0B |0x0C |0x0D|\n+ | 5 | 1 | 0 | 2 | 0 | 0 |line |port |type | 0 |\n+ +-----+-----+-----+-----+-----+-----------+-----+-----+-----+----+\n+\n+- **line**: The GPIO line(pin) index of the port.\n+- **port**: The GPIO port(bank) index.\n+- **type**: Optional pamameter to indicate the trigger event type.\n+\ndiff --git a/Documentation/driver-api/gpio/index.rst b/Documentation/driver-api/gpio/index.rst\nindex bee58f709b9a..e5eb1f82f01f 100644\n--- a/Documentation/driver-api/gpio/index.rst\n+++ b/Documentation/driver-api/gpio/index.rst\n@@ -16,6 +16,7 @@ Contents:\n drivers-on-gpio\n bt8xxgpio\n pca953x\n+ gpio-rpmsg\n \n Core\n ====\n", "prefixes": [ "v7", "2/4" ] }