get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226521,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226521/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260422143112.1329478-15-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-15-raymondmaoca@gmail.com>",
    "date": "2026-04-22T14:31:10",
    "name": "[14/16] spacemit: k1: Add multiple device tree support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3bedf32d29b1aa7212a21c79295c345dcf44f321",
    "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-15-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/2226521/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226521/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=IzliHqcI;\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=\"IzliHqcI\";\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 4g11tv0SK5z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 00:33:59 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3426B84394;\n\tWed, 22 Apr 2026 16:32:23 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id DA80984376; Wed, 22 Apr 2026 16:32:13 +0200 (CEST)",
            "from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com\n [IPv6:2607:f8b0:4864:20::c31])\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 050F78437E\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 16:32:08 +0200 (CEST)",
            "by mail-oo1-xc31.google.com with SMTP id\n 006d021491bc7-682fce74c06so4388598eaf.3\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 07:32:07 -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.32.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 07:32:05 -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=1776868326; x=1777473126; 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=TDi49fOsBDu/j8iSMpnY89CSA1eEfiOL2bVznXJi5RE=;\n b=IzliHqcIIdL9bD11ZfVVVct+PV9bZsQ4COZj4GQl/ASdtTYnkJasBgAu7ItuBd5+Sb\n 3CduDBc2nhP/Vtk6Oi9D84BQzX8C9E6aUTK2mdNNIdWsuT1Tu3AvD2dccbX/Q+qFMM9E\n TcKJ91iq3V6TgX1D7nFEyYCDUM6H31PQPwCqr3hAj3VdWnC680P5zRLJtkvMXDXRlAev\n R7qTqLlprl6w5FRmJtSLdNGF5MuskFEIEaGERLKCWXY1mgd3vfptmlTfJ0fXuSJOqV/V\n 19m7kwN68ReqhKOwpUZasIGcr5wWo2LVBfbRpXW5lB/gcAmJZyzpJpo3hQj4fR4guUqx\n TfHg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776868326; x=1777473126;\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=TDi49fOsBDu/j8iSMpnY89CSA1eEfiOL2bVznXJi5RE=;\n b=WRntrr957Y0yXwkmRsfqmmx1Ziefcw+U43JAv6z00/ZM47H28WBO3r/dF93zAVOmjo\n FkDpq/MK8fRNmtPv+I5aJW66lKhRok5w0KJhR0IxZ8CTESgC7v4obflx2ZmV6t6bW4of\n MAJVxsgjHN1+4XPwz805Vs8OnlSEOT4Z+EE9BVpXr4ohmTBMGuuNaVgurxow88pBMzsA\n cSAccuCGndodrQ210Gt2EL6S+rsSZMXi3itbf7652QIoa3hWjl92tcKMuGGkcLIeLl3Z\n K8rgex40WJU6GTg9vrkT8UvK6QD001cJNrv6yEeNplrw7o2cCMS/qLd8/SFDiaIf+w6Y\n cvvQ==",
        "X-Gm-Message-State": "AOJu0YwxMOOYRffWdQ/DSZpxRGSYPUpY3uqf7KbPDpB6VLlNWqEkKAVI\n /UU4rnuU5XWOmN6EcRoX45KbeA4XNx0A942H5W9x+buVRBb1ZHkKYLYKA5MEg/Smvwo=",
        "X-Gm-Gg": "AeBDieuEQ5u0y9W55/3PQVeZdiW8DLWFo0hZjfMmkug8+XJz7pQNPTSqpHgIPrII+I2\n fXnsm2myxQlgCGUoWkJeQzfINHRMtx9xQkuJ8YF8VFM9vgyFBOd15ZTmVglgc6lXykLIEycAEGq\n kCuYG3fAJCrCSimqiwGZFuP2uNtibEpeve97p0wK5k0Kba3OoCeYuAZCrpquwCwLMfWvU0CwTy+\n cidnGT6X1+ZdjyoKXa5HbMxZC45ew5d2BeyeK31Az+As3etmL/0XQIVy/gKl1clNBzR1veaXxHx\n l1hQMJhve7QltFucoWy1pvfhhDcPUYpWTub6MEEUiflpk4FT5UJwegAlg8EY6zR9vY6EqFqVK1o\n WH8nL8CYe4OenmbQu96UZZF+AfY5Vl62ikeAm5oQj5mUrTo3e3pPQ0VlZUW4YWlPDd9rbKuihOC\n DD/6GKFmLn2QgNWqGQGzfWAh6pXyo7k7SZ0TT0wQGSAKPj9GCKh3x3iEZppNjlr1EEV6gCkXzSF\n DS2qL65S9LysfabWULjaw==",
        "X-Received": "by 2002:a4a:e846:0:b0:688:29ff:2dc0 with SMTP id\n 006d021491bc7-69462ef72e7mr12872632eaf.39.1776868326298;\n Wed, 22 Apr 2026 07:32:06 -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 14/16] spacemit: k1: Add multiple device tree support",
        "Date": "Wed, 22 Apr 2026 10:31:10 -0400",
        "Message-Id": "<20260422143112.1329478-15-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\nEnable multiple DTB support in the FIT image for the Spacemit K1 SoC,\nallowing a single U-Boot binary to support different board variants.\n\nThe SPL reads the board type from EEPROM and selects the corresponding\ndevice tree at runtime via board_fit_config_name_match(), ensuring the\ncorrect hardware description is passed to U-Boot proper.\n\nEnlarge CONFIG_SYS_MALLOC_F_LEN to enable multiple device tree support.\n\nSwitch to MMODE since opensbi firmware is included at the same tim.\n\nSigned-off-by: Raymond Mao <raymond.mao@riscstar.com>\n---\n arch/riscv/dts/Makefile           |   2 +-\n arch/riscv/dts/k1-bananapi-f3.dts | 161 ++++++++++++++++++++++++\n arch/riscv/dts/k1-muse-pi-pro.dts | 199 ++++++++++++++++++++++++++++++\n arch/riscv/dts/k1-spl.dts         |  47 +++----\n board/spacemit/k1/spl.c           |  29 ++++-\n configs/spacemit_k1_defconfig     |   7 +-\n 6 files changed, 415 insertions(+), 30 deletions(-)\n create mode 100644 arch/riscv/dts/k1-muse-pi-pro.dts",
    "diff": "diff --git a/arch/riscv/dts/Makefile b/arch/riscv/dts/Makefile\nindex 61a7acabd27..22b62e25d4d 100644\n--- a/arch/riscv/dts/Makefile\n+++ b/arch/riscv/dts/Makefile\n@@ -9,7 +9,7 @@ dtb-$(CONFIG_TARGET_LICHEERV_NANO) += sg2002-licheerv-nano-b.dtb\n dtb-$(CONFIG_TARGET_QEMU_VIRT) += qemu-virt32.dtb qemu-virt64.dtb\n dtb-$(CONFIG_TARGET_OPENPITON_RISCV64) += openpiton-riscv64.dtb\n dtb-$(CONFIG_TARGET_SIPEED_MAIX) += k210-maix-bit.dtb\n-dtb-$(CONFIG_TARGET_SPACEMIT_K1) += k1-bananapi-f3.dtb k1-spl.dtb\n+dtb-$(CONFIG_TARGET_SPACEMIT_K1) += k1-bananapi-f3.dtb k1-muse-pi-pro.dtb k1-spl.dtb\n dtb-$(CONFIG_TARGET_XILINX_MBV) += xilinx-mbv32.dtb\n dtb-$(CONFIG_TARGET_XILINX_MBV) += xilinx-mbv64.dtb\n dtb-$(CONFIG_TARGET_XILINX_MBV) += xilinx-binman.dtb\ndiff --git a/arch/riscv/dts/k1-bananapi-f3.dts b/arch/riscv/dts/k1-bananapi-f3.dts\nindex 6b5b83bcdb9..ea11029c182 100644\n--- a/arch/riscv/dts/k1-bananapi-f3.dts\n+++ b/arch/riscv/dts/k1-bananapi-f3.dts\n@@ -21,8 +21,169 @@\n \t};\n };\n \n+&vctcxo_1m {\n+\tstatus = \"okay\";\n+};\n+\n+&vctcxo_24m {\n+\tstatus = \"okay\";\n+};\n+\n+&vctcxo_3m {\n+\tstatus = \"okay\";\n+};\n+\n+&osc_32k {\n+\tstatus = \"okay\";\n+};\n+\n+&soc {\n+\tsystem-controller@d4050000 {\n+\t\tstatus = \"okay\";\n+\t};\n+\tclock-controller@d4090000 {\n+\t\tstatus = \"okay\";\n+\t};\n+\tsystem-controller@d4282800 {\n+\t\tstatus = \"okay\";\n+\t};\n+\tsystem-controller@d4015000 {\n+\t\tclocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>,\n+\t\t\t <&vctcxo_24m>, <&syscon_mpmu CLK_PLL1_31P5>,\n+\t\t\t <&pll CLK_PLL1_D4>;\n+\t\tclock-names = \"osc\", \"vctcxo_1m\", \"vctcxo_3m\",\n+\t\t\t      \"vctcxo_24m\", \"pll1_d78_31p5\", \"pll1_d4\";\n+\t\tstatus = \"okay\";\n+\t};\n+\n+\ti2c@d4012000 {\t\t/* i2c2 */\n+\t\tstatus = \"okay\";\n+\t\teeprom: eeprom {\n+\t\t\tcompatible = \"atmel,24c02\";\n+\t\t\treg = <0x50>;\n+\t\t\tstatus = \"okay\";\n+\t\t};\n+\t};\n+\n+\treset-controller@d4050000 {\n+\t\tstatus = \"okay\";\n+\t};\n+};\n+\n &uart0 {\n+\tstatus = \"okay\";\n \tpinctrl-names = \"default\";\n \tpinctrl-0 = <&uart0_2_cfg>;\n+};\n+\n+&i2c8 {\n \tstatus = \"okay\";\n+\tpmic@41 {\n+\t\tcompatible = \"spacemit,p1\";\n+\t\treg = <0x41>;\n+\t\tstatus = \"okay\";\n+\n+\t\tregulators {\n+\t\t\tbuck1 {\n+\t\t\t\tregulator-name = \"vdd_core\";\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck2 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck3_1v8: buck3 {\n+\t\t\t\tregulator-name = \"vdd_1v8\";\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <1800000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck4 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3300000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck5 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck6 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\taldo1 {\n+\t\t\t\tregulator-name = \"vdd_1v8_mmc\";\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t\tregulator-boot-on;\n+\t\t\t};\n+\n+\t\t\taldo2 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\taldo3 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\taldo4 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo1 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo2 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo3 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo4 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo5 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo6 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo7 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\t\t};\n+\t};\n };\ndiff --git a/arch/riscv/dts/k1-muse-pi-pro.dts b/arch/riscv/dts/k1-muse-pi-pro.dts\nnew file mode 100644\nindex 00000000000..43f08317e31\n--- /dev/null\n+++ b/arch/riscv/dts/k1-muse-pi-pro.dts\n@@ -0,0 +1,199 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT\n+/*\n+ * Copyright (C) 2026 RISCstar Ltd.\n+ */\n+\n+#include \"k1.dtsi\"\n+#include \"binman.dtsi\"\n+\n+/ {\n+\tmodel = \"spacemit k1-x MUSE-Pi-Pro board\";\n+\tcompatible = \"spacemit,muse-pi-pro\", \"spacemit,k1\";\n+\n+\taliases {\n+\t\tconsole = &uart0;\n+\t\tserial0 = &uart0;\n+\t};\n+\n+\tchosen {\n+\t\tstdout-path = \"serial0:115200n8\";\n+\t};\n+};\n+\n+&vctcxo_1m {\n+\tstatus = \"okay\";\n+};\n+\n+&vctcxo_24m {\n+\tstatus = \"okay\";\n+};\n+\n+&vctcxo_3m {\n+\tstatus = \"okay\";\n+};\n+\n+&osc_32k {\n+\tstatus = \"okay\";\n+};\n+\n+&soc {\n+\tsystem-controller@d4050000 {\n+\t\tstatus = \"okay\";\n+\t};\n+\tclock-controller@d4090000 {\n+\t\tstatus = \"okay\";\n+\t};\n+\tsystem-controller@d4282800 {\n+\t\tstatus = \"okay\";\n+\t};\n+\tsystem-controller@d4015000 {\n+\t\tclocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>,\n+\t\t\t <&vctcxo_24m>, <&syscon_mpmu CLK_PLL1_31P5>,\n+\t\t\t <&pll CLK_PLL1_D4>;\n+\t\tclock-names = \"osc\", \"vctcxo_1m\", \"vctcxo_3m\",\n+\t\t\t      \"vctcxo_24m\", \"pll1_d78_31p5\", \"pll1_d4\";\n+\t\tstatus = \"okay\";\n+\t};\n+\n+\ti2c@d4012000 {\t\t/* i2c2 */\n+\t\tstatus = \"okay\";\n+\t\teeprom: eeprom {\n+\t\t\tcompatible = \"atmel,24c02\";\n+\t\t\treg = <0x50>;\n+\t\t\tstatus = \"okay\";\n+\t\t};\n+\t};\n+\n+\treset-controller@d4050000 {\n+\t\tstatus = \"okay\";\n+\t};\n+};\n+\n+&uart0 {\n+\tstatus = \"okay\";\n+};\n+\n+&i2c8 {\n+\tstatus = \"okay\";\n+\tpmic@41 {\n+\t\tcompatible = \"spacemit,p1\";\n+\t\treg = <0x41>;\n+\t\tstatus = \"okay\";\n+\n+\t\tregulators {\n+\t\t\tbuck1 {\n+\t\t\t\tregulator-name = \"vdd_core\";\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck2 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck3_1v8: buck3 {\n+\t\t\t\tregulator-name = \"vdd_1v8\";\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <1800000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck4 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3300000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck5 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\tbuck6 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3450000>;\n+\t\t\t\tregulator-ramp-delay = <5000>;\n+\t\t\t\tregulator-always-on;\n+\t\t\t};\n+\n+\t\t\taldo1 {\n+\t\t\t\tregulator-name = \"vdd_1v8_mmc\";\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t\tregulator-boot-on;\n+\t\t\t};\n+\n+\t\t\taldo2 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\taldo3 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\taldo4 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo1 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo2 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo3 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo4 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo5 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo6 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\n+\t\t\tdldo7 {\n+\t\t\t\tregulator-min-microvolt = <500000>;\n+\t\t\t\tregulator-max-microvolt = <3400000>;\n+\t\t\t};\n+\t\t};\n+\t};\n+};\n+\n+&qspi {\n+\tstatus = \"okay\";\n+\n+\tflash@0 {\n+\t\tcompatible = \"jedec,spi-nor\";\n+\t\treg = <0>;\n+\t\tspi-max-frequency = <26500000>;\n+\t\tm25p,fast-read;\n+\t\tbroken-flash-reset;\n+\t\tstatus = \"okay\";\n+\t};\n+};\ndiff --git a/arch/riscv/dts/k1-spl.dts b/arch/riscv/dts/k1-spl.dts\nindex e3311af76e6..b8b600b792e 100644\n--- a/arch/riscv/dts/k1-spl.dts\n+++ b/arch/riscv/dts/k1-spl.dts\n@@ -7,6 +7,7 @@\n /dts-v1/;\n \n #include \"k1.dtsi\"\n+#include \"binman.dtsi\"\n \n / {\n \tmodel = \"spacemit k1 spl\";\n@@ -19,29 +20,6 @@\n \tchosen {\n \t\tstdout-path = \"serial0:115200n8\";\n \t};\n-\n-\tbinman {\n-\t\tu-boot-spl-ddr {\n-\t\t\ttype = \"section\";\n-\t\t\tfilename = \"u-boot-spl-ddr.bin\";\n-\t\t\tpad-byte = <0xff>;\n-\n-\t\t\tu-boot-spl {\n-\t\t\t};\n-\n-\t\t\tddr-fw {\n-\t\t\t\ttype = \"blob\";\n-\t\t\t\tfilename = \"ddr_fw.bin\";\n-\t\t\t\talign = <64>;\n-\t\t\t};\n-\n-\t\t\tu-boot-any {\n-\t\t\t\ttype = \"section\";\n-\t\t\t\tsize = <0>;\n-\t\t\t\toffset = <0>;\n-\t\t\t};\n-\t\t};\n-\t};\n };\n \n &vctcxo_1m {\n@@ -54,6 +32,29 @@\n \tbootph-pre-ram;\n };\n \n+&binman {\n+\tu-boot-spl-ddr {\n+\t\ttype = \"section\";\n+\t\tfilename = \"u-boot-spl-ddr.bin\";\n+\t\tpad-byte = <0xff>;\n+\n+\t\tu-boot-spl {\n+\t\t};\n+\n+\t\tddr-fw {\n+\t\t\ttype = \"blob\";\n+\t\t\tfilename = \"ddr_fw.bin\";\n+\t\t\talign = <64>;\n+\t\t};\n+\n+\t\tu-boot-any {\n+\t\t\ttype = \"section\";\n+\t\t\tsize = <0>;\n+\t\t\toffset = <0>;\n+\t\t};\n+\t};\n+};\n+\n &vctcxo_3m {\n \tstatus = \"okay\";\n \tbootph-pre-ram;\ndiff --git a/board/spacemit/k1/spl.c b/board/spacemit/k1/spl.c\nindex 77b6df1371b..9b30bc9ea7e 100644\n--- a/board/spacemit/k1/spl.c\n+++ b/board/spacemit/k1/spl.c\n@@ -8,12 +8,12 @@\n #include <binman_sym.h>\n #include <clk.h>\n #include <clk-uclass.h>\n-#include <cpu_func.h>\n #include <configs/k1.h>\n #include <cpu_func.h>\n #include <dm/device.h>\n #include <dm/uclass.h>\n #include <i2c.h>\n+#include <linux/ctype.h>\n #include <linux/delay.h>\n #include <log.h>\n #include <power/regulator.h>\n@@ -56,6 +56,8 @@ struct ddr_cfg {\n binman_sym_declare(ulong, ddr_fw, image_pos);\n binman_sym_declare(ulong, ddr_fw, size);\n \n+char product_name[I2C_BUF_SIZE] = \"k1\";\n+\n static void reset_early_init(void)\n {\n \tstruct udevice *dev;\n@@ -327,7 +329,6 @@ void nor_early_init(void)\n \n void board_init_f(ulong dummy)\n {\n-\tu8 i2c_buf[I2C_BUF_SIZE];\n \tint ret;\n \n \tret = spl_early_init();\n@@ -343,11 +344,11 @@ void board_init_f(ulong dummy)\n \tpreloader_console_init();\n \n \ti2c_early_init();\n-\tret = read_product_name(i2c_buf, I2C_BUF_SIZE);\n+\tret = read_product_name(product_name, I2C_BUF_SIZE);\n \tif (ret)\n \t\tlog_info(\"Fail to detect board:%d\\n\", ret);\n \telse\n-\t\tlog_info(\"Get board name:%s\\n\", (char *)i2c_buf);\n+\t\tlog_info(\"Get board name:%s\\n\", product_name);\n \tpmic_init();\n \n \tddr_early_init();\n@@ -363,6 +364,26 @@ void spl_board_init(void)\n {\n }\n \n+int board_fit_config_name_match(const char *name)\n+{\n+\tchar fdt_name[I2C_BUF_SIZE];\n+\tint i;\n+\n+\tmemset(fdt_name, 0, I2C_BUF_SIZE);\n+\tif (!strncmp(product_name, \"k1-x_\", 5)) {\n+\t\tsnprintf(fdt_name, I2C_BUF_SIZE, \"%s-%s\", \"k1\",\n+\t\t\t &product_name[5]);\n+\t}\n+\tfor (i = 0; i < I2C_BUF_SIZE; i++) {\n+\t\tif (fdt_name[i] == '\\0')\n+\t\t\tbreak;\n+\t\tfdt_name[i] = tolower(fdt_name[i]);\n+\t}\n+\tif (!strcmp(name, fdt_name))\n+\t\treturn 0;\n+\treturn -ENOENT;\n+}\n+\n void *board_spl_fit_buffer_addr(ulong fit_size, int sectors, int bl_len)\n {\n \treturn (void *)CONFIG_SPL_LOAD_FIT_ADDRESS;\ndiff --git a/configs/spacemit_k1_defconfig b/configs/spacemit_k1_defconfig\nindex 97b6c8cbbb0..13f055cdf53 100644\n--- a/configs/spacemit_k1_defconfig\n+++ b/configs/spacemit_k1_defconfig\n@@ -4,6 +4,7 @@ CONFIG_NR_DRAM_BANKS=2\n CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y\n CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x1000000\n CONFIG_DEFAULT_DEVICE_TREE=\"k1-spl\"\n+CONFIG_OF_LIST=\"k1-bananapi-f3 k1-muse-pi-pro\"\n CONFIG_SPL=y\n CONFIG_SPL_TEXT_BASE=0xc0801000\n CONFIG_SPL_MAX_SIZE=0x33000\n@@ -22,7 +23,8 @@ CONFIG_SYS_LOAD_ADDR=0x200000\n CONFIG_ARCH_RV64I=y\n CONFIG_RISCV_SMODE=y\n CONFIG_TARGET_SPACEMIT_K1=y\n-CONFIG_SPL_RISCV_SMODE=y\n+CONFIG_SPL_RISCV_MMODE=y\n+# CONFIG_SPL_SMP is not set\n CONFIG_FIT=y\n CONFIG_SUPPORT_RAW_INITRD=y\n CONFIG_OF_BOARD_SETUP=y\n@@ -58,7 +60,7 @@ CONFIG_CLK=y\n CONFIG_CLK_CCF=y\n CONFIG_CLK_SPACEMIT=y\n CONFIG_CLK_SPACEMIT_K1=y\n-CONFIG_SYS_MALLOC_F_LEN=0x5000\n+CONFIG_SYS_MALLOC_F_LEN=0x10000\n CONFIG_DM_I2C=y\n CONFIG_SYS_I2C_SPACEMIT_K1=y\n CONFIG_MISC=y\n@@ -100,3 +102,4 @@ CONFIG_SPL_DM_SPI_FLASH=y\n CONFIG_SPL_SPI_LOAD=y\n CONFIG_SPL_SPI_FLASH_TINY=y\n CONFIG_SPL_SPI_FLASH_SUPPORT=y\n+CONFIG_SPL_SYS_MALLOC_F_LEN=0x5300\n",
    "prefixes": [
        "14/16"
    ]
}