Skip to content

Commit ebf7cd0

Browse files
nascsRadxaYuntian
authored andcommitted
feat: add usb-peripheral for Radxa VMARC Q9075 IO
Signed-off-by: William Norman <nascs@radxa.com>
1 parent d8a5f61 commit ebf7cd0

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs6490-radxa-cm-q64-rpi-cm5-io-cam0-imx219.dtbo \
4545
qcs9075-i2c18.dtbo \
4646
qcs9075-radxa-vmarc-q9075-io-cam1-imx577.dtbo \
4747
qcs9075-radxa-vmarc-q9075-io-cam2-ov9281.dtbo \
48+
qcs9075-radxa-vmarc-q9075-io-usb-peripheral.dtbo \
4849
qcs9075-spi16-cs0-enc28j60.dtbo \
4950
qcs9075-spi16-cs0-mcp2515.dtbo \
5051
qcs9075-spi16-cs0-spidev.dtbo \
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2026 Radxa Computer (Shenzhen) Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
#include <dt-bindings/gpio/gpio.h>
10+
11+
/ {
12+
metadata {
13+
title = "Set OTG port to Peripheral mode";
14+
compatible = "radxa,vmarc-q9075-io";
15+
category = "misc";
16+
exclusive = "usb_0";
17+
description = "Set OTG port to Peripheral mode.
18+
Use this when you want to connect to another computer
19+
on Radxa VMARC Q9075 IO Board.";
20+
};
21+
22+
usb0_peripheral_vbus: usb0-peripheral-vbus {
23+
compatible = "regulator-fixed";
24+
regulator-name = "usb0_peripheral_vbus";
25+
regulator-min-microvolt = <5000000>;
26+
regulator-max-microvolt = <5000000>;
27+
};
28+
};
29+
30+
&usb_0 {
31+
dr_mode = "peripheral";
32+
vbus_dwc3-supply = <&usb0_peripheral_vbus>;
33+
};
34+
35+
&vcc5v0_usb30_otg_regulator {
36+
status = "disabled";
37+
};
38+
39+
&pmm8654au_2_gpios {
40+
usb0_peripheral_vbus_disable_hog: usb0-peripheral-vbus-disable-hog {
41+
gpio-hog;
42+
gpios = <4 GPIO_ACTIVE_HIGH>;
43+
output-low;
44+
line-name = "usb0-peripheral-vbus-disable";
45+
};
46+
};

0 commit comments

Comments
 (0)