From owner-freebsd-arm@freebsd.org Thu Aug 15 12:51:16 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0225A8670 for ; Thu, 15 Aug 2019 12:51:16 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 468RCR4GJJz3KWc for ; Thu, 15 Aug 2019 12:51:15 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id a1f303b6; Thu, 15 Aug 2019 14:51:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=CvbBn/LnV7zEjN6YNJYFxZ8d60s=; b=h/qB00i9CcQKOQANstN3qaIDhjMx 5XKewiYwJfVN8Kd4vG+y2TaVRGRBa0DGd9Za5qFQLPQ4lN5R3OKF730swL7XmO3b 2tvGhTiB+zHdOJ/bZwL6YLiuOpmSiMGJu2R20kKxF6mpxeJRfXHMQpPa9BYf13LN TXrpzIDsVOd5+BU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=eSWVARemw47KT6KTM3RPmiLN6WAU2y/MKb33pfmqT8sMbJZF3BZwgoA7 5sm0dh0zFWDW9QU+j34LQHu8NqS49d3V6lcUQdPG/vWxWzvJjIVuGRbnJ8yHhxVZ i1x/hJX/orGnnCIHKX6hyca/grXTWG1vRBVb+MnrpaY90MzA6Fw= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 270b6b07 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 15 Aug 2019 14:51:13 +0200 (CEST) Date: Thu, 15 Aug 2019 14:51:13 +0200 From: Emmanuel Vadot To: Denis Polygalov Cc: freebsd-arm@freebsd.org Subject: Re: USB 3.0 support for Rockchip RK3328 Message-Id: <20190815145113.7eec5d01930c308b1839d5f8@bidouilliste.com> In-Reply-To: References: <20190812171248.4af265a7bd48056407f796d6@bidouilliste.com> <27a49a3c8a6e2029d696b359bed47ee3@unrelenting.technology> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 468RCR4GJJz3KWc X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=h/qB00i9; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.49 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.97)[-0.968,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.98)[-0.976,0]; NEURAL_SPAM_SHORT(0.01)[0.005,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.35)[ip: (-0.90), ipnet: 212.83.160.0/19(2.56), asn: 12876(0.09), country: FR(-0.01)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Aug 2019 12:51:16 -0000 On Thu, 15 Aug 2019 21:33:04 +0900 Denis Polygalov wrote: > > >> > >> Is there some similar magic command to turn on USB parts on ROCK64? > > > > With the latest u-boot-rock64 from ports: > > > > gpioctl -f /dev/gpioc0 2 0 > > > > Thanks, I noticed that this command actually turn on USB 2.0(!) > ports on my ROCK64 board. USB 3.0 still does not work. > > > That's not it, that's 2.0, not xhci. Make sure you have the 3.0 node in the device tree. > Yes, I'm agree that was 2.0. But I'm also sure that I have the patches > applied properly and also I can see entries from these patches in the > nfsroot/boot/dtb/rockchip/rk3328-rock64.dtb file after compilation. > > I also noticed that for ROCKPro64 (RK3399) USB 3.0 node is already > included into FreeBSD source tree. Here: > https://github.com/freebsd/freebsd/blob/ea36ac604737d55bb248babf59633f67f770bab5/sys/gnu/dts/arm64/rockchip/rk3399.dtsi#L391 > > Which means (this is my naive speculation) that this patch: > > https://reviews.freebsd.org/D19335 > > is actually works only for RK3399 (ROCKPro64) > despite "RK3328" included in it's title. > > and using the D19335 + this patch: > http://lkml.iu.edu/hypermail/linux/kernel/1708.2/01066.html > > is not enough to make USB 3.0 work on ROCK64 (RK3328)... :( That's because the patch isn't enough, it only worked on RK3399 because u-boot enabled the phy and the clocks etc ... thing that isn't done in the patch. > Regards, > Denis. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot