From patchwork Fri Feb 25 10:09:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12760015 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B6F47C433EF for ; Fri, 25 Feb 2022 10:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=3AucWr7vs3ZgW2xN6QbHnK/BW24qvmAIZzojokJ4eHo=; b=Gbno7GkSwhCiRN 7Nnc/0wNNqe7GyauruiH8O+/f70u2b2MfiackXeE3qUN7cCdg34WAra3A5aQCSElUBcNr6zF2FHtO /dBGcmysMjHSQE7uj59y/BK9aDxzJZCisCSxFQZ8GDQRjKV2fm/2uORF78QDHZdCkGRkUSnnUT9e5 /zLZflOlmBtsLGp7fE3dwaHB63WP0TX+6jcJkVy8RD9PKEwaKjIDUrVMA3cPpcrtBH3sNFa32n38W NY2yxzbhdcmkDQ4qtbHbdDRYf6fmvIr7jmm6k61UC3/wJqjMpcc2SH1P/y7yECMzv7lK6lC5zr5qI 1JzJLDaZhOq/2CH8mLTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNXYQ-004Hrd-82; Fri, 25 Feb 2022 10:10:26 +0000 Received: from mail-am6eur05on20602.outbound.protection.outlook.com ([2a01:111:f400:7e1b::602] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNXY4-004HkS-1h; Fri, 25 Feb 2022 10:10:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SCUDlss+BIirQiHAu5cujjIurqDWPOGyxabjey9q4OkAZsL6jmF2tmfuxAuJU2JE/85LxjS9KtORjYNMVm/DhMswWLuwJZujEOQORsRLAjevIaxd8qCEXWxDHOdiHJvc363FyBg3pcisVEH9PDASdhglfyLwlouvQmrpFZu/9vRUclRAF/dXmqUZWyuzGggJo5QEyFpRn7TcWaXDIcGUIvaCMGs50h+uDsDCdEDyN3Y0LFpv/nIfd1GUhbsFC6BBxSTBQipE2eaDsZCxtCvSCLrhk2d1k4tsFl/rXlADGz4J3K3Pu8tgS2zuNUqq0HB9TPSnKpdcpELYKm+JGIEuHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g2hy0gggWr5QKXqecMb2eMIzCBlfH3egOPfe0BuqMaw=; b=A6sDJIVlE2wnH8/otRIyKjuv/DwPUtlXEo4RJ+zfPfPbEpYIBRVrGLNj/kQqUAuMEWQ68Sk8grjdvB/ehPKPll6P10oQ3VRf3WLWs1GXI3kVbo/RruiJn763YIel1s1wLdGMa4wHve2S/BW9eQnXL1v2NjeDryKBKz7brqaLDnqpeAT7dBrCBoBWmbRW7iGSTsSfdFqqyaEAAWnX6+02LKBVzk52fRAxCjIvchFaNZOv/zEakFpOWf/ctdlX50gieESmX+INkWe07hWI4QpyT60J6xvOW+J8V1CFyVEDwW5/9S8SVI0nnqEu4SKfIwrMMutxRmUurrOT/IJm0pCLYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g2hy0gggWr5QKXqecMb2eMIzCBlfH3egOPfe0BuqMaw=; b=pp9Mpc2X20IqcehK8HPHjCsmdrn6/j+g43bK2kBnKuvy59qJ3r0oRp2Bkawoe/4QssYoJ/uvVroOKLiCdlVj0Bz5qszydFZdnctakjd11VGd2g5d3v7tGb6kPi9xjP9k6YobLPv0mLP1sxWpB9jdjuqrwzSdAIpLVrMe/tCFbrE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by DB8PR08MB4169.eurprd08.prod.outlook.com (2603:10a6:10:ab::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Fri, 25 Feb 2022 10:09:58 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049%4]) with mapi id 15.20.4995.028; Fri, 25 Feb 2022 10:09:58 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Michael Riesch , Sascha Hauer , Liang Chen , Peter Geis , Johan Jonker , Simon Xue , Yifeng Zhao , Nicolas Frattaroli Subject: [PATCH 1/2] arm64: dts: rockchip: add the usb3 nodes to rk356x Date: Fri, 25 Feb 2022 11:09:42 +0100 Message-Id: <20220225100943.2115933-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220225100943.2115933-1-michael.riesch@wolfvision.net> References: <20220225100943.2115933-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0146.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::7) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0556446a-d23b-49f7-2104-08d9f846fa21 X-MS-TrafficTypeDiagnostic: DB8PR08MB4169:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5mXVVPww+xH8FpLYhx3V9YY+I6GjU7/9GpW/oGv1lg1crfmSEfeoPr3ufZZ6n7XKgnwv2shLt4nbjoNgXOX6PWuhrEdKV55VE3YZGB0b2PuAspW6fsMpdM98/a4QYKzcQ5TKKry94fb7zIQq99gH1ZQIQWyxw3eR7iX+o4wfVmo56B/BxxPygM5TiUdSA8mjg9jT6t4biQJ8swixoxoLWuezLS1wcSWzfAvNdVm3bfOTXnYzRAvBraCpGnLkTPA+QALFKGpeHp+kxXWrQA4Fup86uAD+slY/1sHFL/DiEDWM3BuY7GQfHgHXZgPcUVwShrHC1ZG8BDLOXuRzt/1a+0qO9Vxc9GG5c93QC9j6rrlK+Te9Kfylx/ir10DJFKAHHEZf5kTfrHc60Ir8fjfR6dyyp66Ji0FNG6OJ8WDAKVH4N7XD/f3l1/X/SQQcZK50f7qt5bcjKobNmZvO2pY+Syb20Jsv99WsRCCWx9vueFIcpGaBteSziofGd/zyYqCSTWTURw5j0fYPJKhfkwrlnwxpfBnoj+PQLGFGyXEgiCeCz4+FNI6YWigc+yIZQCN7Up83P28aWzff9A2VmjAz7JDjvQxlzrgTOMuwfT6ZiNYCSB2DZcwGvf+NqjXBBfCERsPTGnDdDM1XblOOyC6zcQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(396003)(346002)(376002)(136003)(39850400004)(366004)(36756003)(83380400001)(2906002)(2616005)(186003)(1076003)(52116002)(44832011)(6506007)(6512007)(5660300002)(6666004)(8676002)(4326008)(54906003)(508600001)(38100700002)(316002)(8936002)(86362001)(66946007)(66476007)(6486002)(66556008)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nK+HlinQ/xEe58E3YJdrNx2lSZQhNDmhiJ3VYHsu3Sjo6yG5uQJcfGx5dhnatVbtTVuusi7m4nCr+pMU1K9y53tBppRePGd2d+96TSM+u9yqMOFjgqyXKWCmgkano26tecplMJHabjuXJ13N2fK+10WlK5ifRUw6Jo4I4cx99VyDTecuaVpxtv12iPQXX4Y5FTgtGQb8fya746mOIFb51NmaC7pEbvQH7bk+3f1BP+a0XEy2CKQGpJTc2LSEVdBG2m3QPj8QuKKRfCSkMjdM47r9PR9ouF5ZHFDE4ox/6ivRJRSUbQvN1f3uNaX8cDTPH6BrCvAc/vpZE6soZlJd8PVKd3goJG5kh8I4I1sGswYSDomBb7kb32bbrSY0EoQXj73mEOVdfEMfr5VNCNgzt0ErK9wwwzeFGhowjz081gHIKX2IUmgKQQMCyzRT4ZXHGExELXJ9KCnMFx47XDCQc3cVlBnDZaAOR9VUHVFl7cSGgRcZvSY+WU+I8YLMs9EdHovmTS0MNwrknINnTM7Ls5PzhrHl1Vl7VkPfClCXuqJ10Pj2h+lBYuysHNo/tluM2druFa0HKFveulM0bZls0TDk6BOcXk+NaeukNtzU5rjNTsZbNhk75N8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m58yIBVOQUS8lqtA5C7CQFWCoI7kgYI8SE80yCKdrNTcFcHZ2U95gXWQ= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0556446a-d23b-49f7-2104-08d9f846fa21 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2022 10:09:57.9228 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: g108RtgXp2s2Mi+5MyrLK5/hok3YKU1ZiKBCUVXDnmfVouo9f5LullBAcPxA75hgE1hfotVIKhc8e1lgHjGEMxdU6R16APNhv+t9DzbrP0s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4169 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220225_021004_121315_C79850CA X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The Rockchip RK3566 and RK3568 feature two USB 3.0 xHCI controllers, one of them with Dual Role Device (DRD) capability. Signed-off-by: Sascha Hauer Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk3568.dtsi | 5 ++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 58 ++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi index 91a0b798b857..0cd4ef36066a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi @@ -116,3 +116,8 @@ power-domain@RK3568_PD_PIPE { #power-domain-cells = <0>; }; }; + +&usb_host0_dwc3 { + phys = <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 8b9fae3d348a..b46794486037 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -230,6 +230,64 @@ scmi_shmem: sram@0 { }; }; + usb_host0_xhci: usb@fcc00000 { + compatible = "rockchip,rk3399-dwc3"; + #address-cells = <2>; + clocks = <&cru CLK_USB3OTG0_REF>, <&cru CLK_USB3OTG0_SUSPEND>, + <&cru ACLK_USB3OTG0>, <&cru PCLK_PIPE>; + clock-names = "ref_clk", "suspend_clk", "bus_clk", "grf_clk"; + ranges; + #size-cells = <2>; + status = "disabled"; + + usb_host0_dwc3: usb@fcc00000 { + compatible = "snps,dwc3"; + reg = <0x0 0xfcc00000 0x0 0x400000>; + interrupts = ; + dr_mode = "otg"; + phy_type = "utmi_wide"; + power-domains = <&power RK3568_PD_PIPE>; + resets = <&cru SRST_USB3OTG0>; + reset-names = "usb3-otg"; + snps,dis-del-phy-power-chg-quirk; + snps,dis_enblslpm_quirk; + snps,dis_rxdet_inp3_quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,xhci-trb-ent-quirk; + }; + }; + + usb_host1_xhci: usb@fd000000 { + compatible = "rockchip,rk3399-dwc3"; + #address-cells = <2>; + clocks = <&cru CLK_USB3OTG1_REF>, <&cru CLK_USB3OTG1_SUSPEND>, + <&cru ACLK_USB3OTG1>, <&cru PCLK_PIPE>; + clock-names = "ref_clk", "suspend_clk", "bus_clk", "grf_clk"; + ranges; + #size-cells = <2>; + status = "disabled"; + + usb_host1_dwc3: usb@fd000000 { + compatible = "snps,dwc3"; + reg = <0x0 0xfd000000 0x0 0x400000>; + interrupts = ; + dr_mode = "host"; + phy_type = "utmi_wide"; + phys = <&usb2phy0_host>, <&combphy1 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + power-domains = <&power RK3568_PD_PIPE>; + resets = <&cru SRST_USB3OTG1>; + reset-names = "usb3-host"; + snps,dis-del-phy-power-chg-quirk; + snps,dis_enblslpm_quirk; + snps,dis_rxdet_inp3_quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,xhci-trb-ent-quirk; + }; + }; + gic: interrupt-controller@fd400000 { compatible = "arm,gic-v3"; reg = <0x0 0xfd400000 0 0x10000>, /* GICD */ From patchwork Fri Feb 25 10:09:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12760016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E501BC433F5 for ; Fri, 25 Feb 2022 10:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=qxjOdyih7YywF7HTBZbnSUm/BXv3NpO7YuPqsj69I+U=; b=w+KOigVwcc5baE G8vla8JKd9eaZYGSeH6Fsw+iYZlRVcy5flTXQOQ5W52rLUV57jIYJhl2c9W4lMG6V6vqVjjz+NC67 d/yR7KSLRgnDb4rM405xcosyJU1ZtFgPuVog9iGKXbXjfDHEfLl9FWfmAiAJUXE5sc3C+dCBFRO+m lZyp1g4lGoeib/HW3oZHeh6ttq+lpr3fLs8vV9TAKLvSLGq2gjpyI57jm40oV+Gt+1RJcCSbg/lm6 tZpFQWrBCBAOvoop3J1TeW5dWLTUaxsvjAMmcjLJDRuJdDut38ExBW2huNMIwqCqoGKHCOZR/Yae4 Q3+i70eWNt3VrYqi4rfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNXYc-004Hwh-Rk; Fri, 25 Feb 2022 10:10:38 +0000 Received: from mail-am6eur05on20602.outbound.protection.outlook.com ([2a01:111:f400:7e1b::602] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNXY6-004HkS-24; Fri, 25 Feb 2022 10:10:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SAJVcqzhXlCByAWs47c4rxs1q26WNR6t7RG0N2yuMwYtpmuBXvQLrOrQZE9BLiRFVXSxwSMFTbBTETSdH1tOUDnvpVYDYQVERgguFLxKsuJ+XH/Qrqgo6sOOyEAzU+R9Jz3jOeeQi5MmC0z+fdH5+GhkMO34GsX8QaQP5r64z2+nK322IaakT0glzyO6602f1OY9gLF72BYE4nwA4nsayFr7kNuBtsPEfksUSuLC/Ib5egtcr17LHHj3iyaU/mkSW3yXZwRlwuaI13BcBlAsNItwLsFU/fF/ZNJ12J7jhyK2TwTApz5UTtJPGzsnDbzUGh7w2iLgDZ3xEArd5EmMOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AazVyA7esOdO+psHpqeYc37bJSCysPQC74Ytte9NvN0=; b=GgBVkur0hsMHrsXd/giee+1XUHm6SIZRoEjijZbH0mwZ3Hc+HYAWqs9Dv4XWl4ok460wrVGTx/81fVJGwgkqTbsNlSk2zHh8MgOZmiGpc9ifh/g38ImPb9y82m2glflAZiM2SFzZ4L6hitjmEHtvYrOoHvS7dhgIbWY46yWn4h4kkCLyyDQGzrpm66qmR8HiEKLNlmqLCcW/44SjdivKdNDwQvzMcTZnV4wurZYc8cgDKXZSO5fD7xAfqqRiPfhTT8dR3LOWVP/nB4Nb9pC88UQzlcA2+WiKOeR/uBHQr83WNRG2Ew+qTKfHdQgm7WqcGV2NeoAPWjzKpb3fqtlFDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AazVyA7esOdO+psHpqeYc37bJSCysPQC74Ytte9NvN0=; b=KqEoc5Ikxlkj82rd5L8ls8n71MCHk+3r6LkoFYtq1M9IkkdZ0bxsyLptwR3mbuWanYsP03VYFg/0wPZ9tKvLnak7fuxkr0XdzYlijL0fCR4Lqtjzjm9POV2Y19D7cid1IA7dcEogSJv2Z+UlRNW3MUDKSatIy5NlPaBZKV+ijro= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by DB8PR08MB4169.eurprd08.prod.outlook.com (2603:10a6:10:ab::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Fri, 25 Feb 2022 10:09:59 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049%4]) with mapi id 15.20.4995.028; Fri, 25 Feb 2022 10:09:59 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Michael Riesch , Sascha Hauer , Liang Chen , Peter Geis , Johan Jonker , Simon Xue , Yifeng Zhao , Nicolas Frattaroli Subject: [PATCH 2/2] arm64: dts: rockchip: add usb3 support to rk3568-evb1-v10 Date: Fri, 25 Feb 2022 11:09:43 +0100 Message-Id: <20220225100943.2115933-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220225100943.2115933-1-michael.riesch@wolfvision.net> References: <20220225100943.2115933-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0146.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:41::7) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4cb23e4b-aa37-48ee-fc41-08d9f846fb24 X-MS-TrafficTypeDiagnostic: DB8PR08MB4169:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3SOPZMInKTHMKwwvEGq8SgzHTyb7Rw6pr4JH9clT72S4wCyKJdTlK2GOqwdaxDsQkNlGb4XMNNtozWJm5BDU0IIcB3Ps/KXLNWsmV62GMht/9/TJQwY/VSi2x5qZpjlGvs/1tO9ue9F6WBUpaauwzydI88Xz5VFh4npSp9zyuDsfIwVp3pavano1a+GGYW0mfHewG9i5bslFV3rq441hpC7A/t0a78STSvMW1lTJjP9cJBQrsHe1b8GhWGIIDfMZQIMUe/6L7VoQkD9ZDkTdvV1KCnT//7/6rdz+HNTLSRuOhnVmobermARiAJZ5GBLgS+zkpqI5gCp8QQf6v0e4BGzQGk6b32eKtCOsBX7zP6sWpHzHjKKCGS10AzhUTGmk+wy09q0hQqrzgwZWNpfchG7gtMsn6ICPaDxtFrSTEIYRYwZhaUugCjjPx73v9ZR8TZmLrGbTgwUtcG/QxEl2kIeYSnm50XKXgD24IvCs22ga8K9B5UXhQd5hpkU36nmzHvJRZoFrRSOZrREimPSyloat6tgK/+guQB8ta7WLZJs50+Foa9evfUUOXW1lTYtJMnGgYHNuKCdd7+jzQTCet+MpfIOj80P/4F6J3u843t+6IW5X56B2VgpbxEvDcxO10Z+nYAzPtC3zuDNKzd04eA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(396003)(346002)(376002)(136003)(39850400004)(366004)(36756003)(83380400001)(2906002)(2616005)(186003)(1076003)(52116002)(44832011)(6506007)(6512007)(5660300002)(6666004)(8676002)(4326008)(54906003)(508600001)(38100700002)(316002)(8936002)(86362001)(66946007)(66476007)(6486002)(66556008)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3AIG3oKuZyC3tUltvDCQpQuAbdkHowLXZSVkoNXyIQ+dHj/QXv6aRqh71pVQ2qcXcXt3MMW1d6bIgcx2+be+toQ7pmlnO76GcPPoPmo9nv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9BiBcm/rCgWf5F7Y6UqPENvYPbFmrQ78yRYu2BLiG8dDSRR4Ymmf+Qnxyi7zpoiagNiKDcHA7+Jlaoit7HUoggnCCS6AoREsoet+mcbAoO1CclT/QvowL1pxC+/3vsubbuocDE9Efdqo37O7rSDHoXHNhQ3c/JZaF5PKTIX3YoA1fI3OiQSjUlv1ObJ0ebvHtZdLFGVAXxL7QRePBg3gre0sW56rIvfVKEgN9LLuEqIGQORy50l23I6CN/QjK1p/8CTv/vsFb82leRDv/sNQVVlKBM0WIYswsrGSX9qvvC3MeonrCwGN3v5zLal2fC1c7XxEJDfOfTc2zjSd+SMqM6eEemw7D+JNMnKoDQexGJ8dwF68TjqRNEAYTl6ZnsNARBKCjPfgqE8wNFhGCRZmbb9yghS11bYGb1nhowXJq1VnTBn2aRjPMEEakg3sQl2Pro9SEuqrlUz+rt3GOTnnlOZ/evOoG/2Nfnn8FahqssWldRJCLZCdMGwEHH41kESXGOAeDA+HbblnPUqpPRotuCgvbUBjhj22KpQW1HdfboBK0AideXHOf9f1s= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 4cb23e4b-aa37-48ee-fc41-08d9f846fb24 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2022 10:09:59.5790 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZXAbmTD2ZxEIgWu8dNl832JJEMItpbVhuO9GnZ0nOKoSzvameolyN+a/iMeZb9aEHWlzRb+v2Pr0ko+CVzAy95NVDHwu7vmyetBEiJ7s//w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4169 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220225_021006_156773_32BF693F X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The Rockchip RK3568 EVB1 features one USB 3.0 device-only (USB 2.0 OTG) port and one USB 3.0 host-only port. Activate the USB 3.0 controller nodes and phy nodes in the device tree. Signed-off-by: Sascha Hauer Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index a794a0ea5c70..dad3d2682b02 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -103,6 +103,18 @@ vcc5v0_usb_host: vcc5v0-usb-host { vin-supply = <&vcc5v0_usb>; }; + vcc5v0_usb_otg: vcc5v0-usb-otg { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb_otg_en>; + regulator-name = "vcc5v0_usb_otg"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_usb>; + }; + vcc3v3_lcd0_n: vcc3v3-lcd0-n { compatible = "regulator-fixed"; regulator-name = "vcc3v3_lcd0_n"; @@ -136,6 +148,14 @@ regulator-state-mem { }; }; +&combphy0 { + status = "okay"; +}; + +&combphy1 { + status = "okay"; +}; + &cpu0 { cpu-supply = <&vdd_cpu>; }; @@ -507,6 +527,9 @@ usb { vcc5v0_usb_host_en: vcc5v0_usb_host_en { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; }; + vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; }; @@ -560,6 +583,10 @@ &uart2 { status = "okay"; }; +&usb_host0_dwc3 { + extcon = <&usb2phy0>; +}; + &usb_host0_ehci { status = "okay"; }; @@ -568,6 +595,10 @@ &usb_host0_ohci { status = "okay"; }; +&usb_host0_xhci { + status = "okay"; +}; + &usb_host1_ehci { status = "okay"; }; @@ -576,6 +607,24 @@ &usb_host1_ohci { status = "okay"; }; +&usb_host1_xhci { + status = "okay"; +}; + +&usb2phy0 { + status = "okay"; +}; + +&usb2phy0_host { + phy-supply = <&vcc5v0_usb_host>; + status = "okay"; +}; + +&usb2phy0_otg { + vbus-supply = <&vcc5v0_usb_otg>; + status = "okay"; +}; + &usb2phy1 { status = "okay"; };