dts: starfive: Add usb device dts

Add usb device dts to test usb device function

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
This commit is contained in:
Jianlong Huang 2022-08-10 18:34:30 +08:00
parent 4ae7ec390f
commit 6729be3e37
3 changed files with 42 additions and 1 deletions

View file

@ -20836,3 +20836,8 @@ Q: http://patchwork.kernel.org/project/LKML/list/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
F: *
F: */
STARFIVE JH7110 EVB USB DEVICE SUPPORT
M: Jianlong Huang <jianlong.huang@starfivetech.com>
S: Maintained
F: arch/riscv/boot/dts/starfive/jh7110-evb-usbdevice.dts

View file

@ -10,4 +10,5 @@ dtb-$(CONFIG_SOC_STARFIVE_JH7110) += jh7110-visionfive-v2.dtb \
jh7110-evb-spi-uart2.dtb \
jh7110-evb-uart1-rgb2hdmi.dtb \
jh7110-evb-uart4-emmc-spdif.dtb \
jh7110-evb-uart5-pwm-i2c-tdm.dtb
jh7110-evb-uart5-pwm-i2c-tdm.dtb\
jh7110-evb-usbdevice.dtb

View file

@ -0,0 +1,35 @@
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2022 StarFive Technology Co., Ltd.
* Copyright (C) 2022 Hal Feng <hal.feng@starfivetech.com>
*/
/dts-v1/;
#include "jh7110-evb.dtsi"
/ {
model = "StarFive JH7110 EVB";
compatible = "starfive,jh7110-evb", "starfive,jh7110";
};
/* default sd card */
&sdio0 {
clock-frequency = <102400000>;
max-frequency = <200000000>;
card-detect-delay = <300>;
bus-width = <4>;
broken-cd;
cap-sd-highspeed;
post-power-on-delay-ms = <200>;
status = "okay";
};
&usbdrd30 {
dr_mode = "peripheral"; /*host or peripheral*/
status = "okay";
};
&pcie1 {
status = "okay";
};