From 6729be3e371bdf2c044ac544015bf55e17e8a0bd Mon Sep 17 00:00:00 2001 From: Jianlong Huang Date: Wed, 10 Aug 2022 18:34:30 +0800 Subject: [PATCH] dts: starfive: Add usb device dts Add usb device dts to test usb device function Signed-off-by: Jianlong Huang --- MAINTAINERS | 5 ++++ arch/riscv/boot/dts/starfive/Makefile | 3 +- .../boot/dts/starfive/jh7110-evb-usbdevice.dts | 35 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-evb-usbdevice.dts diff --git a/MAINTAINERS b/MAINTAINERS index 12ded5cc..bafc11a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -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 +S: Maintained +F: arch/riscv/boot/dts/starfive/jh7110-evb-usbdevice.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile index ed9df6b..fc946b3 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -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 diff --git a/arch/riscv/boot/dts/starfive/jh7110-evb-usbdevice.dts b/arch/riscv/boot/dts/starfive/jh7110-evb-usbdevice.dts new file mode 100644 index 0000000..a591bec6 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-evb-usbdevice.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2022 StarFive Technology Co., Ltd. + * Copyright (C) 2022 Hal Feng + */ + +/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"; +}; -- 2.7.4