[PATCH 5/6] riscv: dts: spacemit: enable USB2.0 controllers on BananaPi F3
Junzhong Pan
panjunzhong at linux.spacemit.com
Tue Sep 8 02:39:36 PDT 2026
On 9/7/2026 4:42 PM, Troy Mitchell wrote:
> On Wed Aug 12, 2026 at 5:26 PM +08, Junzhong Pan wrote:
>> On BananaPi F3, usb2_0 is connected to a Type-C connector at device
>> mode by default. This port have no VBUS supply capability, thus host
>> mode only works with self-powered device or hub. User could switch the
>> role in sysfs.
>>
>> And the usb2_1 is connected to the USB2.0 pins of the Mini PCIe slot to
>> support cellular modules.
>>
>> Signed-off-by: Junzhong Pan <panjunzhong at linux.spacemit.com>
>> ---
>> arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 16 ++++++++++++++++
>> 1 file changed, 16 insertions(+)
>>
>> diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
>> index 72f77e9edd63..fd0f96262009 100644
>> --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
>> +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
>> @@ -350,6 +350,22 @@ &uart0 {
>> status = "okay";
>> };
>>
>> +&usbphy0 {
>> + status = "okay";
>> +};
>> +
>> +&usb2_0 {
>> + status = "okay";
>> +};
>> +
>> +&usbphy1 {
>> + status = "okay";
>> +};
>> +
>> +&usb2_1 {
>> + status = "okay";
>> +};
>> +
>> &usbphy2 {
>> status = "okay";
>> };
> Could you keep the USB nodes in the same order as in k1.dtsi, with
> usbphy0/1/2 first, followed by usb2_0, usb2_1 and usb_dwc3?
>
>
Will do, thanks
More information about the linux-riscv
mailing list