From a8e7d17e7fc5b7419f0907c780b8ad61109c6dc7 Mon Sep 17 00:00:00 2001 From: mr-toolcraft <169016260+mr-toolcraft@users.noreply.github.com> Date: Mon, 28 Oct 2024 20:31:30 +0100 Subject: [PATCH] Radxa rock-3a - edge - add overlay to disable debug console (#7402) * rock-3a: add overlay to disable debug serial console * Update Makefile * Update patch/kernel/archive/rockchip64-6.11/overlay/Makefile Co-authored-by: ColorfulRhino <131405023+ColorfulRhino@users.noreply.github.com> * Rename rockchip-rock-3a-disable-uart2.dtso to rockchip-rk3568-rock-3a-disable-uart2.dtso --------- Co-authored-by: ColorfulRhino <131405023+ColorfulRhino@users.noreply.github.com> --- .../kernel/archive/rockchip64-6.11/overlay/Makefile | 3 ++- .../rockchip-rk3568-rock-3a-disable-uart2.dtso | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 patch/kernel/archive/rockchip64-6.11/overlay/rockchip-rk3568-rock-3a-disable-uart2.dtso diff --git a/patch/kernel/archive/rockchip64-6.11/overlay/Makefile b/patch/kernel/archive/rockchip64-6.11/overlay/Makefile index f6138e1eba01..47877df684f4 100644 --- a/patch/kernel/archive/rockchip64-6.11/overlay/Makefile +++ b/patch/kernel/archive/rockchip64-6.11/overlay/Makefile @@ -44,7 +44,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ rockchip-rk3568-hk-spi-spidev.dtbo \ rockchip-rk3568-hk-uart0.dtbo \ rockchip-rk3568-hk-uart0-rts_cts.dtbo \ - rockchip-rk3568-hk-uart1.dtbo + rockchip-rk3568-hk-uart1.dtbo \ + rockchip-rk3568-rock-3a-disable-uart2.dtbo scr-$(CONFIG_ARCH_ROCKCHIP) += \ rockchip-fixup.scr diff --git a/patch/kernel/archive/rockchip64-6.11/overlay/rockchip-rk3568-rock-3a-disable-uart2.dtso b/patch/kernel/archive/rockchip64-6.11/overlay/rockchip-rk3568-rock-3a-disable-uart2.dtso new file mode 100644 index 000000000000..5b7421e921d6 --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.11/overlay/rockchip-rk3568-rock-3a-disable-uart2.dtso @@ -0,0 +1,12 @@ +/dts-v1/; +/plugin/; + +/ { + fragment@0 { + target = <&uart2>; + + __overlay__ { + status = "disabled"; + }; + }; +};