From patchwork Tue Dec 17 07:57:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akash Gajjar X-Patchwork-Id: 11296987 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 5C99F112B for ; Tue, 17 Dec 2019 07:59:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3441121739 for ; Tue, 17 Dec 2019 07:59:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="regIDkWa"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=openedev.com header.i=@openedev.com header.b="b1T/pbK6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3441121739 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=openedev.com 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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=N+KyxHPmSuOCFnhaXA4Ivc+8yjijAdcjMXpO1GEGWw8=; b=regIDkWahsb8prqsIFVfK/7iwZ sS5meu1AIjgjW3OzOQCxZrjgCIvBoKx469KZm6X9W6g2UPJZFD8J3VlJh1Ts5g12FfD4AQWNA/wi1 aPFyhfWCyVHgppy5u6/EDCFYp9Y1krRe2lAcFCH1QTdt26C3CetGg+moUdIJIBc9T3OL10/rzGRE3 pC6wP1lt9ldyh90osnsSmqulqGq0gsOALl57+hzug1QeOinI7FHwHDilsPmDMHaaD/El0HHi4qBu+ v5+sLzWgNpryOa7HzgwUnsPjkXHcWLZNt0w/4liTOkVKHcGoUXxFFT85yP2AEI/swa9EDeWSkNRTb j7iAmKJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ih7lG-00011D-Hb; Tue, 17 Dec 2019 07:59:18 +0000 Received: from se14o.web-hosting.com ([198.54.122.232]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ih7lD-0000zu-BY; Tue, 17 Dec 2019 07:59:16 +0000 Received: from [68.65.123.203] (helo=server153.web-hosting.com) by se17.registrar-servers.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1ih7kq-0001qs-Vx; Mon, 16 Dec 2019 23:59:03 -0800 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=openedev.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=R87a5RKkPMIXSDaMNn8B5V31G8d9qxBmgAHocZfiGXE=; b=b1T/pbK6+PUKG4pumNpmxYKYL 7CCgmSqVSwcxKOwKi968iCUa6Bi+i/iFRtctA8YHkU1ghnoWBT9BCHt42LAPYE5UJ6cgsSwAtXcZt 2awgCvs/12QVwTyXyu0o70mrLRHUoXoB5trLPd1sSA4YviuYORcv87h4YfFtM7gFSrm3g6VFZH621 m5bTd53otp5FqRxjfqRBRq14m33BXqtUCSpK+qYqEIvbtGCmxHIEaxBHk71XCO/wzpCdPy3lYgXVb 5TVVWJ9utg886vf45jnowyLI832oBKmrGrQKtkH9LpLj/La1Dcn5JuGxXXM1874qAbZnSmSxpy1BK QjUFNQecw==; Received: from nat-inn.mentorg.com ([192.94.34.34]:44656 helo=akash-vm.inn-wifi.mentorg.com) by server153.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1ih7kj-003CWq-Tv; Tue, 17 Dec 2019 02:58:50 -0500 From: Akash Gajjar To: heiko@sntech.de Subject: [PATCH 1/2] arch: arm64: rockchip: add usb node for RK3308 Date: Tue, 17 Dec 2019 13:27:14 +0530 Message-Id: <20191217075722.11646-2-akash@openedev.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191217075722.11646-1-akash@openedev.com> References: <20191217075722.11646-1-akash@openedev.com> X-OutGoing-Spam-Status: No, score=-0.5 X-Originating-IP: 68.65.123.203 X-SpamExperts-Domain: nctest.net X-SpamExperts-Username: whmcalls3 Authentication-Results: registrar-servers.com; auth=pass (login) smtp.auth=whmcalls3@nctest.net X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.02) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0c2Pj46HODYmpAMVAv0J1pOpSDasLI4SayDByyq9LIhVkl0/6mQtv7IQ 5XyI/N9/JkTNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3Kk502M/hntTzIKfCMISdhHQGg t7nAtP8WjkKKy9v/mXRkty7kshl0qfjNTiHz6D+lTs1OFZCJnqICuBP35KwNAmisedSHrV8USIJy ZKu4Q0eBPJf4fBJswECxJoMRbkC3SF2DuTVJlHUR2BtY80W8dG60QfvEMzMeJ6Rw9B2oZpcFefeT nKVTea+Z7p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TjTyP2j0DLjHCOlbYrvqvTn3lmAWHSgj8REt1LPAYpi/k8cuog== X-Report-Abuse-To: spam@se16.registrar-servers.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191216_235915_398743_AE16A64A X-CRM114-Status: GOOD ( 11.86 ) X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -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 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: Mark Rutland , devicetree@vger.kernel.org, tom@radxa.com, linux-kernel@vger.kernel.org, kever.yang@rock-chips.com, Kishon Vijay Abraham I , linux-rockchip@lists.infradead.org, Rob Herring , Akash Gajjar , Andy Yan , jagan@openedev.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add the ehci/ochi usb node support for the RK3308 soc. Signed-off-by: Akash Gajjar --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index 8bdc66c62975..4e51362b5373 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -243,6 +243,33 @@ status = "disabled"; }; + usb2phy_grf: syscon@ff008000 { + compatible = "rockchip,rk3308-usb2phy-grf", "syscon", + "simple-mfd"; + reg = <0x0 0xff008000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + u2phy: usb2-phy@100 { + compatible = "rockchip,rk3308-usb2phy"; + reg = <0x100 0x10>; + clocks = <&cru SCLK_USBPHY_REF>; + clock-names = "phyclk"; + #clock-cells = <0>; + assigned-clocks = <&cru USB480M>; + assigned-clock-parents = <&u2phy>; + clock-output-names = "usb480m_phy"; + status = "disabled"; + + u2phy_host: host-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + status = "disabled"; + }; + }; + }; + wdt: watchdog@ff080000 { compatible = "snps,dw-wdt"; reg = <0x0 0xff080000 0x0 0x100>; @@ -584,6 +611,28 @@ status = "disabled"; }; + usb_host_ehci: usb@ff440000 { + compatible = "generic-ehci"; + reg = <0x0 0xff440000 0x0 0x10000>; + interrupts = ; + clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>; + clock-names = "usbhost", "arbiter", "utmi"; + phys = <&u2phy_host>; + phy-names = "usb"; + status = "disabled"; + }; + + usb_host_ohci: usb@ff450000 { + compatible = "generic-ohci"; + reg = <0x0 0xff450000 0x0 0x10000>; + interrupts = ; + clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>; + clock-names = "usbhost", "arbiter", "utmi"; + phys = <&u2phy_host>; + phy-names = "usb"; + status = "disabled"; + }; + sdmmc: dwmmc@ff480000 { compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xff480000 0x0 0x4000>;