Skip to contentSkip to conversation

arm64: dts: mt7622: add irq to spi-nor controller

PATCH New Chuanhong Guo 1 participant 1 message Apr 30, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: mt7622: add irq to spi-nor controller

Save some CPU from unnecessary polling and make SPI flash reading a tiny bit faster.

Cc <[email protected]> # v5.7+
Fixes 23beb1adb5f6 ("arm64: dts: mt7622: add flash related device nodes")

---
The nor controller driver in kernem when this dt is added doesn't support IRQ so there isn't one defined in dt back then. However, device-tree is supposed to describe the hardware, so I think this can count as a fix.
My main purpose for the fixes tag is just for the linux-stable backport though. spi-mtk-nor supports interrupt since v5.7.

 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +1 -0
index 8c2563a3919a..e263a81a011b 100644
@@ -570,6 +570,7 @@ nor_flash: spi@11014000 {
 		compatible = "mediatek,mt7622-nor",
 			     "mediatek,mt8173-nor";
 		reg = <0 0x11014000 0 0xe0>;
+		interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
 		clocks = <&pericfg CLK_PERI_FLASH_PD>,
 			 <&topckgen CLK_TOP_FLASH_SEL>;
 		clock-names = "spi", "sf";
Signature · 1 line
2.35.1