Skip to content

Commit

Permalink
add rock 5b otg port1 dts
Browse files Browse the repository at this point in the history
Signed-off-by: Feng Zhang <[email protected]>
  • Loading branch information
vamrs-feng committed Jun 18, 2024
1 parent f531b6b commit ba188cc
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ dtb-$(CONFIG_CLK_RK3588) += \
rock-5a-radxa-display-10hd.dtbo \
rock-5a-sata.dtbo \
rock-5a-spi-flash.dtbo \
rock-5b-dwc3_1-host.dtbo \
rock-5b-dwc3_1-peripheral.dtbo \
rock-5b-radxa-25w-poe.dtbo \
rock-5b-radxa-display-10hd.dtbo \
rock-5b-radxa-display-8hd.dtbo \
Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/rockchip/overlays/rk3588-dwc3_1-host.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

/ {
metadata {
title = "Set OTG port 1 to Host mode (ROCK 5B V1.46+)";
compatible = "radxa,rock-5b", "radxa,rock-5b-plus";
title = "Set OTG port 1 to Host mode";
compatible = "radxa,rock-5b-plus";
category = "misc";
exclusive = "usbdrd_dwc3_1-dr_mode";
description = "Set OTG port 1 to Host mode (ROCK 5B V1.46+).
description = "Set OTG port 1 to Host mode.
Use this when you want to connect USB devices.";
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

/ {
metadata {
title = "Set OTG port 1 to Peripheral mode (ROCK 5B V1.46+)";
compatible = "radxa,rock-5b", "radxa,rock-5b-plus";
title = "Set OTG port 1 to Peripheral mode";
compatible = "radxa,rock-5b-plus";
category = "misc";
exclusive = "usbdrd_dwc3_1-dr_mode";
description = "Set OTG port 1 to Peripheral mode (ROCK 5B V1.46+).
description = "Set OTG port 1 to Peripheral mode.
Use this when you want to connect to another computer.";
};
};
Expand Down
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rock-5b-dwc3_1-host.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "rk3588-dwc3_1-host.dts"

/ {
metadata {
title = "Set OTG port 1 to Host mode for ROCK 5B V1.46+";
compatible = "radxa,rock-5b";
description = "Set OTG port 1 to Host mode for ROCK 5B V1.46+.
This is the bottom USB 3.0 port.
Use this when you want to connect USB devices.";
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "rk3588-dwc3_1-peripheral.dts"

/ {
metadata {
title = "Set OTG port 1 to Peripheral mode for ROCK 5B V1.46+";
compatible = "radxa,rock-5b";
description = "Set OTG port 1 to Peripheral mode for ROCK 5B V1.46+.
This is the bottom USB 3.0 port.
Use this when you want to connect to another computer.";
};
};

0 comments on commit ba188cc

Please sign in to comment.