Skip to contentSkip to conversation

ARM: dts: wpcm450: Add nuvoton,shm = <&shm> to FIU node

PATCH In review Jonathan Neuschäfer 2 participants 2 messages Jan 29, 2023 – Feb 1, 2023 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: wpcm450: Add nuvoton,shm = <&shm> to FIU node

The Flash Interface Unit (FIU) should have a reference to the Shared Memory controller (SHM) so that flash access from the host (x86 computer managed by the WPCM450 BMC) can be blocked during flash access by the FIU driver.

Fixes 38abcb0d68767 ("ARM: dts: wpcm450: Add FIU SPI controller node")
---
 arch/arm/boot/dts/nuvoton-wpcm450.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nuvoton-wpcm450.dtsi +1 -0
index 299fcbba3089b..fda2f13093f98 100644
@@ -478,6 +478,7 @@ fiu: spi-controller@c8000000 {
 			reg = <0xc8000000 0x1000>, <0xc0000000 0x4000000>;
 			reg-names = "control", "memory";
 			clocks = <&clk WPCM450_CLK_FIU>;
+			nuvoton,shm = <&shm>;
 			status = "disabled";
 		};
 

--
2.39.0

Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jonathan Neuschäfer

The Flash Interface Unit (FIU) should have a reference to the Shared Memory controller (SHM) so that flash access from the host (x86 computer managed by the WPCM450 BMC) can be blocked during flash access by the FIU driver.

Fixes 38abcb0d68767 ("ARM: dts: wpcm450: Add FIU SPI controller node")

I'll send this to the soc maintainers.

Quoted 19 lines
---
 arch/arm/boot/dts/nuvoton-wpcm450.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nuvoton-wpcm450.dtsi +1 -1
index 299fcbba3089b..fda2f13093f98 100644
@@ -478,6 +478,7 @@ fiu: spi-controller@c8000000 {
                        reg = <0xc8000000 0x1000>, <0xc0000000 0x4000000>;
                        reg-names = "control", "memory";
                        clocks = <&clk WPCM450_CLK_FIU>;
+                       nuvoton,shm = <&shm>;
                        status = "disabled";
                };
 
--

2.39.0