Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2223010/?format=api
{ "id": 2223010, "url": "http://patchwork.ozlabs.org/api/patches/2223010/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260414082007.662549-1-kory.maincent@bootlin.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": "<20260414082007.662549-1-kory.maincent@bootlin.com>", "list_archive_url": null, "date": "2026-04-14T08:20:06", "name": "board: ti: cape_detect: Add overlay name lookup table for extension boards", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "43df14a057098321782e4ca2b024b44afbe4691d", "submitter": { "id": 80520, "url": "http://patchwork.ozlabs.org/api/people/80520/?format=api", "name": "Kory Maincent", "email": "kory.maincent@bootlin.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260414082007.662549-1-kory.maincent@bootlin.com/mbox/", "series": [ { "id": 499798, "url": "http://patchwork.ozlabs.org/api/series/499798/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499798", "date": "2026-04-14T08:20:06", "name": "board: ti: cape_detect: Add overlay name lookup table for extension boards", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499798/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223010/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223010/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=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=C2I3QPx+;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=bootlin.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=bootlin.com header.i=@bootlin.com header.b=\"C2I3QPx+\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=kory.maincent@bootlin.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fvxzc3wztz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 18:20:28 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2676384198;\n\tTue, 14 Apr 2026 10:20:24 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id AD8108419C; Tue, 14 Apr 2026 10:20:22 +0200 (CEST)", "from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4])\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 A240484181\n for <u-boot@lists.denx.de>; Tue, 14 Apr 2026 10:20:20 +0200 (CEST)", "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n by smtpout-03.galae.net (Postfix) with ESMTPS id 237FD4E429F2;\n Tue, 14 Apr 2026 08:20:20 +0000 (UTC)", "from mail.galae.net (mail.galae.net [212.83.136.155])\n by smtpout-01.galae.net (Postfix) with ESMTPS id EDEE05FFBB;\n Tue, 14 Apr 2026 08:20:19 +0000 (UTC)", "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id CC20C10450596;\n Tue, 14 Apr 2026 10:20:16 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n t=1776154819; h=from:subject:date:message-id:to:cc:mime-version:\n content-transfer-encoding; bh=yxEmfQECD+K3xm2tLo3lRlBemevp/YGBDul0ORiQoG0=;\n b=C2I3QPx+RPLqQgZJFoR/KGheanH/XmcPWPRrjfIbJc7I+7Q8rqmcQkHC5ngUvkcUxXUxRT\n 55eiqnwwzT1dQPmeLET7U/NHpES1kEBkUdnWzGATt3RAIvXnFxpiMDE/xWCoNDJuVMXMS2\n /8O+7cJkWONKt+zX8mkcLY3o/GsoaONRrcnaDsylGTZ0D7eQi0nOBz0/c6rSdw49Ys026B\n eXYWP741cTzmqZwxiIWTn8T5vbjlH78f/tBspOy1l1j2NGhH68TsGUFCudn5sQ7I2+rUc6\n X0mzLJBQ4WvWU/e0gmqBCc6qG+vNfpx4p6PZY4SKp/cA+Rh7JmT7KAPrTl1wmQ==", "From": "Kory Maincent <kory.maincent@bootlin.com>", "To": "u-boot@lists.denx.de", "Cc": "Bajjuri Praneeth <praneeth@ti.com>,\n Robert Nelson <robertcnelson@gmail.com>, Andrew Davis <afd@ti.com>,\n Jason Kridner <jkridner@beagleboard.org>,\n \"Kory Maincent (TI)\" <kory.maincent@bootlin.com>,\n thomas.petazzoni@bootlin.com, Tom Rini <trini@konsulko.com>,\n Marian Cingel <cingel.marian@gmail.com>", "Subject": "[PATCH] board: ti: cape_detect: Add overlay name lookup table for\n extension boards", "Date": "Tue, 14 Apr 2026 10:20:06 +0200", "Message-ID": "<20260414082007.662549-1-kory.maincent@bootlin.com>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Last-TLS-Session-Version": "TLSv1.3", "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: \"Kory Maincent (TI)\" <kory.maincent@bootlin.com>\n\nSome extension boards have EEPROM part numbers that do not directly match\ntheir devicetree overlay filenames. Introduce a static name_mapping table\nand a set_cape_overlay() helper that translates the part number and version\nstrings read from the EEPROM into the correct overlay filename.\n\nWhen no entry matches, fall back to the existing behavior of constructing\nthe overlay name as \"<part_number>-<version>.dtbo\" directly from the\nEEPROM content.\n\nAdd an initial entry mapping BB-GREEN-HDMI revision 00A0 to\nam335x-bone-hdmi-00a0.dtbo.\n\nSigned-off-by: Kory Maincent (TI) <kory.maincent@bootlin.com>\n---\n board/ti/common/cape_detect.c | 42 +++++++++++++++++++++++++++++++++--\n 1 file changed, 40 insertions(+), 2 deletions(-)", "diff": "diff --git a/board/ti/common/cape_detect.c b/board/ti/common/cape_detect.c\nindex 88fa6ae81f0..c9555779c0c 100644\n--- a/board/ti/common/cape_detect.c\n+++ b/board/ti/common/cape_detect.c\n@@ -13,6 +13,44 @@\n \n #include \"cape_detect.h\"\n \n+struct name_mapping {\n+\tchar part_number[17];\n+\tchar version[5];\n+\tchar overlay[64];\n+};\n+\n+static struct name_mapping extension_mapping[] = {\n+\t{\n+\t\t\"BB-GREEN-HDMI\",\n+\t\t\"00A0\",\n+\t\t\"am335x-bone-hdmi-00a0.dtbo\",\n+\t},\n+\t{ /* sentinel */ }\n+};\n+\n+void set_cape_overlay(char *overlay, char *part_number, char *version)\n+{\n+\tstruct name_mapping *mapping;\n+\n+\tfor (mapping = extension_mapping; mapping->part_number[0] != 0;\n+\t mapping++) {\n+\t\tif (strncmp(mapping->part_number, part_number,\n+\t\t\t sizeof(mapping->part_number)))\n+\t\t\tcontinue;\n+\n+\t\tif (strncmp(mapping->version, version,\n+\t\t\t sizeof(mapping->version)))\n+\t\t\tcontinue;\n+\n+\t\tstrlcpy(overlay, mapping->overlay, sizeof(mapping->overlay));\n+\t\treturn;\n+\t}\n+\n+\t/* Use default name extracted from the EEPROM */\n+\tsnprintf(overlay, sizeof(mapping->overlay), \"%s-%s.dtbo\",\n+\t\t part_number, version);\n+}\n+\n static void sanitize_field(char *text, size_t size)\n {\n \tchar *c = NULL;\n@@ -82,8 +120,8 @@ static int ti_extension_board_scan(struct udevice *dev,\n \n \t\tprintf(\"BeagleBone Cape: %s (0x%x)\\n\", eeprom_header.board_name, addr);\n \n-\t\tsnprintf(cape.overlay, sizeof(cape.overlay), \"%s-%s.dtbo\",\n-\t\t\t process_cape_part_number, process_cape_version);\n+\t\tset_cape_overlay(cape.overlay, process_cape_part_number,\n+\t\t\t\t process_cape_version);\n \t\tstrlcpy(cape.name, eeprom_header.board_name,\n \t\t\tsizeof(eeprom_header.board_name));\n \t\tstrlcpy(cape.version, process_cape_version,\n", "prefixes": [] }