{"id":2220322,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2220322/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260406-mtk-genio-720-snor-v1-1-cbfd5fc4e59a@baylibre.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","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":"<20260406-mtk-genio-720-snor-v1-1-cbfd5fc4e59a@baylibre.com>","date":"2026-04-06T20:37:09","name":"[1/2] arm: dts: mediatek: add Genio 520/720 SNOR support","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"f6a03c7f45155ad2a432f1ca94c0bd0f33fbff5a","submitter":{"id":87228,"url":"http://patchwork.ozlabs.org/api/1.1/people/87228/?format=json","name":"David Lechner","email":"dlechner@baylibre.com"},"delegate":{"id":161331,"url":"http://patchwork.ozlabs.org/api/1.1/users/161331/?format=json","username":"dlech","first_name":"David","last_name":"Lechner","email":"dlechner@baylibre.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260406-mtk-genio-720-snor-v1-1-cbfd5fc4e59a@baylibre.com/mbox/","series":[{"id":498896,"url":"http://patchwork.ozlabs.org/api/1.1/series/498896/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=498896","date":"2026-04-06T20:37:08","name":"arm: mediatek: enable SNOR on Genio 520/720 EVK","version":1,"mbox":"http://patchwork.ozlabs.org/series/498896/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2220322/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2220322/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=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=gEA3bazE;\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=none (p=none dis=none) header.from=baylibre.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=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.b=\"gEA3bazE\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com","phobos.denx.de;\n spf=pass smtp.mailfrom=dlechner@baylibre.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 4fqLk747T5z1yFt\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 06:37:51 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 92E1D83EC6;\n\tMon,  6 Apr 2026 22:37:37 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id EA3AF84101; Mon,  6 Apr 2026 22:37:35 +0200 (CEST)","from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com\n [IPv6:2607:f8b0:4864:20::c2f])\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 78B0B83EC6\n for <u-boot@lists.denx.de>; Mon,  6 Apr 2026 22:37:33 +0200 (CEST)","by mail-oo1-xc2f.google.com with SMTP id\n 006d021491bc7-684571567a8so654177eaf.1\n for <u-boot@lists.denx.de>; Mon, 06 Apr 2026 13:37:33 -0700 (PDT)","from [127.0.1.1] ([2600:8803:e7e4:500:90d7:b13f:c53:8ca3])\n by smtp.gmail.com with ESMTPSA id\n 006d021491bc7-68386edba6bsm5359048eaf.14.2026.04.06.13.37.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 13:37:31 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1775507852;\n x=1776112652;\n darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=QsuES9Uw8lEqGTIGY/5uRF7DQl4cd7CzIKDkRxyM0dM=;\n b=gEA3bazEm5+k9mQCm+mC+HgEC2/uyvahYyUeZyr5WWNlwuBZDx2G8BZXeygkrAGg41\n 6XlnX9ZcXeUY8vwHYeUcjeuoO/hcbcOMAIY8V7FrLV0zph8g8T27hIJNeq/RZyojlUzH\n iN9B8o3+rIga8hUCDRgSvbnZ/cmGVo8vPrZ8VEFEt9K1FpKgdruKy9NQbT9cV3eRWIyD\n /7B4uueQR6h1mUlktM/GN7reCye17Zf14039+9CHsvnnJNlUFgwJ++geQ4tbQUcOcYZ3\n SStyvW5szIRHFKhJE744rh9+Ky2E+wQQRq3QE6ihfnHCkMEyY7IRYVbwrMCqBOy1U9qX\n ym/Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775507852; x=1776112652;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=QsuES9Uw8lEqGTIGY/5uRF7DQl4cd7CzIKDkRxyM0dM=;\n b=DZ/73yORMtmv2SbBxR9R0/nVvLDRGQFrPB/1xUulhQ1m69KmFuemLkXkNSTHW+CQIW\n sHa/WHAp6s867eyzQuV2CJsKhDRnHUJk5J8Dx0mapQy11xlXZtm21jfWM2s/vmjzWPBb\n NHYEFyjP1OlIkWaSSJKf1n1yLbPSn1R+BuXpom1jg6zWpnhFA5c5znpPxv8uCNMCP0ji\n SiuYvFD/r5oK56qfCtt/cdsY7EuR+WP4Dh+KyKQ9vWwBf8oLn0uUh//Rew8gjWfCDZvG\n uEk4zUDX8xpAol4NWuevo3niaI+PHw6H/nqT8dn7iWseU9wnuonYyh6FoPPAbYutjvBh\n SDbw==","X-Forwarded-Encrypted":"i=1;\n AJvYcCWqgNfFJ/gnaZjL8Pr/eQqJUCldktuInyKRZext2s7/hwR23zMwMmNjU5WKAC7I379HrwLs9+A=@lists.denx.de","X-Gm-Message-State":"AOJu0YyRtxKOFOELtDUbaBQUxHpD1Lqa+jguXPwFIDRdyg0NdMLGUsgY\n hXp2RQ5C+AGN11DzLyA6EC1xJeu1Wu+QEDJHgkInNLxxHd2ksodhYKad8Zhyj0vuYtI=","X-Gm-Gg":"AeBDiet4ri2c6BCpm23y9/tVy60VhRntaP11pbeWy91JJjHtyZf/uThLboSK+1l+JT8\n 1vyM4pR6G3SL+l1myt2fOFc4svZ8x7ZBxMbG5z16kD+6k5PJOR9JdcEgbOYD6Y7HLNARdcmIERR\n lS0g2YsXff8j24FiS1zbFGQzs3cI06lxHjoHwcS60pIC+WsrRPWzqftF1lZRinMxK5uejXOY4vo\n BZLk/4ZTOrD0gamPE/jR0iWiqpHxiEibqkO0mwrWOqxGp0cSnt2rC56XkjVAf6Ka0N5iqz25yiE\n TRL2WkBMEKSqyrZpwFGT6XX0ddHQhPDxOoAL9+tUMLiutIzscybmVL1w4FA/bZCyxSuNsOVklCr\n i1o3tvR01ifqtxnRY2el+N//7j6QxHDiT3QQ0Fnv2YgLQUPbA0kRUdoBrz5Qmkp+/AHk8BgGEGZ\n dPL/0vBmXOPVlM961qF/dhRCLCmO0=","X-Received":"by 2002:a05:6820:2910:b0:684:743e:86a6 with SMTP id\n 006d021491bc7-684743e872cmr4918444eaf.20.1775507852177;\n Mon, 06 Apr 2026 13:37:32 -0700 (PDT)","From":"David Lechner <dlechner@baylibre.com>","Date":"Mon, 06 Apr 2026 15:37:09 -0500","Subject":"[PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260406-mtk-genio-720-snor-v1-1-cbfd5fc4e59a@baylibre.com>","References":"<20260406-mtk-genio-720-snor-v1-0-cbfd5fc4e59a@baylibre.com>","In-Reply-To":"<20260406-mtk-genio-720-snor-v1-0-cbfd5fc4e59a@baylibre.com>","To":"Ryder Lee <ryder.lee@mediatek.com>, Weijie Gao <weijie.gao@mediatek.com>,\n Chunfeng Yun <chunfeng.yun@mediatek.com>,\n Igor Belwon <igor.belwon@mentallysanemainliners.org>,\n GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,\n Tom Rini <trini@konsulko.com>, Macpaul Lin <macpaul.lin@mediatek.com>","Cc":"Julien Stephan <jstephan@baylibre.com>, u-boot@lists.denx.de,\n David Lechner <dlechner@baylibre.com>","X-Mailer":"b4 0.16-dev","X-Developer-Signature":"v=1; a=openpgp-sha256; l=2730; i=dlechner@baylibre.com;\n h=from:subject:message-id;\n bh=Ir6aQ2njfjkzSajWz6T8f357/1QDfjo9ySyVTwEhpWw=;\n b=owEBhAF7/pANAwAKAcLMIAH/AY/AAcsmYgBp1Bl98CX8tLoAlU8ziIIDHXhEowupngg+YJbD4\n R2xo27Xr7OJAUoEAAEKADQWIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCadQZfRYcZGxlY2huZXJA\n YmF5bGlicmUuY29tAAoJEMLMIAH/AY/A6fgH/0RD1/ppdixZmbrzJUDZPdQP8xu3/55EGlWZplr\n xOySJS2syKvIxkK3XbE2krSDlMvoijjHiH7wGTXY72z4Sgf2RVaQlw4bg+9RjcyC6gWKfxdkCOH\n tDVf5fJOwuZkEZ39oz+/GWIIIyiOlJgGn571UWjlq+TlfYwRui6ZXhCfiQM3++yKjoy/xpiAbSF\n nqgRVs17yzjZ7F+eMjTflNf0rE9YqQ98L4NgkV/CExKJcKmQi9Bl2tqg1WY7Aj312WpP8aF/2eF\n PlAonFJ/tgtZZD2ifAg5TagJ8ihQL1JF9vULD0vji6GRqPazbgHGUEMv9N4POxVZLEvxK0nTcAY\n kU5M=","X-Developer-Key":"i=dlechner@baylibre.com; a=openpgp;\n fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03","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":"Add devicetree nodes needed to enable SNOR support on Genio 520 and 720\nEVKs. This is copied from the most recent upstream submission [1] of the\ndevicetree for these boards, so there should be minimal differences when\nwe eventually switch to OF_UPSTREAM.\n\nLink: https://lore.kernel.org/linux-mediatek/20251111070031.305281-10-jh.hsu@mediatek.com/ [1]\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n arch/arm/dts/mt8189.dtsi              | 17 +++++++++++++++++\n arch/arm/dts/mt8371-genio-common.dtsi | 31 +++++++++++++++++++++++++++++++\n 2 files changed, 48 insertions(+)","diff":"diff --git a/arch/arm/dts/mt8189.dtsi b/arch/arm/dts/mt8189.dtsi\nindex e550745ac5d..891d3249ecd 100644\n--- a/arch/arm/dts/mt8189.dtsi\n+++ b/arch/arm/dts/mt8189.dtsi\n@@ -181,6 +181,23 @@\n \t\t\tstatus = \"disabled\";\n \t\t};\n \n+\t\tnor_flash: spi@11018000 {\n+\t\t\tcompatible = \"mediatek,mt8189-nor\",\"mediatek,mt8186-nor\";\n+\t\t\treg = <0 0x11018000 0 0x1000>;\n+\t\t\tclocks = <&topckgen_clk CLK_TOP_SFLASH_SEL>,\n+\t\t\t\t <&pericfg_ao_clk CLK_PERAO_SFLASH>,\n+\t\t\t\t <&pericfg_ao_clk CLK_PERAO_SFLASH_F>,\n+\t\t\t\t <&pericfg_ao_clk CLK_PERAO_SFLASH_H>,\n+\t\t\t\t <&pericfg_ao_clk CLK_PERAO_SFLASH_P>;\n+\t\t\tclock-names = \"spi\", \"sf\", \"axi_f\", \"axi_h\", \"axi_p\";\n+\t\t\tassigned-clocks = <&topckgen_clk CLK_TOP_SFLASH_SEL>;\n+\t\t\tassigned-clock-parents = <&topckgen_clk CLK_TOP_UNIVPLL_D6_D8>;\n+\t\t\tinterrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH 0>;\n+\t\t\t#address-cells = <1>;\n+\t\t\t#size-cells = <0>;\n+\t\t\tstatus = \"disabled\";\n+\t\t};\n+\n \t\txhci0: usb@11200000 {\n \t\t\tcompatible = \"mediatek,mt8189-xhci\", \"mediatek,mtk-xhci\";\n \t\t\treg = <0 0x11200000 0 0x1000>,\ndiff --git a/arch/arm/dts/mt8371-genio-common.dtsi b/arch/arm/dts/mt8371-genio-common.dtsi\nindex 046e9d57752..1d4728e3732 100644\n--- a/arch/arm/dts/mt8371-genio-common.dtsi\n+++ b/arch/arm/dts/mt8371-genio-common.dtsi\n@@ -162,6 +162,21 @@\n \tregulator-always-on;\n };\n \n+&nor_flash {\n+\tpinctrl-names = \"default\";\n+\tpinctrl-0 = <&nor_pins>;\n+\n+\tstatus = \"okay\";\n+\n+\tflash@0 {\n+\t\tcompatible = \"jedec,spi-nor\";\n+\t\treg = <0>;\n+\t\tspi-max-frequency = <52000000>;\n+\t\tspi-rx-bus-width = <2>;\n+\t\tspi-tx-bus-width = <2>;\n+\t};\n+};\n+\n &pio {\n \tmmc0_default_pins: mmc0-default-pins {\n \t\tpins-clk {\n@@ -274,6 +289,22 @@\n \t\t};\n \t};\n \n+\tnor_pins: nor-pins {\n+\t\tpins-ck-io {\n+\t\t\tpinmux = <PINMUX_GPIO150__FUNC_SPINOR_CK>,\n+\t\t\t\t <PINMUX_GPIO152__FUNC_SPINOR_IO0>,\n+\t\t\t\t <PINMUX_GPIO153__FUNC_SPINOR_IO1>;\n+\t\t\tdrive-strength = <8>;\n+\t\t\tbias-pull-down;\n+\t\t};\n+\n+\t\tpins-cs {\n+\t\t\tpinmux = <PINMUX_GPIO151__FUNC_SPINOR_CS>;\n+\t\t\tdrive-strength = <8>;\n+\t\t\tbias-pull-up;\n+\t\t};\n+\t};\n+\n \tuart0_pins: uart0-pins {\n \t\tpins {\n \t\t\tpinmux = <PINMUX_GPIO31__FUNC_UTXD0>,\n","prefixes":["1/2"]}