* [PATCH 0/2] arm: mediatek: enable SNOR on Genio 520/720 EVK
@ 2026-04-06 20:37 David Lechner
2026-04-06 20:37 ` [PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support David Lechner
2026-04-06 20:37 ` [PATCH 2/2] configs: mediatek: add required config for SNOR on Genio 520/720 EVK David Lechner
0 siblings, 2 replies; 5+ messages in thread
From: David Lechner @ 2026-04-06 20:37 UTC (permalink / raw)
To: Ryder Lee, Weijie Gao, Chunfeng Yun, Igor Belwon,
GSS_MTK_Uboot_upstream, Tom Rini, Macpaul Lin
Cc: Julien Stephan, u-boot, David Lechner
Add required devicetree nodes and configuration options to enable SNOR
on Genio 520 and 720 EVKs.
For now, the common config for these boards is in the mt8189.config
file since there aren't any other boards using it. If more boards are
added in the future, we may want to split some of that out. I think it
is better to wait to do that though so it is more clear what is common
and what is not.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
David Lechner (2):
arm: dts: mediatek: add Genio 520/720 SNOR support
configs: mediatek: add required config for SNOR on Genio 520/720 EVK
arch/arm/dts/mt8189.dtsi | 17 +++++++++++++++++
arch/arm/dts/mt8371-genio-common.dtsi | 31 +++++++++++++++++++++++++++++++
configs/mt8189.config | 6 ++++++
3 files changed, 54 insertions(+)
---
base-commit: 2e9ed23b3c4fb75dee8b87a72968f318c97a9438
change-id: 20260406-mtk-genio-720-snor-211aaa545f4b
Best regards,
--
David Lechner <dlechner@baylibre.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support
2026-04-06 20:37 [PATCH 0/2] arm: mediatek: enable SNOR on Genio 520/720 EVK David Lechner
@ 2026-04-06 20:37 ` David Lechner
2026-04-07 14:25 ` Macpaul Lin (林智斌)
2026-04-06 20:37 ` [PATCH 2/2] configs: mediatek: add required config for SNOR on Genio 520/720 EVK David Lechner
1 sibling, 1 reply; 5+ messages in thread
From: David Lechner @ 2026-04-06 20:37 UTC (permalink / raw)
To: Ryder Lee, Weijie Gao, Chunfeng Yun, Igor Belwon,
GSS_MTK_Uboot_upstream, Tom Rini, Macpaul Lin
Cc: Julien Stephan, u-boot, David Lechner
Add devicetree nodes needed to enable SNOR support on Genio 520 and 720
EVKs. This is copied from the most recent upstream submission [1] of the
devicetree for these boards, so there should be minimal differences when
we eventually switch to OF_UPSTREAM.
Link: https://lore.kernel.org/linux-mediatek/20251111070031.305281-10-jh.hsu@mediatek.com/ [1]
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
arch/arm/dts/mt8189.dtsi | 17 +++++++++++++++++
arch/arm/dts/mt8371-genio-common.dtsi | 31 +++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/arch/arm/dts/mt8189.dtsi b/arch/arm/dts/mt8189.dtsi
index e550745ac5d..891d3249ecd 100644
--- a/arch/arm/dts/mt8189.dtsi
+++ b/arch/arm/dts/mt8189.dtsi
@@ -181,6 +181,23 @@
status = "disabled";
};
+ nor_flash: spi@11018000 {
+ compatible = "mediatek,mt8189-nor","mediatek,mt8186-nor";
+ reg = <0 0x11018000 0 0x1000>;
+ clocks = <&topckgen_clk CLK_TOP_SFLASH_SEL>,
+ <&pericfg_ao_clk CLK_PERAO_SFLASH>,
+ <&pericfg_ao_clk CLK_PERAO_SFLASH_F>,
+ <&pericfg_ao_clk CLK_PERAO_SFLASH_H>,
+ <&pericfg_ao_clk CLK_PERAO_SFLASH_P>;
+ clock-names = "spi", "sf", "axi_f", "axi_h", "axi_p";
+ assigned-clocks = <&topckgen_clk CLK_TOP_SFLASH_SEL>;
+ assigned-clock-parents = <&topckgen_clk CLK_TOP_UNIVPLL_D6_D8>;
+ interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH 0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
xhci0: usb@11200000 {
compatible = "mediatek,mt8189-xhci", "mediatek,mtk-xhci";
reg = <0 0x11200000 0 0x1000>,
diff --git a/arch/arm/dts/mt8371-genio-common.dtsi b/arch/arm/dts/mt8371-genio-common.dtsi
index 046e9d57752..1d4728e3732 100644
--- a/arch/arm/dts/mt8371-genio-common.dtsi
+++ b/arch/arm/dts/mt8371-genio-common.dtsi
@@ -162,6 +162,21 @@
regulator-always-on;
};
+&nor_flash {
+ pinctrl-names = "default";
+ pinctrl-0 = <&nor_pins>;
+
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <52000000>;
+ spi-rx-bus-width = <2>;
+ spi-tx-bus-width = <2>;
+ };
+};
+
&pio {
mmc0_default_pins: mmc0-default-pins {
pins-clk {
@@ -274,6 +289,22 @@
};
};
+ nor_pins: nor-pins {
+ pins-ck-io {
+ pinmux = <PINMUX_GPIO150__FUNC_SPINOR_CK>,
+ <PINMUX_GPIO152__FUNC_SPINOR_IO0>,
+ <PINMUX_GPIO153__FUNC_SPINOR_IO1>;
+ drive-strength = <8>;
+ bias-pull-down;
+ };
+
+ pins-cs {
+ pinmux = <PINMUX_GPIO151__FUNC_SPINOR_CS>;
+ drive-strength = <8>;
+ bias-pull-up;
+ };
+ };
+
uart0_pins: uart0-pins {
pins {
pinmux = <PINMUX_GPIO31__FUNC_UTXD0>,
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] configs: mediatek: add required config for SNOR on Genio 520/720 EVK
2026-04-06 20:37 [PATCH 0/2] arm: mediatek: enable SNOR on Genio 520/720 EVK David Lechner
2026-04-06 20:37 ` [PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support David Lechner
@ 2026-04-06 20:37 ` David Lechner
2026-04-07 14:22 ` Macpaul Lin (林智斌)
1 sibling, 1 reply; 5+ messages in thread
From: David Lechner @ 2026-04-06 20:37 UTC (permalink / raw)
To: Ryder Lee, Weijie Gao, Chunfeng Yun, Igor Belwon,
GSS_MTK_Uboot_upstream, Tom Rini, Macpaul Lin
Cc: Julien Stephan, u-boot, David Lechner
Enable options to be able to access the SNOR flash on Genio 520/720 EVK
boards.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
configs/mt8189.config | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configs/mt8189.config b/configs/mt8189.config
index 74edd0169ea..e0a6b022fc0 100644
--- a/configs/mt8189.config
+++ b/configs/mt8189.config
@@ -23,6 +23,9 @@ CONFIG_CLK=y
# CONFIG_MMC_QUIRKS is not set
CONFIG_MMC_HS200_SUPPORT=y
CONFIG_MMC_MTK=y
+CONFIG_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_PHY=y
CONFIG_PHY_MTK_TPHY=y
CONFIG_PHY_MTK_XSPHY=y
@@ -37,6 +40,9 @@ CONFIG_DM_REGULATOR_MT6359=y
CONFIG_BAUDRATE=921600
CONFIG_DM_SERIAL=y
CONFIG_MTK_SERIAL=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_MTK_SNOR=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_MTK=y
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] configs: mediatek: add required config for SNOR on Genio 520/720 EVK
2026-04-06 20:37 ` [PATCH 2/2] configs: mediatek: add required config for SNOR on Genio 520/720 EVK David Lechner
@ 2026-04-07 14:22 ` Macpaul Lin (林智斌)
0 siblings, 0 replies; 5+ messages in thread
From: Macpaul Lin (林智斌) @ 2026-04-07 14:22 UTC (permalink / raw)
To: GSS_MTK_Uboot_upstream, Ryder Lee, trini@konsulko.com,
David Lechner, Weijie Gao (高惟杰),
Chunfeng Yun (云春峰),
igor.belwon@mentallysanemainliners.org
Cc: Julien Stephan, u-boot@lists.denx.de,
Pablo Sun (孫毓翔),
Ht Lin (林瀚宗),
Bear Wang (萩原惟德)
On Mon, 2026-04-06 at 15:37 -0500, David Lechner wrote:
> Enable options to be able to access the SNOR flash on Genio 520/720
> EVK
> boards.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
> configs/mt8189.config | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/configs/mt8189.config b/configs/mt8189.config
> index 74edd0169ea..e0a6b022fc0 100644
> --- a/configs/mt8189.config
> +++ b/configs/mt8189.config
> @@ -23,6 +23,9 @@ CONFIG_CLK=y
> # CONFIG_MMC_QUIRKS is not set
> CONFIG_MMC_HS200_SUPPORT=y
> CONFIG_MMC_MTK=y
> +CONFIG_MTD=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> CONFIG_PHY=y
> CONFIG_PHY_MTK_TPHY=y
> CONFIG_PHY_MTK_XSPHY=y
> @@ -37,6 +40,9 @@ CONFIG_DM_REGULATOR_MT6359=y
> CONFIG_BAUDRATE=921600
> CONFIG_DM_SERIAL=y
> CONFIG_MTK_SERIAL=y
> +CONFIG_SPI=y
> +CONFIG_DM_SPI=y
> +CONFIG_MTK_SNOR=y
> CONFIG_USB=y
> CONFIG_USB_XHCI_HCD=y
> CONFIG_USB_XHCI_MTK=y
>
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Thanks!
Macpaul Lin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support
2026-04-06 20:37 ` [PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support David Lechner
@ 2026-04-07 14:25 ` Macpaul Lin (林智斌)
0 siblings, 0 replies; 5+ messages in thread
From: Macpaul Lin (林智斌) @ 2026-04-07 14:25 UTC (permalink / raw)
To: GSS_MTK_Uboot_upstream, Ryder Lee, trini@konsulko.com,
David Lechner, Weijie Gao (高惟杰),
Chunfeng Yun (云春峰),
igor.belwon@mentallysanemainliners.org
Cc: Julien Stephan, u-boot@lists.denx.de,
Pablo Sun (孫毓翔),
Ht Lin (林瀚宗),
Bear Wang (萩原惟德)
On Mon, 2026-04-06 at 15:37 -0500, David Lechner wrote:
> Add devicetree nodes needed to enable SNOR support on Genio 520 and
> 720
> EVKs. This is copied from the most recent upstream submission [1] of
> the
> devicetree for these boards, so there should be minimal differences
> when
> we eventually switch to OF_UPSTREAM.
>
> Link:
> https://lore.kernel.org/linux-mediatek/20251111070031.305281-10-jh.hsu@mediatek.com/
> [1]
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
[snip...]
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Thanks!
Macpaul Lin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-04-07 14:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-06 20:37 [PATCH 0/2] arm: mediatek: enable SNOR on Genio 520/720 EVK David Lechner
2026-04-06 20:37 ` [PATCH 1/2] arm: dts: mediatek: add Genio 520/720 SNOR support David Lechner
2026-04-07 14:25 ` Macpaul Lin (林智斌)
2026-04-06 20:37 ` [PATCH 2/2] configs: mediatek: add required config for SNOR on Genio 520/720 EVK David Lechner
2026-04-07 14:22 ` Macpaul Lin (林智斌)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox