Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp307904imm; Fri, 6 Jul 2018 20:40:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf9sKaoS+/g+heD3TVyv1rSZKRHAlORPzbEOW7ehlGUSXDJQ5YRODcpdXqWLmLclwLEdkcN X-Received: by 2002:a62:4808:: with SMTP id v8-v6mr12928697pfa.89.1530934814080; Fri, 06 Jul 2018 20:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530934814; cv=none; d=google.com; s=arc-20160816; b=0rChFmalGcD5BbfuxLu3eLc7eLMdNtaj79Ez7UX32TZ0OZk/xw8kOjTsnCgJeCF00e mGdhFWG2Vix7imyJcuESEra9gn/58RTY8TEwcPdp3QoqZXKFOmj+I5L0d7OJoCZwuSxY bu35Zw59pz3bB3Sccr7nmsd35Kq1qfWz0kLQl3H2rydwzzi/TrmktFsoi3Q81g1fRBag RpBcnxFpTOO2Gc4si8O7f5XlL+cZqlRdFVy0lXG2I8FX87XAHlMDswhCVS6lhzcRQAaf WeeQxK+TxZsmcVYP/A6vBulK/j97p1irJ1ZYdTxz4sPbOwttxl6U9ET4GI86mN7n+y0i 5lyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date :arc-authentication-results; bh=a5bEbVSIkrJAHmvJiYmiEghmjzUdmOtnZihB7st9zXQ=; b=DqkYCnvtzCC4RwhF38uLjq9BpNWugRGjcMygjjQ2uheckdtWl7eCUS3EhvF6B+5pYT bfY3qKmIpxVW18RhIqn+YG0gSUe4aIXKHeMJomXjGpFsGaszf652prWm7CK9YWj1QkQT UeU9kVoxOJJKMhINGax0LNPQfQfMgGicuQyuyGU/ELuzAJEe9lWrTivXtdzIybVjG0w4 ufCH6j4PgkmAh/DEA+txylE3QNFsv6Q1xKwBXYlf4NhgLCoqRek0FbvvzWjJ1hz90huP r7Iarb7Zc1DxtFj7zpxp6ubBri481bxnQHSmIsxAFye+KJMmRxMIaortTGvBpQpVAQ8j 28BQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4-v6si9333450pfh.256.2018.07.06.20.39.59; Fri, 06 Jul 2018 20:40:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932810AbeGGDiE convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 Jul 2018 23:38:04 -0400 Received: from hermes.aosc.io ([199.195.250.187]:45329 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932635AbeGGDiD (ORCPT ); Fri, 6 Jul 2018 23:38:03 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 25E4964376; Sat, 7 Jul 2018 03:37:58 +0000 (UTC) Date: Sat, 07 Jul 2018 11:37:52 +0800 In-Reply-To: References: <20180706153805.25842-1-icenowy@aosc.io> <20180706153805.25842-9-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [linux-sunxi] [PATCH v2 8/9] arm64: allwinner: dts: h6: add USB3 device nodes To: Chen-Yu Tsai CC: Rob Herring , Maxime Ripard , Kishon Vijay Abraham I , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi From: Icenowy Zheng Message-ID: <76682488-74B8-4CEE-ACD5-29C667C438AE@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2018年7月7日 GMT+08:00 上午11:35:22, Chen-Yu Tsai 写到: >On Fri, Jul 6, 2018 at 11:38 PM, Icenowy Zheng wrote: >> Allwinner H6 SoC features USB3 functionality, with a DWC3 controller >and >> a custom PHY. >> >> Add device tree nodes for them. >> >> Signed-off-by: Icenowy Zheng >> --- >> Changes in v2: >> - Rebased on top of the USB2 support patch. >> - Dropped the dwc3-of-simple device. >> >> arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 24 >++++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi >b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi >> index 62fc0f5e10ba..6738e97ee37f 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi >> @@ -229,6 +229,30 @@ >> status = "disabled"; >> }; >> >> + dwc3: dwc3 { >> + compatible = "snps,dwc3"; >> + reg = <0x5200000 0x10000>; >> + interrupts = IRQ_TYPE_LEVEL_HIGH>; >> + /* The only clock is shared. */ >> + clocks = <&ccu CLK_BUS_XHCI>, >> + <&ccu CLK_BUS_XHCI>, >> + <&ccu CLK_BUS_XHCI>; >> + clock-names = "ref", "bus_early", "suspend"; > >The diagram in the user manual also shows the low speed 32k oscillator >being fed into DWC3. Maybe someone with more knowledge of what the IP >block expects can give us a clue about which one of these it is. If possible, I think it's suspend clock. I have checked RK3399 clk tree and USB3 ref is just a gate on 24M osc, and bus clock is surely CLK_BUS_XHCI. > >ChenYu > >> + resets = <&ccu RST_BUS_XHCI>; >> + /* >> + * The datasheet of the chip doesn't declare >the >> + * peripheral function, and there's no boards >known >> + * to have a USB Type-B port routed to the >port. >> + * In addition, no one has tested the >peripheral >> + * function yet. >> + * So set the dr_mode to "host" in the DTSI >file. >> + */ >> + dr_mode = "host"; >> + phys = <&usb3phy>; >> + phy-names = "usb3-phy"; >> + status = "disabled"; >> + }; >> + >> usb3phy: phy@5210000 { >> compatible = "allwinner,sun50i-h6-usb3-phy"; >> reg = <0x5210000 0x10000>; >> -- >> 2.17.1 >> >> -- >> You received this message because you are subscribed to the Google >Groups "linux-sunxi" group. >> To unsubscribe from this group and stop receiving emails from it, >send an email to linux-sunxi+unsubscribe@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout.