From e5d7484616d63ac59f311dd5a310bc3979a29116 Mon Sep 17 00:00:00 2001 From: Swagath Gadde Date: Wed, 28 Feb 2024 15:56:42 +0530 Subject: system-vek280: add workaround device tree node Add the workaround device tree node to reserve the bad block DDR memory. so that we can boot linux on vek280 board. Signed-off-by: Swagath Gadde Signed-off-by: Mark Hatle --- .../recipes-bsp/device-tree/device-tree.bbappend | 2 ++ .../recipes-bsp/device-tree/files/system-vek280.dtsi | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 meta-xilinx-bsp/recipes-bsp/device-tree/files/system-vek280.dtsi diff --git a/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend b/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend index fa4816af..7acda75e 100644 --- a/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend +++ b/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bbappend @@ -5,3 +5,5 @@ COMPATIBLE_MACHINE:qemu-zynq7 = ".*" SRC_URI:append:qemu-zynq7 = " file://qemu-zynq7.dts" EXTRA_OVERLAYS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'provencore', ' pnc.dtsi', '', d)}" + +EXTRA_OVERLAYS:append:vek280-versal = " system-vek280.dtsi" diff --git a/meta-xilinx-bsp/recipes-bsp/device-tree/files/system-vek280.dtsi b/meta-xilinx-bsp/recipes-bsp/device-tree/files/system-vek280.dtsi new file mode 100644 index 00000000..0d2ca87d --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/device-tree/files/system-vek280.dtsi @@ -0,0 +1,20 @@ +/ { +/* Reserve the bad block DDR memory for linux to not touch it, refer:CR-1143646 */ +reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + pl_ddr: buffer@0 + { + no-map; + reg = <0x08 0x00 0x00 0x80000000>; + }; + + lpddr_memory: buffer@1 + { + no-map; + reg = <0x500 0x0 0x2 0x0>; + }; + +}; +}; -- cgit v1.2.3-54-g00ecf