Show a cover letter.

GET /api/1.1/covers/2224925/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2224925,
    "url": "http://patchwork.ozlabs.org/api/1.1/covers/2224925/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/opensbi/cover/20260419150857.2705843-1-aurelien@aurel32.net/",
    "project": {
        "id": 67,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/67/?format=api",
        "name": "OpenSBI development",
        "link_name": "opensbi",
        "list_id": "opensbi.lists.infradead.org",
        "list_email": "opensbi@lists.infradead.org",
        "web_url": "https://github.com/riscv/opensbi",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260419150857.2705843-1-aurelien@aurel32.net>",
    "date": "2026-04-19T14:49:18",
    "name": "[0/2] Add reboot support for SpacemiT K1 platforms",
    "submitter": {
        "id": 2775,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/2775/?format=api",
        "name": "Aurelien Jarno",
        "email": "aurelien@aurel32.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/opensbi/cover/20260419150857.2705843-1-aurelien@aurel32.net/mbox/",
    "series": [
        {
            "id": 500513,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500513/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/opensbi/list/?series=500513",
            "date": "2026-04-19T14:49:20",
            "name": "Add reboot support for SpacemiT K1 platforms",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500513/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/covers/2224925/comments/",
    "headers": {
        "Return-Path": "\n <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "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 secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=GX4E66eJ;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=aurel32.net header.i=@aurel32.net header.a=rsa-sha256\n header.s=202004.hall header.b=opnvlkQw;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=temperror (SPF Temporary Error: DNS Timeout)\n smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133;\n helo=bombadil.infradead.org;\n envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4fzBqh4qJkz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 01:09:32 +1000 (AEST)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wETlu-00000005sEp-0Ahk;\n\tSun, 19 Apr 2026 15:09:18 +0000",
            "from hall.aurel32.net ([2001:bc8:30d7:100::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wETlq-00000005sDj-3UcX\n\tfor opensbi@lists.infradead.org;\n\tSun, 19 Apr 2026 15:09:16 +0000",
            "from authenticated user\n\tby hall.aurel32.net with esmtpsa  (TLS1.3)  tls\n TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\n\t(Exim 4.98.2)\n\t(envelope-from <aurelien@aurel32.net>)\n\tid 1wETlh-0000000CKQq-47OK;\n\tSun, 19 Apr 2026 17:09:05 +0200"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=FLF8NqkxnqHxEqahqwT59VkEU2OdGe4rQNff/wu3jUk=; b=GX4E66eJegUK9U\n\tlmN/UhYcr77WqAS48B1yaPEsO3lnjhxfBJUZsHQzG9aZV+JT/17651xo9KPz6QoY+4Xz5+bWjob/E\n\t2bZedVyChn1JZ8K1Fua0slXOHhNzoeJ44TDiFvVgsAhw+hWnA2VzqoUePSFf6S6pWKNVbodC4/9kr\n\t9NuXTqCNkp2bmwm5h6WxSHrNHOalv61Kh4v4kyDY8zv8ou6F2cgBTccipBrIfZirSpjW48nZxExoW\n\tSAqmqjgZd3lh6HFqnI8rEUKiywd/AeBw1rS4vtu/+/eR4abHhBPBssQlrPd4A0Oyi4ghUSG6xLEoo\n\tq88WHdUj7p1A7+cTAjkw==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net\n\t; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:\n\tSubject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID:\n\tContent-Description:In-Reply-To:References:X-Debbugs-Cc;\n\tbh=WsnVaOw4yt3gTj4DpLng6Za4hlFhPvbC+CK2QfcpLEE=; b=opnvlkQwcgbhEsOjRhY7lw/4h/\n\tx52URnyzAgZdR0NdmqjsX7hRX2s49mHTHxyrWs3IrdumTox8uM7ZAPBwvMQbXoOA3M+MNtpPqYQmq\n\t3SOzyNLnkmbBpJojpVDwrogttpivq7Pv8jXnyGyfHcvWghyi0n3q34SdpY+ALE2qjcnsniu5ZqYHc\n\twXLPDBQm4wxYp0aG4VrHGsvC8Nc1XyJQ0BRforntmSP09+2Fj2z2cOeTbUt/8ub8tKiZJsaVCcDnO\n\tWi+6OKceA93x6mbtGIGNK1PapAlHXb72GiMQR55B/ELTszxn6fpVVOjBWjTEQyP+GWPl2wXbDYcLh\n\tJcQawR9A==;"
        ],
        "From": "Aurelien Jarno <aurelien@aurel32.net>",
        "To": "opensbi@lists.infradead.org",
        "Cc": "Aurelien Jarno <aurelien@aurel32.net>",
        "Subject": "[PATCH 0/2] Add reboot support for SpacemiT K1 platforms",
        "Date": "Sun, 19 Apr 2026 16:49:18 +0200",
        "Message-ID": "<20260419150857.2705843-1-aurelien@aurel32.net>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260419_080914_914655_E5ACF9A1 ",
        "X-CRM114-Status": "GOOD (  12.38  )",
        "X-Spam-Score": "-4.4 (----)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  This add reboot support for SpacemiT K1 platforms that uses\n    the SpacemiT P1 PMIC,\n which is TTBOMK all of them. Note that the Linux kernel\n    also has a driver for that [1], but not yet enabled [2]. Howev [...]\n Content analysis details:   (-4.4 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,\n                             medium trust\n                             [2001:bc8:30d7:100:0:0:0:1 listed in]\n                             [list.dnswl.org]\n -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay\n lines",
        "X-BeenThere": "opensbi@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<opensbi.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/opensbi/>",
        "List-Post": "<mailto:opensbi@lists.infradead.org>",
        "List-Help": "<mailto:opensbi-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"opensbi\" <opensbi-bounces@lists.infradead.org>",
        "Errors-To": "opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "This add reboot support for SpacemiT K1 platforms that uses the SpacemiT\nP1 PMIC, which is TTBOMK all of them. Note that the Linux kernel also\nhas a driver for that [1], but not yet enabled [2]. However it has been\nsuggested that it's better to implement reboot support at the OpenSBI\nlevel [3].\n\nThe first patch add I2C support for the SpacemiT P1 SoC, and the second\none reboot support for the SpacemiT P1 PMIC. This chip is also used on\nsome SpacemiT K3 platforms, that's why I decided to add it at the PMIC\nlevel (lib/utils/reset/fdt_reset_spacemit_p1.c) instead of at the\nplatform level (platform/generic/spacemit/k1.c).\n\nThis patchset has been tested on a Banana Pi BPI-F3 board and on a\nMilk-V Jupiter board.\n\n[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/reset/spacemit-p1-reboot.c\n[2] https://lore.kernel.org/all/20260401165437.1048786-3-aurelien@aurel32.net/\n[3] https://lore.kernel.org/all/c1f466f8-4e76-43a2-a7a2-126415fd1f56@sifive.com/\n\nAurelien Jarno (2):\n  lib: utils/i2c: add minimal SpacemiT I2C driver\n  lib: utils/reset: add SpacemiT P1 PMIC support\n\n lib/utils/i2c/Kconfig                   |   4 +\n lib/utils/i2c/fdt_i2c_spacemit.c        | 220 ++++++++++++++++++++++++\n lib/utils/i2c/objects.mk                |   3 +\n lib/utils/reset/Kconfig                 |   4 +\n lib/utils/reset/fdt_reset_spacemit_p1.c | 112 ++++++++++++\n lib/utils/reset/objects.mk              |   3 +\n platform/generic/configs/defconfig      |   2 +\n 7 files changed, 348 insertions(+)\n create mode 100644 lib/utils/i2c/fdt_i2c_spacemit.c\n create mode 100644 lib/utils/reset/fdt_reset_spacemit_p1.c"
}