From owner-freebsd-arm@freebsd.org Thu Aug 15 12:33:12 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 134A1CFF4F for ; Thu, 15 Aug 2019 12:33:12 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 468Qpb1g5Bz3Jgm for ; Thu, 15 Aug 2019 12:33:10 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: by mail-pf1-x444.google.com with SMTP id 129so1280141pfa.4 for ; Thu, 15 Aug 2019 05:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=eT39nSVTxGBkJT3q2whzI8WQZOHL4TyAfTX1GK36RLY=; b=AEy5t+jTusdy5GSumSLaxc4z+j3UXggB58w+Ua56SJ/NvykSQbog05YTxThLM12KbX pqFqq+4fD5aRMOaIEjiMXgLCPCSVeqohk7lB876oXXd82H2bLv7Y3GBS8WZsYJBlu+RP A36FhK0AhmAFnBfYkzBMgD/ppVl3mRmJ00M/+8HG3JBm2rI2KzEWaVmZ0bCv6YtT+sW9 X+85+x+DNgpad5fTFrkNYAwBQ0gTT0GvDO83SzgkUh9PbxTP8Li30Ua+V10MtJooWivl B73RgYOhZ7bxTFnRovnMMWKrKTx5tahRsZNtAKizgGUpHcJOzkKR4S0OX7lr/R6R65ie DpkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=eT39nSVTxGBkJT3q2whzI8WQZOHL4TyAfTX1GK36RLY=; b=VoL+t43cPan1D1T3F3kjhiqUCTZ1Ury9+3gwzqo51RtNkcIjYggg0sNg6AzHwRYTTY LONqywHxUwavH2ZL66u3DEqSqv4wc3cNFrycgnYhFzaxQLeEA14klp9ARNlHZ43HPiX8 xH2wYcmXIdmUY/A+FYXvL+ztI1dwHUNmUf4zbrpFH53ob1VUFEdcMtJOXdXxBaExf+87 jkvoX4H1YznkJSCVgq3ExbnH8TmZPEh2FTMpdgiIQPRcZzOQpaC4bZYNiaYGyKzTRVKZ O2cx+oEBYVHksNvJux9ALDilsdZUN5wnIfuVHRJX/BAoi7MhcEm2J6qIU0b8Z8rlt9dI l6HQ== X-Gm-Message-State: APjAAAXq074QTU0GadGCbw+QjbqI2e3egLjEw/yjHu8IrGjpJ4JtRtj5 yhBaAaweCtUteeDejvlzIumVK7fK X-Google-Smtp-Source: APXvYqxW0+NPxXJg3//9P1EHVzrmFPMev7MJn92cT3m5Xmxz8OM0l6hUxnu7g0tZA8P1S1CS5t1Aiw== X-Received: by 2002:a17:90a:be06:: with SMTP id a6mr2047913pjs.92.1565872389727; Thu, 15 Aug 2019 05:33:09 -0700 (PDT) Received: from [192.168.1.100] (ngn6-ppp1221.tokyo.sannet.ne.jp. [157.192.84.205]) by smtp.googlemail.com with ESMTPSA id u128sm2766631pfu.48.2019.08.15.05.33.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Aug 2019 05:33:08 -0700 (PDT) Subject: Re: USB 3.0 support for Rockchip RK3328 To: freebsd-arm@freebsd.org References: <20190812171248.4af265a7bd48056407f796d6@bidouilliste.com> <27a49a3c8a6e2029d696b359bed47ee3@unrelenting.technology> From: Denis Polygalov Message-ID: Date: Thu, 15 Aug 2019 21:33:04 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; 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: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 468Qpb1g5Bz3Jgm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=AEy5t+jT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dpolyg@gmail.com designates 2607:f8b0:4864:20::444 as permitted sender) smtp.mailfrom=dpolyg@gmail.com X-Spamd-Result: default: False [-3.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.995,0]; RECEIVED_SPAMHAUS_PBL(0.00)[205.84.192.157.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-0.24), ipnet: 2607:f8b0::/32(-2.96), asn: 15169(-2.38), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[4.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] 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:33:12 -0000 >> >> 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)... :( Regards, Denis.