From owner-freebsd-arm@freebsd.org Wed Aug 14 20:59:13 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 E4D0CBB530 for ; Wed, 14 Aug 2019 20:59:13 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (smtp.fgznet.ch [IPv6:2001:4060:1:1001::14:53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46824x0LT8z3yrt for ; Wed, 14 Aug 2019 20:59:12 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from [192.168.225.14] (dhclient-91-190-10-49.flashcable.ch [91.190.10.49]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPSA id C7FD6C0CB1; Wed, 14 Aug 2019 22:50:59 +0200 (CEST) Subject: Re: USB 3.0 support for Rockchip RK3328 To: Denis Polygalov Cc: freebsd-arm@freebsd.org References: <20190812171248.4af265a7bd48056407f796d6@bidouilliste.com> <27a49a3c8a6e2029d696b359bed47ee3@unrelenting.technology> From: Andreas Tobler Message-ID: Date: Wed, 14 Aug 2019 22:50:56 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit X-Scanned-By: Obelix Submit on 127.0.1.1 X-Rspamd-Queue-Id: 46824x0LT8z3yrt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of andreast-list@fgznet.ch designates 2001:4060:1:1001::14:53 as permitted sender) smtp.mailfrom=andreast-list@fgznet.ch X-Spamd-Result: default: False [-2.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[49.10.190.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:4060:1:1001::/64]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[fgznet.ch]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.30)[-0.305,0]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.00)[country: CH(0.01)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6772, ipnet:2001:4060::/32, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(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: Wed, 14 Aug 2019 20:59:14 -0000 On 14.08.19 15:04, Denis Polygalov wrote: > After application of this patch: > https://patchwork.kernel.org/patch/10853381/ > and recompiling kernel I got this in dmesg: > > # dmesg | egrep 'usb|dwc|USB' > dwc0: mem 0xff540000-0xff54ffff > irq 43 on ofwbus0 > miibus0: on dwc0 > dwc0: Ethernet address: 82:d6:05:ce:da:87 > dwcotg0: mem > 0xff580000-0xff5bffff irq 45 on ofwbus0 > usbus0 on dwcotg0 > usbus1 on ohci0 > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 12Mbps Full Speed USB v1.0 > ugen1.1: at usbus1 > uhub0 on usbus1 > uhub0: on usbus1 > ugen0.1: at usbus0 > uhub1 on usbus0 > uhub1: on usbus0 > Root mount waiting for: usbus1 usbus0 > dwc0: link state changed to DOWN > dwc0: link state changed to UP > > but no response to connection of any USB device. > Also I noticed that 'gpioctl -f /dev/gpioc4 26 1' > make sense only for ROCKPro64 which is not what I have: > > # ls /dev/gp* > /dev/gpioc0 /dev/gpioc1 /dev/gpioc2 /dev/gpioc3 > > 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 Andreas