Skip to content

Commit

Permalink
Merge pull request radxa-pkg#259 from nascs/Radxa_Zero
Browse files Browse the repository at this point in the history
Radxa zero
  • Loading branch information
RadxaYuntian authored Mar 1, 2024
2 parents 8465de8 + 760bac0 commit 307b4ba
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_MESON) += \
meson-g12-disable-gpu.dtbo \
meson-g12-disable-hdmi.dtbo \
meson-g12-disable-usb.dtbo \
meson-g12-gpio-poweroff.dtbo \
meson-g12-i2c-ao-m0.dtbo \
meson-g12-i2c-ee-m0-01.dtbo \
Expand Down
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/meson-g12-disable-gpu.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Disable GPU";
compatible = "radxa,zero", "radxa,zero2";
category = "misc";
exclusive = "gpu";
description = "Disable GPU.";
};

fragment@0 {
target = <&mali>;

__overlay__ {
status = "disabled";
};
};
};
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/meson-g12-disable-hdmi.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Disable HDMI";
compatible = "radxa,zero", "radxa,zero2";
category = "misc";
exclusive = "hdmi";
description = "Disable HDMI.";
};

fragment@0 {
target = <&hdmi_tx>;

__overlay__ {
status = "disabled";
};
};

fragment@1 {
target = <&cecb_AO>;

__overlay__ {
status = "disabled";
};
};

fragment@2 {
target = <&cec_AO>;

__overlay__ {
status = "disabled";
};
};
};
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/meson-g12-disable-usb.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Disable USB";
compatible = "radxa,zero", "radxa,zero2";
category = "misc";
exclusive = "usb";
description = "Disable USB.";
};

fragment@0 {
target = <&usb>;

__overlay__ {
status = "disabled";
};
};

fragment@1 {
target = <&usb2_phy0>;

__overlay__ {
status = "disabled";
};
};

fragment@2 {
target = <&usb2_phy0>;

__overlay__ {
status = "disabled";
};
};
};

0 comments on commit 307b4ba

Please sign in to comment.