Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2235245/?format=api
{ "id": 2235245, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2235245/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/9922bb5e8b3fb1d5c6e80ea51a01b685690a2f44.1778277334.git.aidan@wolfssl.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<9922bb5e8b3fb1d5c6e80ea51a01b685690a2f44.1778277334.git.aidan@wolfssl.com>", "list_archive_url": null, "date": "2026-05-09T00:04:11", "name": "[v3,04/12] dts: add TPM device tree nodes for RPi4, QEMU, and sandbox", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "56cd2c7b7e9c6bc725e75926eaa29e0e0475523d", "submitter": { "id": 92785, "url": "http://patchwork.ozlabs.org/api/1.2/people/92785/?format=api", "name": "Aidan Garske", "email": "aidan@wolfssl.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/9922bb5e8b3fb1d5c6e80ea51a01b685690a2f44.1778277334.git.aidan@wolfssl.com/mbox/", "series": [ { "id": 503464, "url": "http://patchwork.ozlabs.org/api/1.2/series/503464/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=503464", "date": "2026-05-09T00:04:07", "name": "tpm: Add wolfTPM library support for TPM 2.0", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/503464/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2235245/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2235245/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=wolfssl-com.20251104.gappssmtp.com\n header.i=@wolfssl-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=cIN1Bbrj;\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=fail (p=none dis=none) header.from=wolfssl.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=wolfssl-com.20251104.gappssmtp.com\n header.i=@wolfssl-com.20251104.gappssmtp.com header.b=\"cIN1Bbrj\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=wolfssl.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=aidan@wolfssl.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 4gC6br27Tsz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 09 May 2026 10:40:56 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1653684E1D;\n\tSat, 9 May 2026 02:40:15 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id BB56584E0F; Sat, 9 May 2026 02:04:44 +0200 (CEST)", "from mail-dl1-x1234.google.com (mail-dl1-x1234.google.com\n [IPv6:2607:f8b0:4864:20::1234])\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 72BCA84E10\n for <u-boot@lists.denx.de>; Sat, 9 May 2026 02:04:42 +0200 (CEST)", "by mail-dl1-x1234.google.com with SMTP id\n a92af1059eb24-12db2e415a7so1869602c88.1\n for <u-boot@lists.denx.de>; Fri, 08 May 2026 17:04:42 -0700 (PDT)", "from localhost.localdomain ([207.231.76.218])\n by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-132787673ffsm5505030c88.15.2026.05.08.17.04.39\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 08 May 2026 17:04:40 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_SBL_CSS,SPF_HELO_NONE,\n SPF_PASS autolearn=no autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=wolfssl-com.20251104.gappssmtp.com; s=20251104; t=1778285080; x=1778889880;\n 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=nbamVX3rWvdw7UjgaZEIs2puQ+YV3AvIErMweW3jqyU=;\n b=cIN1BbrjaRL62i93oQU/XiVue0cO9+Vnc3w0ZgerX6ncenBj5sRfg+5x3lsNYrEHl+\n 8Du6hdJYxOON6P5OIdv76mQRFdj1pAuC4Y9Z+JAnoDKXCy9ofOAipDVJ3lM4Vg/cM7KS\n IEj6DwQ+HbAi4dj47yahiq9mfmEDDYiRIbDeihuQFmkou0LjTj1ZUrIWiLF+74u27d1g\n bzuyxttX22KvmsL0qLn+zCWbMgwG1iKfe7dw2qBJS0m9L7I4Vy00X/cJdhtRn2wfeI1T\n PvcNSp2kB27OT8yNKT+f0ChxQJs0kqNOEsff4umgMrIEbh8eOA6HnMxAELJmq0yJCJJX\n fhPA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778285080; x=1778889880;\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=nbamVX3rWvdw7UjgaZEIs2puQ+YV3AvIErMweW3jqyU=;\n b=ow0TCOBbL6l0YRp7NEKTjEvGItpa47vinXELFoGAXZyDi5uEkAwWfjSlmyqTEXprpd\n ovo29stwSiU7sZPvmEPyhUivHwPsHwsGqCPYpvokaghxI2qJJPVvC6mIH7jx2wn5jhKN\n JOcSDbKCqJFnO7jZ0gFoZarqhYlC4qkl4SArjEfOzBOEpje+v86oA9R+fmmg6lTxeP/d\n I5sCHk7EvjDNAhkt835Q63pobdXKLB5MO4YdT+uoWus7jBLOOWmdjH0j92560Uwi42KK\n dxbhjKbG+9/gp//j8Q02SMPjvkLjhTv7/+lIGjEyvgOAR34tI8CBjNPVbuue1xRQ+9HG\n o4iA==", "X-Gm-Message-State": "AOJu0YyH67fHhRjBxIn+TfxAM+VJEEg9+BlthniwcLAnNjCSJtcQg7Hr\n yseORrG+LIaGM3lXGH/U3j0d9ldon2Jmx9fQEtAnCBFdo0OQPJfphvfSyvn8D2Ed5NXVwWh3XYe\n r0fnN", "X-Gm-Gg": "AeBDiesWj4uafOAaUAj1ABwRxknAJ0/y/oJ23cmkq7Ng9uhL0NVF0iBuWwq5fw4ZJZV\n vVfKzI5+6tUHit/t+Jf2yGAImxFrfABLnYNwgTJUu2xowtVmsEz1mizjd03xfUlhhvxcePi1aws\n Dm4w0Oyl+t/Bs5DD5qN+PLZkertutDvVXYhtjVsegzbVg5Mm3aJAzX/kp6uX9MUIwDU5YKfwnJ/\n RNZj9cLdoU5+aAxOHTK1PyRzpOj2qXiz/QX3AmAT3tJC+PVkD2i842BhJb9qmmtol8F6Pc7snZg\n Az7wJTyxIC3MhKwRXfdpkFNar897SNLoM4VczoLJV9i1g9yReihL5WI0L7+9lhHwqHlOEqESiPu\n uCUKu2qYLySddDw8y8allMiDpV0SxXwse3r1A55YQ/TuXNZSJ5AJhotMY620EzJGSOcwjlVBV9F\n LozUICcW4AEpY673Jd0VIcCxmXgu3pJ/FIU1jXNaVek3nPWG1ofOWAd9e14lZw8GktIE4k08mZY\n vPRXzU55nLZ2jt+Y9raGQ==", "X-Received": "by 2002:a05:7022:43a6:b0:12b:f881:d8f6 with SMTP id\n a92af1059eb24-1319d05636cmr7071992c88.29.1778285080498;\n Fri, 08 May 2026 17:04:40 -0700 (PDT)", "From": "Aidan Garske <aidan@wolfssl.com>", "To": "u-boot@lists.denx.de", "Cc": "David Garske <david@wolfssl.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>", "Subject": "[PATCH v3 04/12] dts: add TPM device tree nodes for RPi4, QEMU,\n and sandbox", "Date": "Fri, 8 May 2026 17:04:11 -0700", "Message-ID": "\n <9922bb5e8b3fb1d5c6e80ea51a01b685690a2f44.1778277334.git.aidan@wolfssl.com>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<cover.1778277334.git.aidan@wolfssl.com>", "References": "<cover.1778277334.git.aidan@wolfssl.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Sat, 09 May 2026 02:40:11 +0200", "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: Aidan <aidan@wolfssl.com>\n\nAdd device tree entries for TPM devices across three platforms:\n\nbcm2711-rpi-4-b.dts:\n Add SPI0 node with Infineon SLB9670/9672 TPM on CE1 (GPIO7),\n matching the standard Linux tpm-slb9670 overlay. Add spi0 alias\n so wolfTPM finds the bus at index 0.\n\nbcm2711-rpi-4-b-u-boot.dtsi (new file):\n Add soft-SPI (GPIO bit-bang) fallback node for TPM communication.\n This uses spi-gpio with GPIO11/10/9/7 and provides an alternative\n to the hardware SPI driver when pinctrl naming differs between\n U-Boot and Linux device trees.\n\nqemu-arm64.dts:\n Add MMIO-based TPM TIS node at 0x0c000000 for QEMU virt machine\n with swtpm. This allows wolfTPM testing via QEMU without hardware.\n\nsandbox.dtsi:\n Add sandbox TPM SPI device (sandbox,tpm-spi) on SPI bus CS1 with\n a phandle reference to a sandbox TPM SPI emulator node. This\n enables wolfTPM SPI HAL testing in the sandbox environment.\n\nSigned-off-by: Aidan Garske <aidan@wolfssl.com>\n---\n arch/arm/dts/bcm2711-rpi-4-b-u-boot.dtsi | 54 ++++++++++++++++++++++++\n arch/arm/dts/bcm2711-rpi-4-b.dts | 20 +++++++++\n arch/arm/dts/qemu-arm64.dts | 4 ++\n arch/sandbox/dts/sandbox.dtsi | 11 +++++\n 4 files changed, 89 insertions(+)\n create mode 100644 arch/arm/dts/bcm2711-rpi-4-b-u-boot.dtsi", "diff": "diff --git a/arch/arm/dts/bcm2711-rpi-4-b-u-boot.dtsi b/arch/arm/dts/bcm2711-rpi-4-b-u-boot.dtsi\nnew file mode 100644\nindex 00000000000..c38276abee9\n--- /dev/null\n+++ b/arch/arm/dts/bcm2711-rpi-4-b-u-boot.dtsi\n@@ -0,0 +1,54 @@\n+// SPDX-License-Identifier: GPL-2.0\n+/*\n+ * U-Boot specific additions for Raspberry Pi 4 Model B\n+ *\n+ * Adds soft SPI support for Infineon SLB9670/9672 TPM HAT\n+ * connected to SPI0 CE1 (GPIO 7)\n+ *\n+ * Uses GPIO bit-banging instead of hardware SPI to avoid\n+ * GPIO chip naming issues (pinctrl-bcm2835 vs pinctrl-bcm2711)\n+ */\n+\n+#include \"bcm283x-u-boot.dtsi\"\n+#include <dt-bindings/gpio/gpio.h>\n+\n+/ {\n+\taliases {\n+\t\tspi0 = &soft_spi;\n+\t};\n+\n+\tsoft_spi: soft-spi {\n+\t\tcompatible = \"spi-gpio\";\n+\t\t#address-cells = <1>;\n+\t\t#size-cells = <0>;\n+\t\tstatus = \"okay\";\n+\t\tbootph-all;\n+\n+\t\t/*\n+\t\t * GPIO pins for SPI0 on Raspberry Pi 4:\n+\t\t * GPIO 11 = SCLK\n+\t\t * GPIO 10 = MOSI\n+\t\t * GPIO 9 = MISO\n+\t\t * GPIO 7 = CE1 (chip select for TPM)\n+\t\t */\n+\t\tgpio-sck = <&gpio 11 GPIO_ACTIVE_HIGH>;\n+\t\tgpio-mosi = <&gpio 10 GPIO_ACTIVE_HIGH>;\n+\t\tgpio-miso = <&gpio 9 GPIO_ACTIVE_HIGH>;\n+\t\tcs-gpios = <&gpio 7 GPIO_ACTIVE_LOW>;\n+\t\tnum-chipselects = <1>;\n+\t\tspi-delay-us = <1>;\n+\n+\t\t/* Infineon SLB9672 TPM on CS1 */\n+\t\ttpm@0 {\n+\t\t\tcompatible = \"infineon,slb9672\", \"tcg,tpm-tis-spi\";\n+\t\t\treg = <0>;\n+\t\t\tspi-max-frequency = <10000000>;\n+\t\t\tstatus = \"okay\";\n+\t\t\tbootph-all;\n+\t\t};\n+\t};\n+};\n+\n+&gpio {\n+\tbootph-all;\n+};\ndiff --git a/arch/arm/dts/bcm2711-rpi-4-b.dts b/arch/arm/dts/bcm2711-rpi-4-b.dts\nindex 72ce80fbf26..a09276dc279 100644\n--- a/arch/arm/dts/bcm2711-rpi-4-b.dts\n+++ b/arch/arm/dts/bcm2711-rpi-4-b.dts\n@@ -8,6 +8,11 @@\n \tcompatible = \"raspberrypi,4-model-b\", \"brcm,bcm2711\";\n \tmodel = \"Raspberry Pi 4 Model B\";\n \n+\t/* Alias hardware SPI as spi0 so wolfTPM finds it at bus 0 */\n+\taliases {\n+\t\tspi0 = &spi;\n+\t};\n+\n \tchosen {\n \t\t/* 8250 auxiliary UART instead of pl011 */\n \t\tstdout-path = \"serial1:115200n8\";\n@@ -54,6 +59,21 @@\n \t\tenable-active-high;\n \t\tgpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;\n \t};\n+\n+};\n+\n+/* Hardware SPI with TPM - matches Linux tpm-slb9670 overlay */\n+&spi {\n+\tstatus = \"okay\";\n+\tpinctrl-names = \"default\";\n+\tpinctrl-0 = <&spi0_gpio7>;\n+\n+\t/* Infineon SLB9670/9672 TPM 2.0 on CE1 (GPIO7) */\n+\ttpm@1 {\n+\t\tcompatible = \"infineon,slb9670\", \"tcg,tpm_tis-spi\";\n+\t\treg = <1>; /* CE1 */\n+\t\tspi-max-frequency = <32000000>;\n+\t};\n };\n \n &ddc0 {\ndiff --git a/arch/arm/dts/qemu-arm64.dts b/arch/arm/dts/qemu-arm64.dts\nindex 95fcf53ed74..e74d036a532 100644\n--- a/arch/arm/dts/qemu-arm64.dts\n+++ b/arch/arm/dts/qemu-arm64.dts\n@@ -12,4 +12,8 @@\n #endif\n \n / {\n+\ttpm@0c000000 {\n+\t\tcompatible = \"tcg,tpm-tis-mmio\";\n+\t\treg = <0x0 0x0c000000 0x0 0x5000>;\n+\t};\n };\ndiff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi\nindex 02b03894eaf..2fdd7f0e942 100644\n--- a/arch/sandbox/dts/sandbox.dtsi\n+++ b/arch/sandbox/dts/sandbox.dtsi\n@@ -286,6 +286,17 @@\n \t\t\tspi-max-frequency = <40000000>;\n \t\t\tsandbox,filename = \"spi.bin\";\n \t\t};\n+\n+\t\ttpm_spi: tpm@1 {\n+\t\t\treg = <1>;\n+\t\t\tcompatible = \"sandbox,tpm-spi\";\n+\t\t\tspi-max-frequency = <10000000>;\n+\t\t\tsandbox,emul = <&tpm_spi_emul>;\n+\t\t};\n+\t};\n+\n+\ttpm_spi_emul: tpm-spi-emul {\n+\t\tcompatible = \"sandbox,tpm-spi-emul\";\n \t};\n \n \tspl-test {\n", "prefixes": [ "v3", "04/12" ] }