From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FB44C433ED for ; Wed, 21 Apr 2021 04:30:40 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9557061415 for ; Wed, 21 Apr 2021 04:30:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9557061415 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VY7CK74FFA4bFGp0FcunKt9IRAUjZyTXS0lJcBnZx8c=; b=SzdRIUeuyDf8VnZmLm9akFAmZ oyl4lLKZzuhC3Ey+mWyNlOi08z+ZNbGTwPzcs/PPdCD/gvir9EuB02Y9JR1J9rZwt1lKGixDUxZLa 1OsTqgw3m5mjxlIPcsLmmZKNmLOhLKliWLfdwE/tGQPH7+j/nbfOgmxeJlXXvrrc/f4CbTGnYM3Qi 3MkS/M25YqEF1CVg6JEU7C063AlbY32cKrawSZZvnGK5cwGTaJYRHMgFT4XPVMQ+NKfjVFf5doQug wu4zKM6ESH3jg2I91Cox/yABOwiuBzkvo//tnRGScjlWhlDEfVmElyewMKao0WFBJORqMRI7OK8EH hZA5WxOww==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZ4Tq-00DcqU-Lf; Wed, 21 Apr 2021 04:28:50 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZ4To-00DcqI-CY for linux-arm-kernel@desiato.infradead.org; Wed, 21 Apr 2021 04:28:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=7ftHhxVB5eXELG1y8+aU0dRkGQEOD2zNCoIhNhEyKAw=; b=h+4WdoMOv6DOZ//6yZAhoIJPCJ RkkGgADoo8tyM1U6i4YC6D0cU+8VNiJ7SU8doT83vlDwRiaV25p5lnAH4TfKplzJZnLxdwUTmCEq5 /qYtHMY3Ov75Em7JmxGkD/sqt4l/K7qZLdffWC/TjnLGHQaiPvTpoCDlWYiglSJMb6BivFiFL6yp/ OoTGShGneHnPSwFtF+3eL8KLcIJ5eCbMgFm+9jU8UjT/rHss5+nVE+lPqaXJxze3RAXuN3zm5lptM akzqJKxun2eK12VM2DwbFupaihTXprRiqbkN9DH1hRwVilIvpTjHkaZiN+FgY+xuo17gUKY0e3gIm y0moaxRg==; Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZ4Tj-00CaY2-Ir for linux-arm-kernel@lists.infradead.org; Wed, 21 Apr 2021 04:28:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 18C0B580E2F; Wed, 21 Apr 2021 00:28:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 21 Apr 2021 00:28:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=7ftHhxVB5eXEL G1y8+aU0dRkGQEOD2zNCoIhNhEyKAw=; b=QWwdL+2L5oBlgMrit6PZ9xAdPLH+K jMt/UcIRg77wRDPDvyiB5MkV4B9o4CV/Wux4jks2GUbrQKx4HxcDFgK4kDw/pZTf XP9lxzECFOve6GRnMDNEuOFSJwRp4INtexB6j72B/c2bVLp7sh/35/wRzTSwJiuV ivh2DV9npRPD/H1azYj/cDSsNRkchPQwuMTNLF3fl6NaBk6Q8DJPHDvVSeWQWn4i rA4NHuWQ8ln0nK7VNGD/ZzfZ1zn46AeumnuqKAKmV+HgXRAx+1EAJZc0RRvetlgZ nR/9qtZhWwu+E5iwhKVk+f2AQ5P+8YVgMKxlyitYAl0EzMmdnm6RWfwjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=7ftHhxVB5eXELG1y8+aU0dRkGQEOD2zNCoIhNhEyKAw=; b=W6J1FID5 d9IiiDxATMQY1qGxuDlSmfTtPe6r7g2KZukdJZ0A/KWWE9sajIfC6vgiA8o2soRN QYWAy7O9y/8K8t4QDEro7VESCDWI3eMxDc9rTTHRlqh8owScdrfeXDEAle67tO8e 8fnxML2qQV1Clu3qS7t1p128TUTdZL1UmT3u7lsTrkkqdz7cJGK+gfmhjlKSN6ry psDPqJFesUyHD5XWmQ2Ata83+W0ZMA+0IhyS38ITrI57YHlwY9L5pcz8y4yFLeJV sU+1E5C+fRJoalE8SRUPuQPItcF0xmd7tYDMZ1hdlDmAmOmcLhIyJ1tPR3Qfagj+ 05HTQTt7T7HnpQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtjedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeelueelgeettdfggfeuffevkefhuddtteeigfevhfdtffdtjefgteeg leeggedvudenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecukfhppeejtd drudefhedrudegkedrudehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A6AD240066; Wed, 21 Apr 2021 00:28:36 -0400 (EDT) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Andre Przywara , Greg Kroah-Hartman , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Samuel Holland Subject: [PATCH 1/2] dt-bindings: usb: Document the Allwinner H6 DWC3 glue Date: Tue, 20 Apr 2021 23:28:33 -0500 Message-Id: <20210421042834.27309-2-samuel@sholland.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210421042834.27309-1-samuel@sholland.org> References: <20210421042834.27309-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_212843_707652_D6BC8985 X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The RST_BUS_XHCI reset line in the H6 affects both the DWC3 core and the USB3 PHY. This suggests the reset line controls the USB3 IP as a whole. Represent this by attaching the reset line to a glue layer device. Signed-off-by: Samuel Holland --- .../usb/allwinner,sun50i-h6-dwc3.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/allwinner,sun50i-h6-dwc3.yaml diff --git a/Documentation/devicetree/bindings/usb/allwinner,sun50i-h6-dwc3.yaml b/Documentation/devicetree/bindings/usb/allwinner,sun50i-h6-dwc3.yaml new file mode 100644 index 000000000000..86efd6d21ab4 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/allwinner,sun50i-h6-dwc3.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/allwinner,sun50i-h6-dwc3# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner H6 DWC3 USB controller + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +properties: + compatible: + const: allwinner,sun50i-h6-dwc3 + + "#address-cells": true + + "#size-cells": true + + ranges: true + + resets: + maxItems: 1 + +# Required child node: + +patternProperties: + "^phy@[0-9a-f]+$": + $ref: allwinner,sun50i-h6-usb3-phy.yaml# + + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + +required: + - compatible + - ranges + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb3: usb@5200000 { + compatible = "allwinner,sun50i-h6-dwc3"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + resets = <&ccu RST_BUS_XHCI>; + + dwc3: usb@5200000 { + compatible = "snps,dwc3"; + reg = <0x05200000 0x10000>; + interrupts = ; + clocks = <&ccu CLK_BUS_XHCI>, + <&ccu CLK_BUS_XHCI>, + <&rtc 0>; + clock-names = "ref", "bus_early", "suspend"; + dr_mode = "host"; + phys = <&usb3phy>; + phy-names = "usb3-phy"; + }; + + 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>; + }; + }; -- 2.26.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel