Skip to content

Commit 001a430

Browse files
committed
feat: add M.2 B-key USB overlay for Radxa VMARC Q9075 IO
Signed-off-by: Songjun Li <lisongjun@radxa.com>
1 parent 19f6ab3 commit 001a430

2 files changed

Lines changed: 34 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
@@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs6490-radxa-cm-q64-rpi-cm5-io-cam0-imx219.dtbo \
4747
qcs9075-i2c18.dtbo \
4848
qcs9075-radxa-vmarc-q9075-io-cam1-imx577.dtbo \
4949
qcs9075-radxa-vmarc-q9075-io-cam2-ov9281.dtbo \
50+
qcs9075-radxa-vmarc-q9075-io-enable-b-key.dtbo \
5051
qcs9075-radxa-vmarc-q9075-io-radxa-display-10fhd.dtbo \
5152
qcs9075-radxa-vmarc-q9075-io-usb-peripheral.dtbo \
5253
qcs9075-spi16-cs0-enc28j60.dtbo \
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 = "Route USB to M.2 B-key";
14+
compatible = "radxa,vmarc-q9075-io";
15+
category = "misc";
16+
exclusive = "switch-to-ekey-usb-regulator",
17+
"pmm8654au_2_gpio11";
18+
description = "Route USB from M.2 E-key to B-key for 4G modems.\nPMM8654AU_2 GPIO11=low";
19+
};
20+
};
21+
22+
&{/switch-to-ekey-usb-regulator} {
23+
status = "disabled";
24+
};
25+
26+
&pmm8654au_2_gpios {
27+
bkey_usb_select_hog: bkey-usb-select-hog {
28+
gpio-hog;
29+
gpios = <11 GPIO_ACTIVE_HIGH>;
30+
output-low;
31+
line-name = "bkey-usb-select";
32+
};
33+
};

0 commit comments

Comments
 (0)