Received: by 10.192.165.148 with SMTP id m20csp3210128imm; Mon, 7 May 2018 08:26:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpOxb1F7+1I4fVf/xNbpskCuDNus27HvFy7F9tq2LbXysTKpvZAgDr1ybrZ/2GmvthVd1Rs X-Received: by 2002:a6b:3708:: with SMTP id e8-v6mr40837653ioa.69.1525706776426; Mon, 07 May 2018 08:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525706776; cv=none; d=google.com; s=arc-20160816; b=ueB6qcr/kv5mMidYhBTHr7ng7oCqLohU5jAwn5zqi734QVXeiL3qgkAClYZtFbvhgG 4dqQIhohNd+M+NwJSXDESc7pmKkIezVo7LMqjbTmhp84caNdn/cLhOZlRBoGkSTNFiOG 6a26X7pDTi6Z4Kk2Zl+2cX2gjh+OaRsZB6OlNbQb+/Zu/Vq8vSJEznMJP4LKoVYBhe76 wKFhh6taVLsoQpGcjZQQVi5ENYs7hOulxES5XutE0l4jakhoK7x5PhB18FNU6FeOpEyb LWapLiMIVKxxo5hPlayKSbCrtCG9hTVgSrTVbxSFiEXbn2UXwK1iTKgPHGhLPygHkxvj vHrg== 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:arc-authentication-results; bh=J9Q9ScmECBNC6QhDoQ2oV6WJvxVr2TehilHJiFkJ21E=; b=TtwW1IzTh5aPqfQUEUc8vlHI6WgS5dty3qTuutYujZhr/DUP1RkDd/3teFEwQQy+Co edVZUZHieiPhEvaEvOmb5KkdIO8kQT3SvIzpkDv8BCOrFX3DrMqm2erWeMKG3uBKqsQ0 BoVTnydXdsp523IuJC+xXphd2bX1kUNXNboo3AkOKkb8nSytvpAgpq0B3t2Upa/SPRGs jCZx3vn9BTInVg60iPS94pZq/gDxde5getbhPY8woena8vxpXJR8QM7m0dZwz0KKw+kq SO4Eq88Z7WI4KhTc6rPPQCLjMVwguPB0XWpyvWyF7xU76q7veyaXRkqnS6Xsmc6dXUYY gbeA== 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 w88-v6si20393768ioi.185.2018.05.07.08.26.03; Mon, 07 May 2018 08:26:16 -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 S1752535AbeEGPZl (ORCPT + 99 others); Mon, 7 May 2018 11:25:41 -0400 Received: from hermes.aosc.io ([199.195.250.187]:48574 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860AbeEGPZi (ORCPT ); Mon, 7 May 2018 11:25:38 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 9BCD44FF4D; Mon, 7 May 2018 15:24:34 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Greg Kroah-Hartman , Kishon Vijay Abraham I , Felipe Balbi Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH 4/5] arm64: allwinner: h6: add USB3 device nodes Date: Mon, 7 May 2018 23:18:16 +0800 Message-Id: <20180507151817.55663-5-icenowy@aosc.io> In-Reply-To: <20180507151817.55663-1-icenowy@aosc.io> References: <20180507151817.55663-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 --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index c72da8cd9ef5..9564c938717c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -174,6 +174,44 @@ status = "disabled"; }; + usb3: usb@5200000 { + compatible = "allwinner,sun50i-h6-dwc3"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&ccu CLK_BUS_XHCI>; + clock-names = "bus"; + resets = <&ccu RST_BUS_XHCI>; + reset-names = "bus"; + status = "disabled"; + + dwc3: dwc3 { + compatible = "snps,dwc3"; + reg = <0x5200000 0x10000>; + interrupts = ; + /* + * According to Wink from Allwinner, the + * USB3 port on H6 is not capable of OTG; + * the datasheet doesn't mention OTG at all + * either, so the dr_mode is default to + * "host" here. + */ + 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"; + }; + r_ccu: clock@7010000 { compatible = "allwinner,sun50i-h6-r-ccu"; reg = <0x07010000 0x400>; -- 2.17.0