get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2215756,
    "url": "http://patchwork.ozlabs.org/api/patches/2215756/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260325095801.47706-3-Alexander.Feilke@ew.tq-group.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260325095801.47706-3-Alexander.Feilke@ew.tq-group.com>",
    "list_archive_url": null,
    "date": "2026-03-25T09:57:55",
    "name": "[v2,2/8] board/tq: Add common SoM API",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "47cccd8f937a9b00d6dbfb7a35789f037a2a2e96",
    "submitter": {
        "id": 92142,
        "url": "http://patchwork.ozlabs.org/api/people/92142/?format=api",
        "name": "Feilke, Alexander",
        "email": "Alexander.Feilke@ew.tq-group.com"
    },
    "delegate": {
        "id": 151988,
        "url": "http://patchwork.ozlabs.org/api/users/151988/?format=api",
        "username": "festevam",
        "first_name": "Fabio",
        "last_name": "Estevam",
        "email": "festevam@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260325095801.47706-3-Alexander.Feilke@ew.tq-group.com/mbox/",
    "series": [
        {
            "id": 497406,
            "url": "http://patchwork.ozlabs.org/api/series/497406/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497406",
            "date": "2026-03-25T09:57:54",
            "name": "Add support for TQMa7x",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/497406/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215756/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215756/checks/",
    "tags": {},
    "related": [],
    "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=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com\n header.a=rsa-sha256 header.s=default2602 header.b=ZSiH/O9O;\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=fail (p=quarantine dis=none) header.from=ew.tq-group.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com\n header.b=\"ZSiH/O9O\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=ew.tq-group.com",
            "phobos.denx.de; spf=pass\n smtp.mailfrom=Alexander.Feilke@ew.tq-group.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 4fgj6b0Wqbz1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 20:59:03 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 02B8C83FDC;\n\tWed, 25 Mar 2026 10:58:28 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 3AF1F81E18; Wed, 25 Mar 2026 10:58:20 +0100 (CET)",
            "from www537.your-server.de (www537.your-server.de [188.40.3.216])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id BA91C83E4C\n for <u-boot@lists.denx.de>; Wed, 25 Mar 2026 10:58:16 +0100 (CET)",
            "from sslproxy07.your-server.de ([78.47.199.104])\n by www537.your-server.de with esmtpsa  (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.96.2) (envelope-from <Alexander.Feilke@ew.tq-group.com>)\n id 1w5L08-0009ly-0i; Wed, 25 Mar 2026 10:58:12 +0100",
            "from localhost ([127.0.0.1])\n by sslproxy07.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384\n (Exim 4.96) (envelope-from <Alexander.Feilke@ew.tq-group.com>)\n id 1w5L07-000HPv-3A; Wed, 25 Mar 2026 10:58:11 +0100"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=ew.tq-group.com; s=default2602; h=Content-Transfer-Encoding:MIME-Version:\n References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:\n Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From:\n Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;\n bh=t9BpzXB3en9RK5VxsGqjTqOxAYQeC301QyKT8yBqrno=; b=ZSiH/O9OlYMFihIGOKGgABgOK9\n +D/eWnQqlCfk/gMmjsS1bC8odjd98cLb6YZPVIbhfAlMEe30ZeP/vUIXyLToiNikZGHX1eNndLdyw\n ycNOKMZb9EZ5KQxNcw7S6Mlt+XTog9HBzX+GAIf/wpf54wmb9LzSkk51LTsLJI8wBZIT5MzKYs23C\n H3z0cJmvHi2rASFE0875kiI4GzoWWZe66xRS6BhzZScREXyPXgio7ImWPFSI9Tk9C3eNMeSZ/2/zn\n XidDbTk11E76yO12C67z5Pw1pIi8Njz4axVfymHPaebAcBKtG9Lzp2gOABP7aEr+Th5KFzAFyha+e\n 4IX3R/jA==;",
        "From": "Alexander Feilke <Alexander.Feilke@ew.tq-group.com>",
        "To": "\"NXP i.MX U-Boot Team\" <uboot-imx@nxp.com>, u-boot@lists.denx.de,\n u-boot@ew.tq-group.com",
        "Cc": "Alexander Feilke <alexander.feilke@ew.tq-group.com>,\n Tom Rini <trini@konsulko.com>, Stefano Babic <sbabic@nabladev.com>,\n Fabio Estevam <festevam@gmail.com>,\n Alexander Feilke <Alexander.Feilke@ew.tq-group.com>,\n Peng Fan <peng.fan@nxp.com>, Jaehoon Chung <jh80.chung@samsung.com>,\n Max Merchel <Max.Merchel@ew.tq-group.com>",
        "Subject": "[PATCH v2 2/8] board/tq: Add common SoM API",
        "Date": "Wed, 25 Mar 2026 10:57:55 +0100",
        "Message-Id": "<20260325095801.47706-3-Alexander.Feilke@ew.tq-group.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260325095801.47706-1-Alexander.Feilke@ew.tq-group.com>",
        "References": "<20260325095801.47706-1-Alexander.Feilke@ew.tq-group.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: Alexander Feilke <alexander.feilke@ew.tq-group.com>\n\nReduce code duplication by adding a default implementation.\n\nSigned-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>\nSigned-off-by: Max Merchel <Max.Merchel@ew.tq-group.com>\n---\n board/tq/common/Kconfig  |  3 +++\n board/tq/common/Makefile |  1 +\n board/tq/common/tq_som.c | 32 ++++++++++++++++++++++++++++++++\n board/tq/common/tq_som.h | 34 ++++++++++++++++++++++++++++++++++\n 4 files changed, 70 insertions(+)\n create mode 100644 board/tq/common/tq_som.c\n create mode 100644 board/tq/common/tq_som.h",
    "diff": "diff --git a/board/tq/common/Kconfig b/board/tq/common/Kconfig\nindex a1896929ea3..2fe2ca30072 100644\n--- a/board/tq/common/Kconfig\n+++ b/board/tq/common/Kconfig\n@@ -11,3 +11,6 @@ config TQ_COMMON_BB\n \n config TQ_COMMON_SDMMC\n \tbool\n+\n+config TQ_COMMON_SOM\n+\tbool\ndiff --git a/board/tq/common/Makefile b/board/tq/common/Makefile\nindex ac564a713fd..4af9207da4a 100644\n--- a/board/tq/common/Makefile\n+++ b/board/tq/common/Makefile\n@@ -6,4 +6,5 @@\n #\n \n obj-$(CONFIG_TQ_COMMON_BB) += tq_bb.o\n+obj-$(CONFIG_TQ_COMMON_SOM) += tq_som.o\n obj-$(CONFIG_TQ_COMMON_SDMMC) += tq_sdmmc.o\ndiff --git a/board/tq/common/tq_som.c b/board/tq/common/tq_som.c\nnew file mode 100644\nindex 00000000000..6fb4839109b\n--- /dev/null\n+++ b/board/tq/common/tq_som.c\n@@ -0,0 +1,32 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later\n+/*\n+ * Copyright (c) 2025-2026 TQ-Systems GmbH <u-boot@ew.tq-group.com>,\n+ * D-82229 Seefeld, Germany.\n+ * Author: Alexander Feilke, Max Merchel\n+ */\n+\n+#include <init.h>\n+#include <asm/io.h>\n+#include <linux/sizes.h>\n+\n+#include \"tq_som.h\"\n+\n+void __weak tq_som_ram_init(void)\n+{\n+\t;\n+}\n+\n+/*\n+ * checks if the accessible range equals the requested RAM size.\n+ * returns true if successful, false otherwise\n+ */\n+bool tq_som_ram_check_size(long ram_size)\n+{\n+\tlong size;\n+\n+\tsize = get_ram_size((void *)PHYS_SDRAM, ram_size);\n+\tdebug(\"SPL: requested RAM size %lu MiB. accessible %lu MiB\\n\",\n+\t      ram_size / (SZ_1M), size / (SZ_1M));\n+\n+\treturn (size == ram_size);\n+}\ndiff --git a/board/tq/common/tq_som.h b/board/tq/common/tq_som.h\nnew file mode 100644\nindex 00000000000..d7168eb7e46\n--- /dev/null\n+++ b/board/tq/common/tq_som.h\n@@ -0,0 +1,34 @@\n+/* SPDX-License-Identifier: GPL-2.0-or-later */\n+/*\n+ * Copyright (c) 2025-2026 TQ-Systems GmbH <u-boot@ew.tq-group.com>,\n+ * D-82229 Seefeld, Germany.\n+ * Author: Alexander Feilke, Max Merchel\n+ */\n+\n+#ifndef __TQ_SOM_H\n+#define __TQ_SOM_H\n+\n+#include <init.h>\n+#include <asm/io.h>\n+\n+void tq_som_ram_init(void);\n+\n+/* used as a wrapper to write to specific register addresses */\n+static inline void tq_som_init_write_reg(u32 address, u32 value)\n+{\n+\twritel_relaxed(value, address);\n+}\n+\n+/*\n+ * checks if the accessible range equals the requested ram size.\n+ * returns true if successful, false otherwise\n+ */\n+bool tq_som_ram_check_size(long ram_size);\n+\n+static inline void tq_som_check_bits_set(u32 address, u32 mask)\n+{\n+\twhile ((readl(address) & mask) != mask)\n+\t\t;\n+}\n+\n+#endif /* __TQ_SOM_H */\n",
    "prefixes": [
        "v2",
        "2/8"
    ]
}