From 6965f1b32b5880a23a8e4093b9055938d15f00ec Mon Sep 17 00:00:00 2001 From: SuperKali Date: Sun, 15 Sep 2024 16:26:04 +0000 Subject: [PATCH] Add reserved-memory node for hdmirx-controller on Youyeetoo R1 v3 --- .../boot/dts/rockchip/rk3588s-youyeetoo-r1.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-youyeetoo-r1.dts b/arch/arm64/boot/dts/rockchip/rk3588s-youyeetoo-r1.dts index b5667f3ca5603..cfcdd9bff639e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-youyeetoo-r1.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-youyeetoo-r1.dts @@ -154,6 +154,21 @@ pwms = <&pwm6 0 40000 0>; fan-supply = <&vcc12v_dcin>; }; + + /* If hdmirx node is disabled, delete the reserved-memory node here. */ + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* Reserve 256MB memory for hdmirx-controller@fdee0000 */ + cma { + compatible = "shared-dma-pool"; + reusable; + reg = <0x0 (256 * 0x100000) 0x0 (256 * 0x100000)>; + linux,cma-default; + }; + }; }; /* AUDIO */