get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226510,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226510/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260422143112.1329478-5-raymondmaoca@gmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260422143112.1329478-5-raymondmaoca@gmail.com>",
    "date": "2026-04-22T14:31:00",
    "name": "[04/16] dts: k1: import pinctrl dts file from upstream folder",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0dc196720d6e5597571b66a0896bd6cf8814d133",
    "submitter": {
        "id": 91989,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/91989/?format=api",
        "name": "Raymond Mao",
        "email": "raymondmaoca@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260422143112.1329478-5-raymondmaoca@gmail.com/mbox/",
    "series": [
        {
            "id": 501020,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501020/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501020",
            "date": "2026-04-22T14:30:56",
            "name": "Add PIN and SPI support for Spacemit K1",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501020/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226510/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226510/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=NF5D8VId;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"NF5D8VId\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=raymondmaoca@gmail.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4g11ry0cWMz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 00:32:18 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 916B3841F2;\n\tWed, 22 Apr 2026 16:31:52 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 9BEE9842E6; Wed, 22 Apr 2026 16:31:47 +0200 (CEST)",
            "from mail-ot1-x333.google.com (mail-ot1-x333.google.com\n [IPv6:2607:f8b0:4864:20::333])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 2224F84324\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 16:31:41 +0200 (CEST)",
            "by mail-ot1-x333.google.com with SMTP id\n 46e09a7af769-7dbd23bc684so3172555a34.2\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 07:31:41 -0700 (PDT)",
            "from ubuntu.localdomain (172-97-209-197.cpe.distributel.net.\n [172.97.209.197]) by smtp.gmail.com with ESMTPSA id\n d75a77b69052e-50e394903dfsm138772501cf.26.2026.04.22.07.31.36\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 07:31:37 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776868299; x=1777473099; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=YiMCHDNSaVY1pWYwMwgilc+Iec389Bar8qB956M5X4I=;\n b=NF5D8VIdou1UKmcjnYfDWNxibfEFUbxOTOjkxbuUtPyRiMfvii2S7ZCeYssFAxNgLo\n sLf5SANVUTVNED5cS70BHfvuXUAzVbWQUQspWaPVpfHZDt2c6sPAiJHfhkPBMU04/SUT\n ycO1sqoPDvsJVb/6pjjI4U/7ab1mZNCbBKUtzuNHArzO5ovyE3RLNRio8odgynCcbbnm\n 53IC767cHfkg1fX5D1aeiin28NuqsjCKIUtlpuJZgattEIakWNGci9X+7WCSoHMtUNn4\n sQqg+Trrpk5qzXGZtO1QqrYDWgCp5wosl9VznP9rmGOUTg+8fNB167NK4yCu839P+wuH\n jGIQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776868299; x=1777473099;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=YiMCHDNSaVY1pWYwMwgilc+Iec389Bar8qB956M5X4I=;\n b=bLMGEAWYK1RHH6nuv7Or1eCSKEkz0qxlj3wYpyRYXSWTtswnbz7kihtA+XtG5ff2e4\n 6S4eXdLg7H6TX8CXWjHaFJ4d7uSv03h+Rin6y3pWBawi9RIy00uFXwnsrSO5SpnEavPg\n v7JGjMWbXYiNI+z4zfqs/p7TDl17TFUXMfdhV18Dg3LyDr+tSflIpy0PTPfmVpxex6Dq\n 2DFlQB2BvhkY1i0HIVY9S7ALgFLnov/dcMHDNaGV3mn4B8PrqoMvWCpMLLzAYcYqKIVi\n VMbVHoWIbjGpS3ICvEpILe1+Td9xy/8PnFNlxHGl+dx/vU4DFq8O68yKjST1rEbrdvzu\n HyCA==",
        "X-Gm-Message-State": "AOJu0Yz6hav6NlDG4ryWxyXEABH93WjJRNBjDGB0gh3FTH8o7zKj4+y+\n Kt91RWiGt6YJEmP6GJVo3y/xBujeMPQ2FJILRnWTMPE7JcVBvFArlXjZusOWO9PNTys=",
        "X-Gm-Gg": "AeBDietjYbsRSRGCfIwCE1KGnCOGqM3sYOBtAqjgYlouvGcFYNbAPfcRldydc3mOfaZ\n /G2z7CTO5Wns5JmLA+pBv5e+WJS6ss73yObF2UlF+UDsZP+fDaXTuPzppv7fYFVZqdOA5ekbnoc\n XtiebDW7f1OApbrLQBde/+hYFhO3w9gQE8gY+ZRvmnksPDNjdgU4SrV27HdJhoD+WTGVPo9X0jw\n Ot3GFMS9d2b11kVhTcSboEkbp+b+95QiLoIRQb6vwIQCgz1MFKWrpcBaScYmjgVtqdT309VMDc/\n ohidNaST4SeVGCJSNklArMID6gABG7i3pRxeRG1Km9A/BVUkxSlDRhhzBb/qnD5iuhemvwTHchz\n ZpjZ762KIq8A5iOQkaXhdFFqL6kCp5yqaY9dNLaNvwNn/xhrDfN15sRvExM9xyMeGrbsCnNP9iv\n 0YC1YpaGbHsk/qzVGGD43gEPUBQYMsv3Kgyyrp30wQC2fIfVPT71lYRWN6QQ8bpTzG3Q1xlJhEw\n hN2Cch+gEW91F2rV3rvLA==",
        "X-Received": "by 2002:a05:6820:c018:b0:686:d107:2859 with SMTP id\n 006d021491bc7-69462e649e8mr7738601eaf.23.1776868299528;\n Wed, 22 Apr 2026 07:31:39 -0700 (PDT)",
        "From": "Raymond Mao <raymondmaoca@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "uboot@riscstar.com, u-boot-spacemit@groups.io, raymond.mao@riscstar.com,\n rick@andestech.com, ycliang@andestech.com, trini@konsulko.com,\n lukma@denx.de, hs@nabladev.com, jh80.chung@samsung.com, peng.fan@nxp.com,\n xypron.glpk@gmx.de, randolph@andestech.com, dlan@gentoo.org,\n junhui.liu@pigmoral.tech, neil.armstrong@linaro.org,\n quentin.schulz@cherry.de, samuel@sholland.org, raymondmaoca@gmail.com",
        "Subject": "[PATCH 04/16] dts: k1: import pinctrl dts file from upstream folder",
        "Date": "Wed, 22 Apr 2026 10:31:00 -0400",
        "Message-Id": "<20260422143112.1329478-5-raymondmaoca@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260422143112.1329478-1-raymondmaoca@gmail.com>",
        "References": "<20260422143112.1329478-1-raymondmaoca@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "From: Raymond Mao <raymond.mao@riscstar.com>\n\nImport k1-pinctrl.dtsi from upstream folder.\n\nSigned-off-by: Raymond Mao <raymond.mao@riscstar.com>\n---\n arch/riscv/dts/k1-pinctrl.dtsi | 66 ++++++++++++++++++++++++++++++++--\n 1 file changed, 63 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/riscv/dts/k1-pinctrl.dtsi b/arch/riscv/dts/k1-pinctrl.dtsi\nindex 14e7096fbcf..aff19c86d5f 100644\n--- a/arch/riscv/dts/k1-pinctrl.dtsi\n+++ b/arch/riscv/dts/k1-pinctrl.dtsi\n@@ -1,12 +1,64 @@\n-// SPDX-License-Identifier: (GPL-2.0 OR MIT)\n+// SPDX-License-Identifier: GPL-2.0 OR MIT\n /*\n- * Copyright (C) 2022 Spacemit Inc.\n- * Copyright (C) 2025 Yixun Lan <dlan@gentoo.org>\n+ * Copyright (c) 2024 Yixun Lan <dlan@gentoo.org>\n  */\n \n+#include <dt-bindings/gpio/gpio.h>\n+\n #define K1_PADCONF(pin, func) (((pin) << 16) | (func))\n \n+/* Map GPIO pin to each bank's <index, offset> */\n+#define K1_GPIO(x)\t(x / 32) (x % 32)\n+\n &pinctrl {\n+\tgmac0_cfg: gmac0-cfg {\n+\t\tgmac0-pins {\n+\t\t\tpinmux = <K1_PADCONF(0, 1)>,\t/* gmac0_rxdv */\n+\t\t\t\t <K1_PADCONF(1, 1)>,\t/* gmac0_rx_d0 */\n+\t\t\t\t <K1_PADCONF(2, 1)>,\t/* gmac0_rx_d1 */\n+\t\t\t\t <K1_PADCONF(3, 1)>,\t/* gmac0_rx_clk */\n+\t\t\t\t <K1_PADCONF(4, 1)>,\t/* gmac0_rx_d2 */\n+\t\t\t\t <K1_PADCONF(5, 1)>,\t/* gmac0_rx_d3 */\n+\t\t\t\t <K1_PADCONF(6, 1)>,\t/* gmac0_tx_d0 */\n+\t\t\t\t <K1_PADCONF(7, 1)>,\t/* gmac0_tx_d1 */\n+\t\t\t\t <K1_PADCONF(8, 1)>,\t/* gmac0_tx */\n+\t\t\t\t <K1_PADCONF(9, 1)>,\t/* gmac0_tx_d2 */\n+\t\t\t\t <K1_PADCONF(10, 1)>,\t/* gmac0_tx_d3 */\n+\t\t\t\t <K1_PADCONF(11, 1)>,\t/* gmac0_tx_en */\n+\t\t\t\t <K1_PADCONF(12, 1)>,\t/* gmac0_mdc */\n+\t\t\t\t <K1_PADCONF(13, 1)>,\t/* gmac0_mdio */\n+\t\t\t\t <K1_PADCONF(14, 1)>,\t/* gmac0_int_n */\n+\t\t\t\t <K1_PADCONF(45, 1)>;\t/* gmac0_clk_ref */\n+\n+\t\t\tbias-pull-up = <0>;\n+\t\t\tdrive-strength = <21>;\n+\t\t};\n+\t};\n+\n+\tgmac1_cfg: gmac1-cfg {\n+\t\tgmac1-pins {\n+\t\t\tpinmux = <K1_PADCONF(29, 1)>,\t/* gmac1_rxdv */\n+\t\t\t\t <K1_PADCONF(30, 1)>,\t/* gmac1_rx_d0 */\n+\t\t\t\t <K1_PADCONF(31, 1)>,\t/* gmac1_rx_d1 */\n+\t\t\t\t <K1_PADCONF(32, 1)>,\t/* gmac1_rx_clk */\n+\t\t\t\t <K1_PADCONF(33, 1)>,\t/* gmac1_rx_d2 */\n+\t\t\t\t <K1_PADCONF(34, 1)>,\t/* gmac1_rx_d3 */\n+\t\t\t\t <K1_PADCONF(35, 1)>,\t/* gmac1_tx_d0 */\n+\t\t\t\t <K1_PADCONF(36, 1)>,\t/* gmac1_tx_d1 */\n+\t\t\t\t <K1_PADCONF(37, 1)>,\t/* gmac1_tx */\n+\t\t\t\t <K1_PADCONF(38, 1)>,\t/* gmac1_tx_d2 */\n+\t\t\t\t <K1_PADCONF(39, 1)>,\t/* gmac1_tx_d3 */\n+\t\t\t\t <K1_PADCONF(40, 1)>,\t/* gmac1_tx_en */\n+\t\t\t\t <K1_PADCONF(41, 1)>,\t/* gmac1_mdc */\n+\t\t\t\t <K1_PADCONF(42, 1)>,\t/* gmac1_mdio */\n+\t\t\t\t <K1_PADCONF(43, 1)>,\t/* gmac1_int_n */\n+\t\t\t\t <K1_PADCONF(46, 1)>;\t/* gmac1_clk_ref */\n+\n+\t\t\tbias-pull-up = <0>;\n+\t\t\tdrive-strength = <21>;\n+\t\t};\n+\t};\n+\n \tuart0_2_cfg: uart0-2-cfg {\n \t\tuart0-2-pins {\n \t\t\tpinmux = <K1_PADCONF(68, 2)>,\n@@ -16,4 +68,12 @@\n \t\t\tdrive-strength = <32>;\n \t\t};\n \t};\n+\n+\tpwm14_1_cfg: pwm14-1-cfg {\n+\t\tpwm14-1-pins {\n+\t\t\tpinmux = <K1_PADCONF(44, 4)>;\n+\t\t\tbias-pull-up = <0>;\n+\t\t\tdrive-strength = <32>;\n+\t\t};\n+\t};\n };\n",
    "prefixes": [
        "04/16"
    ]
}