Skip to content

Commit

Permalink
feat: add rk3568-hdmi-disable and rockchip-gpu-disable
Browse files Browse the repository at this point in the history
Meets the low-power requirements of some users
  • Loading branch information
CodeChenL committed Nov 12, 2024
1 parent d24f87e commit a36be5b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ dtb-$(CONFIG_CLK_RK3568) += \
rk3568-fiq-debugger-uart9m1.dtbo \
rk3568-gmac1-disable.dtbo \
rk3568-gmac1-enable.dtbo \
rk3568-hdmi-disable.dtbo \
rk3568-i2c1.dtbo \
rk3568-i2c2-disable.dtbo \
rk3568-i2c2-m0-pca9555.dtbo \
Expand Down Expand Up @@ -567,7 +568,9 @@ dtb-$(CONFIG_CPU_RK3588) += \
rock-5t-radxa-display-10fhd.dtbo \
rock-5t-radxa-display-10hd.dtbo

dtb-$(CONFIG_ARCH_ROCKCHIP) += rockchip-watchdog.dtbo \
dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-gpu-disable.dtbo \
rockchip-watchdog.dtbo \
rockchip-uart-dma.dtbo

dtbotxt-$(CONFIG_ARCH_ROCKCHIP) += \
Expand Down
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-hdmi-disable.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Disable HDMI";
compatible = "rockchip,rk3568", "rockchip,rk3566";
category = "misc";
exclusive = "hdmi", "hdmi_sound";
description = "Disable HDMI.";
};
};

&hdmi {
status = "disabled";
};

&hdmi_sound {
status = "disabled";
};
16 changes: 16 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rockchip-gpu-disable.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Disable GPU";
compatible = "rockchip,rk3308", "rockchip,rk3328", "rockchip,rk3399", "rockchip,rk3566", "rockchip,rk3568", "rockchip,rk3588";
category = "misc";
exclusive = "gpu";
description = "Disable GPU.";
};
};

&gpu {
status = "disabled";
};

0 comments on commit a36be5b

Please sign in to comment.