From bfa007a7e80d934d6d6d9b25064020bc11c69738 Mon Sep 17 00:00:00 2001 From: SuperKali Date: Sun, 15 Sep 2024 19:06:26 +0200 Subject: [PATCH] Add reserved-memory node for hdmirx-controller on Youyeetoo R1 v3 (#241) --- .../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 */