Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp638769yba; Fri, 5 Apr 2019 13:59:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcbUhehdD3uKoLCyrJUzriIiDii69bNqZ6SQ8N39cKqvXhfXoZuG5swfPZ83AbDHiiLcgU X-Received: by 2002:a63:6a42:: with SMTP id f63mr14050452pgc.207.1554497961195; Fri, 05 Apr 2019 13:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554497961; cv=none; d=google.com; s=arc-20160816; b=hOnO5A+rN3Onh6CwA95/lFatopfXs9ZnrXWUeHLyPwbGdeK0SA68zkQpR/VjAGxNm3 Ga6sfEv0KhpdMZCSo9D1/C/2tk1KI+Kb8Lgl8oycK7zZ3ZJwFfkztvaqDGsiUNCmCRrQ 4pfuXuK6YbdYNgOzyKpnx0IsVCyUymHDX1899c3/8tZn2idc7ohlnHsWuaUI36lhfL/z wCvgZQLEa19bQ3KZS03IXDtM+dKiJ76VPplU2D/xiC/FaJmquhros6IRoU+TXy6b8a8T v/BPdbNuxqJeUPwLRee3sqPUE9EV5Vk3Jmv1hFPPO2C0tClCuRxs293vVNjhf61GyHZ0 DvCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=fWoZyjvX2BxJwUp8B8RGyuSc5s1WAcnZ+2hCj+m50S0=; b=wcoXXWR+4Rf2A2aR4jTDwNk0QVkriOwX2tWP6jQ6BsPu8N1gBlIAU5BLCK36ohVS0A ibUwhjfOqWudJilNTeDFXfn13MLg8q/QHLGKCi2klc6FzHhG/yF6Yo+kXSyfmSpxSlHr ke0m86bwyAjJIB4daz+MBQHVd/70fTo1CPeaM+JxfR1s9N/xXCggxIPQmDJXCwpERV4A 72W4+zsGVepAUGNBejwUX6vAvATLEsrVfndatddC226JLTXhD0zR5w18e728mwWQh4Xm DPDGfL2oEYaPTvNc5Klsv3ucY/sSz5Co2GN/801MxiCTZCvPRqvFyloatHPCZ/hmFFhA gOjA== 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 h37si19973283plb.93.2019.04.05.13.59.06; Fri, 05 Apr 2019 13:59:21 -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 S1726684AbfDEU6K (ORCPT + 99 others); Fri, 5 Apr 2019 16:58:10 -0400 Received: from hermes.aosc.io ([199.195.250.187]:37008 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726547AbfDEU6I (ORCPT ); Fri, 5 Apr 2019 16:58:08 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id AE9FC6CDF8; Fri, 5 Apr 2019 20:58:04 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Kishon Vijay Abraham I , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v5 4/5] arm64: allwinner: dts: h6: add USB3 device nodes Date: Sat, 6 Apr 2019 04:57:35 +0800 Message-Id: <20190405205736.55177-5-icenowy@aosc.io> In-Reply-To: <20190405205736.55177-1-icenowy@aosc.io> References: <20190405205736.55177-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Chen-Yu Tsai --- No changes in v4, v5. Changes in v3: - Changed the dwc3 clock according to the user manual. - Added Chen-Yu's Review tag. arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 91fecab58836..4fcd4c0f470d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -426,6 +426,38 @@ status = "disabled"; }; + dwc3: dwc3@5200000 { + compatible = "snps,dwc3"; + reg = <0x05200000 0x10000>; + interrupts = ; + clocks = <&ccu CLK_BUS_XHCI>, + <&ccu CLK_BUS_XHCI>, + <&osc32k>; + clock-names = "ref", "bus_early", "suspend"; + 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>; + clocks = <&ccu CLK_USB_PHY1>; + resets = <&ccu RST_USB_PHY1>; + #phy-cells = <0>; + status = "disabled"; + }; + ehci3: usb@5311000 { compatible = "allwinner,sun50i-h6-ehci", "generic-ehci"; reg = <0x05311000 0x100>; -- 2.18.1