arm64: dts: ls1028a: fix memory node
authorMichael Walle <michael@walle.cc>
Thu, 8 Apr 2021 11:02:18 +0000 (13:02 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 22 May 2021 12:29:59 +0000 (20:29 +0800)
commitdabea675faf16e8682aa478ff3ce65dd775620bc
tree595c21ca2cde4108ab2c25e16aab9139620627b1
parent8967b27a6c1c19251989c7ab33c058d16e4a5f53
arm64: dts: ls1028a: fix memory node

While enabling EDAC support for the LS1028A it was discovered that the
memory node has a wrong endianness setting as well as a wrong interrupt
assignment. Fix both.

This was tested on a sl28 board. To force ECC errors, you can use the
error injection supported by the controller in hardware (with
CONFIG_EDAC_DEBUG enabled):

 # enable error injection
 $ echo 0x100 > /sys/devices/system/edac/mc/mc0/inject_ctrl
 # flip lowest bit of the data
 $ echo 0x1 > /sys/devices/system/edac/mc/mc0/inject_data_lo

Fixes: 8897f3255c9c ("arm64: dts: Add support for NXP LS1028A SoC")
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi