From patchwork Mon Aug 17 03:11:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: travelvia@airmail.cc X-Patchwork-Id: 11716359 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7286C15E6 for ; Mon, 17 Aug 2020 03:12:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 4D0602063A for ; Mon, 17 Aug 2020 03:12:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MEmtOBHN"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=airmail.cc header.i=@airmail.cc header.b="FITC302A" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D0602063A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=airmail.cc Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1dMc6iO+KmhAj2h4rAybrMS5jG2FAnmpWDdTNIZcWkI=; b=MEmtOBHNnyA+2eQrHxLv/v3CwG oUJAgCRRPKRN+xq2pCtoEzgXpmwZqtEdj/KUokuLyjv9mFQlG6p3GbbGK9ZHVPjMYFsBOKyViY/nq jm+SITZqP4mA1JD+CBcRRbZbGq0uKCsS1hI4erUaf4ANRt3dUb6QzCdOUzu1wH4i9cqoLeGnL3qvC ZBTBYB4fjCfg+A4vVwy6kVbB3ppqWS7ksPAOm2TRuFvJp9wu5R5qkhQd8EeEdcV6WrerLuuo+jrCZ xzjrbujVspXahpybeTh4oVCE8oqy11Ek0JG+Ky4pfq8PjsXaQhi5v4esVkA5/btPRvG5nuzenX+hZ CapSSEug==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7VZ1-0008Gr-Un; Mon, 17 Aug 2020 03:11:59 +0000 Received: from mail.cock.li ([37.120.193.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7VYy-0008Fx-Fy; Mon, 17 Aug 2020 03:11:57 +0000 From: travelvia@airmail.cc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1597633912; bh=UgOM+roZXfnn3lqaoJqMtjxXynnikZ73M0zwtTekzb8=; h=From:To:Cc:Subject:Date:From; b=FITC302A6XEn3KLsnE0als8YvtmvTH9gaWq8D+yoTYpqL0sL8qod1uMHBOS68oUyn YNENuucirO/kIMdmU3YzKhKxaA03N1OKJDUcAzbJvEjR9dp3/QYhyX///eWrqBiqJZ iPS0Z2QurYYQD59uXsVSA28pMzvKPYwJvg+bkkLE6V/2/q+d5MeTK9MZrFhSx607Yv 71jHOZobI3lvvqnyyW00MbNMQkPzn3jO90t98SITd9/SrnEkBh/giL2ERLfy9/w3P6 HNLCrxWM3wBAzAoD4JsA+Ky98eeUzTuRaTRlrDc+srCRDhk086vnTQeqZJLVzASzhM 25RG61LJ2N46A== To: robh+dt@kernel.org, heiko@sntech.de, balbi@kernel.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 1/4] Documentation: bindings: usb: add rk3328 dwc3 docs Date: Sun, 16 Aug 2020 20:11:11 -0700 Message-Id: <20200817031114.6107-1-travelvia@airmail.cc> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200816_231156_857833_68D91FF3 X-CRM114-Status: GOOD ( 10.23 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cameron Nemo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Cameron Nemo Document compatible for dwc3 on the Rockchip rk3328 platform. Signed-off-by: Cameron Nemo --- Documentation/devicetree/bindings/usb/dwc3.txt | 1 + Documentation/devicetree/bindings/usb/rockchip,dwc3.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index d03edf9d3935..d625cd5966e9 100644 --- a/Documentation/devicetree/bindings/usb/dwc3.txt +++ b/Documentation/devicetree/bindings/usb/dwc3.txt @@ -25,6 +25,7 @@ Exception for clocks: "ti,am437x-dwc3" "ti,dwc3" "ti,keystone-dwc3" + "rockchip,rk3328-dwc3" "rockchip,rk3399-dwc3" "xlnx,zynqmp-dwc3" diff --git a/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt b/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt index 94520493233b..b41f30a61be6 100644 --- a/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt +++ b/Documentation/devicetree/bindings/usb/rockchip,dwc3.txt @@ -1,7 +1,8 @@ Rockchip SuperSpeed DWC3 USB SoC controller Required properties: -- compatible: should contain "rockchip,rk3399-dwc3" for rk3399 SoC +- compatible: should contain "rockchip,rk3328-dwc3" for rk3328 SoC + or "rockchip,rk3399-dwc3" for rk3399 SoC - clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock-names - clock-names: Should contain the following: From patchwork Mon Aug 17 03:11:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: travelvia@airmail.cc X-Patchwork-Id: 11716357 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8A9CE913 for ; Mon, 17 Aug 2020 03:12:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 642BB2063A for ; Mon, 17 Aug 2020 03:12:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xRBADLnz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=airmail.cc header.i=@airmail.cc header.b="DpMDMhi+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 642BB2063A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=airmail.cc Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QYk/J7qZM6o9t0JKUgkC9lPPV3XktEEaKT/Ltv6GDRE=; b=xRBADLnzYZakCe6eyL5XPEQuq ehSWE7AB3o2m4OO3dBuQ9D2ZcjINLZ4qEF0eoXW/VEUrA9VCWFFd9kPV/zR9VDROdpTZO1IgzF89u oskzMm0kvo1Lt7OHjq1ce7qBe2F0VlhR8Rmwn+AvBHv+EQI+z7v2JdAbocqxHMPLCSf2bTg1JWXgO bL+hz6CKZqngy5l2UO6kMoAGPwj0PwcAZiaaGZweDlS06ElXDzomERq8KYZ726ub/WHxy0qmu59Hj VhP8FCAic/HiMvc7jrJhbhHSfzAeA7TbR2jbPcoHCKrWNpCG/sPVYt2PK265gB47JbC6YObfp+9lt kkD2f+kMg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7VZ5-0008Hv-4g; Mon, 17 Aug 2020 03:12:03 +0000 Received: from mail.cock.li ([37.120.193.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7VZ1-0008Gq-Ty; Mon, 17 Aug 2020 03:12:01 +0000 From: travelvia@airmail.cc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1597633918; bh=B2/pG96q5fjDlAD3MWBfACLsVnRmGQD6Zy1Yw/gvRv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DpMDMhi+CKpv3Aj3+eu4JHxq2yuf2gyHNC5wrG8+6R+EkGEHla9WiX8lrx6qzeQS3 pQqXO4FlTUOEwYVB8mz/LLuJJRX5OliG9YLPcd4FZA888/qnbCsGClm8KSFN9NaYL9 sAwisY87vwcY0vHQ+oqipDAu//Snh39Q6ljyz5Qc3rxZRKf8utAw1LVVA8NzfCwKtz Su4h3guxmp8UNz4gWRTndzYwpsusWlEr2Q21sAQoEKvNOKMCrd/8B6FyZLNv4y3vMG wRZU/024shTbBCXnFJi3oN+a7luGl+UmumRzqcIxj0ysGJVZVBfsX8cTSTV/JcY+Gw KIU3n6hC3tpGg== To: robh+dt@kernel.org, heiko@sntech.de, balbi@kernel.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 2/4] usb: dwc3: of-simple: Add compatible for rk3328 Date: Sun, 16 Aug 2020 20:11:12 -0700 Message-Id: <20200817031114.6107-2-travelvia@airmail.cc> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817031114.6107-1-travelvia@airmail.cc> References: <20200817031114.6107-1-travelvia@airmail.cc> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200816_231200_184018_9F3D797C X-CRM114-Status: GOOD ( 14.51 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cameron Nemo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Cameron Nemo Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future, and old device trees must remain compatible with newer kernels. Signed-off-by: Cameron Nemo --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 7df115012935..68d6e4fa0c6a 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -49,7 +49,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) * Some controllers need to toggle the usb3-otg reset before trying to * initialize the PHY, otherwise the PHY times out. */ - if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) + if (of_device_is_compatible(np, "rockchip,rk3328-dwc3") || + of_device_is_compatible(np, "rockchip,rk3399-dwc3")) simple->need_reset = true; simple->resets = of_reset_control_array_get(np, false, true, @@ -171,6 +172,7 @@ static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = { }; static const struct of_device_id of_dwc3_simple_match[] = { + { .compatible = "rockchip,rk3328-dwc3" }, { .compatible = "rockchip,rk3399-dwc3" }, { .compatible = "xlnx,zynqmp-dwc3" }, { .compatible = "cavium,octeon-7130-usb-uctl" },