From 1223f3c597ba3423bdb1ecf52be4cedd52f494e3 Mon Sep 17 00:00:00 2001 From: Haaland Chen Date: Thu, 29 Feb 2024 10:49:24 +0800 Subject: [PATCH] riscv: dts: thead: meles: add usb power enable pin Signed-off-by: Haaland Chen --- arch/riscv/boot/dts/thead/th1520-milkv-meles.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts index a07bef9f3..f44e5c7d6 100644 --- a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts +++ b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts @@ -265,6 +265,16 @@ status = "okay"; }; + usb_vbus_en: regulator-usb-vbus-en { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus_en"; + gpio = <&gpio0_porta 27 0>; /* GPIO_ACTIVE_HIGH: 0 */ + enable-active-high; + regulator-boot-on; + regulator-always-on; + status = "okay"; + }; + /* Select USB3.0 Type-A port */ usb_select: regulator-usb-select { compatible = "regulator-fixed";