Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp517625pxm; Fri, 25 Feb 2022 12:45:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/yHrnCrHa+kFe7+664FRdKrvKE/9mkHUhM2/A3ErsHD6QmLL3Dks+QGCbKSxIZNRYVnNw X-Received: by 2002:a05:6402:4415:b0:410:d28b:1e14 with SMTP id y21-20020a056402441500b00410d28b1e14mr8748397eda.211.1645821922119; Fri, 25 Feb 2022 12:45:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645821922; cv=pass; d=google.com; s=arc-20160816; b=NSto6zjPB5FMOcQD3Sk8Fv6VOtNtUC8e8rc1A1UR25WueQEVdw4NFmPzJdD1GYP9EZ 93dwDY9812RHW/vRyuNgBICm9HZlpQmXzD8teO1uWtOC/7xRUcc7j7Nlnpvc6ioQaULO 7EkB1TcohzwPUPmDDiOpRPDQgzJnzcI9xZZmw9vIoAXT0aAk/usY/n7QQUjhqyxdCrZJ 9ZBsOmJQEpvb4yrRc2ksbW6C67J4+6DC2fTk12DkhkAuIOw3J1rp7veJln5vSz5oWFOt yh3k6j+HqrWnRM5d3EcYyc9Pv6mdxf7HHXSsvxRVJg//VcmiRrV+sBg34QS1F1uMUMQR HBow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jGL+xI1OZjJbyLKHHgr88oDHq1kclPcVolD06Z7fcXw=; b=IvRiBpwc6O7oQBT/tGT5yW7cID53O3ug5xGDT4wRXKbPn6pfCJGVx23xB5OQYZb9KK A4e9Yc011SHx7CBrblvd9lOVi5Ytfud6bsMVOziwQ3Tvw9DZTkcdfz+DNkm/TUEXeD0s 5IF5nVGZbUVgU+VgkW/pbizvRbhauwr/eeO35Za3puaIU1teGXGulGqHA9OjnJGoKgDO LzHN7huJJZ5CCLJOEX5hjCrYX671Cj+b/mJo4k8JSvsOmHhPtLnElUVvRn3IEPr+yZRO HovFG+JXCFUI0T/9xvXRrsjyb4yCtFGfFC7FJIeSvKnF+2kxOHwzaAv0AxXCYQ11VjZy ee9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=ARYYIk4X; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a056402255100b0041290fa3b94si3334774edb.424.2022.02.25.12.45.00; Fri, 25 Feb 2022 12:45:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=ARYYIk4X; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240221AbiBYNRH (ORCPT + 99 others); Fri, 25 Feb 2022 08:17:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241039AbiBYNQy (ORCPT ); Fri, 25 Feb 2022 08:16:54 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2062.outbound.protection.outlook.com [40.107.20.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DC79202386; Fri, 25 Feb 2022 05:16:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gOMrJnkYtRXOtpClV/ZoQhl/hvQjsTznKanfxQXlFNCePkxAHqo/HVUa6nxH/RZ9OQ5LThWEICMWZdTwQZaT5q2VZ3kU9xNXYH2qfjBPWyqxniMosdToVfbscmcRk7Izkp9b+/wijY1srTessnP6/fY3LXpTfmGN7iJRDTAgk9b8ielobeGDJ3VYBXaEIF32WIyOW8FQBQ1QdJO22VAdJ22TR1VRDGyUrkFsDLh2ogExp8Rt0sIB3g82s/ScHBLWCZf6ItDUnt9771zBNQVkJBwyXV8LN7p8H/rdlkhWNCDcBsA1+XlFVfTqIynxNA3Epyc8TfCVUeuJCFgxDFM4bA== 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=jGL+xI1OZjJbyLKHHgr88oDHq1kclPcVolD06Z7fcXw=; b=SpFkrL47Bje05iB1xlBlNSCjnDULr/XChnACuZyYJo3mvMmw7DY9Cn/JO7qNF/ZEe0GOvYq9MWyfO4ZqlRHDs3Zpe6nzELpA1iRaK4Bo7YqZRkMFZPQHMcWlAHeHWKphr0Ybe83hLf5sQO97ntdErrUPb+yIVgpOJn1P+il6+Zuw+cW9hWL1iBtUF8o5HcvGkavg2I3C+OBl45uleuIzk+67ehIhc/Taqu61FhWD0NKwgDC+TAnHJrEsIkGF+hwgamGFWFcqvgv5q97lka8vpU4q5SNgMRsfil60YRDrO5+ZlFKsYv7+mACRPDaXd+Pc1W9zMfe/YQnIFUTjXK+bxg== 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=jGL+xI1OZjJbyLKHHgr88oDHq1kclPcVolD06Z7fcXw=; b=ARYYIk4X/uFe2jp9yNCX37pcpjZd+nRRSadmA7q2EnL3cEiBJTlrrO+zZva7nqvbW3oVu4+rYJEfXNjHidvt2PPHfWibJdOhfg9ABf5Ft49aLIhRMQgpWC1YZzmF+stENEMrJBRiIDlViO+uO/LfbI3NFaZIBxbry5hLSnZi+zw= 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 PAXPR08MB6591.eurprd08.prod.outlook.com (2603:10a6:102:150::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.17; Fri, 25 Feb 2022 13:16:20 +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 13:16:20 +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 , Greg Kroah-Hartman , Frank Wunderlich , Michael Riesch , Sascha Hauer , Liang Chen , Peter Geis , Johan Jonker , Simon Xue , Yifeng Zhao , Nicolas Frattaroli Subject: [PATCH v2 3/4] arm64: dts: rockchip: add the usb3 nodes to rk356x Date: Fri, 25 Feb 2022 14:16:01 +0100 Message-Id: <20220225131602.2283499-4-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220225131602.2283499-1-michael.riesch@wolfvision.net> References: <20220225131602.2283499-1-michael.riesch@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0109.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:20::6) 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: d1b69717-7160-4e5f-e7c3-08d9f8610329 X-MS-TrafficTypeDiagnostic: PAXPR08MB6591: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: ZsJ8TgSc3nOGoOop/5SWK8NyyXbltZ8dBgyERLpuAotHd+Nb1ZHGXJLasxyBpge8qbk7AJKYoosSMJHs1ifmg2qaVBJs1t5qOyBXM3Vs6hOXGJMo5xw8Qjh3lhAy9mj/Socjx3zidSjOAULKAXPbNv7OIPnV0nKhr2pRTr/KE2Ilf5n7m7JebGfn7dkB9kQGPYq70niMD9IfuAvj547fjzO4Krfzatspc/JXOm1Q/lXiGCEwBI73G/qxdxpG2r+T64PtvS/VY62QG6L0X7q6EQQmspIi7aEe0elGs1JzKp7w1VAakr0VwTihejVwoBMLl3Y1rh5Jlu6/1ku7Gierh6oPOoc0XBiD91Eww1lrOZMZaD6xdjJkAfBjkpjBIcxkH9PxunD9eP7fqkkHb335yXAGoE6w+F9Cm/Ob6giS5eO+QRSaJMvVgaPzlBG6zos/+IGFcElqYUz5tNfQGnlJXf97In93o1G1cdlk63sVxlali8WVSIxFvQl3B+gilCN5b3cdDQqLpDg+9w//R3cZpRt0TMoCMkwyeDgWwxiY/v76ThTKkSAYjrYekAnf8xLvY2+sBqmLBNlKDN7kE01WDBrcLO0LEZXo5UbjmealpM1R+Ov6USLXNLHLmvmjAScERxZWMvwF5DC40QKrlL2y9g== 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)(366004)(39850400004)(346002)(396003)(376002)(136003)(186003)(44832011)(6506007)(36756003)(83380400001)(1076003)(2906002)(8936002)(86362001)(8676002)(316002)(7416002)(4326008)(2616005)(52116002)(6666004)(508600001)(6512007)(38100700002)(66556008)(54906003)(5660300002)(66946007)(66476007)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?yCTO+N3wIrOZmfXjam/AUzjmewIikF5pJUYfRfEEodhpUvorYU94OGyASiyC?= =?us-ascii?Q?Bm99OVy59ll7tC2Gikh4NebCK41cCOZl9w1e4UPhuNnUiYEtlk+cKQ2SqDBE?= =?us-ascii?Q?3KoYyf52UjUEvPEzhMC39yvoZt1QKU7hyWjUSbeRZFuqwjCJN5tWZ7OxuTHX?= =?us-ascii?Q?bDKrsSv7U8Jd3Yl6Sr1BDaV7npA4jJTDDu8eWhNnJj1wDil/6z2KBam59Y3S?= =?us-ascii?Q?bQhcmmZqZobYDHflNQWP5tXyAbGf80Aqb4rLiO0MxUeSV83e/pJ2sGX4OES2?= =?us-ascii?Q?M/PtdoMfQKoTw21ZbPDBjky12HT66dYfqiLjG4lqlAPhxRbGyxkSAGcjV+jy?= =?us-ascii?Q?Z5O8r79GdUkqa95GuJAV3HnsKk93Akx0serd98ltQSa/7bul8JW2kQhhrhKH?= =?us-ascii?Q?Ornz4w3I9A0XaDCV6s3lTF2ogrzjos4UVS1/49q817cXBdAW9kiftc7OOuP4?= =?us-ascii?Q?+tZfio++Lh9K9K1iPuTTcZQ5f13MDV6MMr1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IviNPHi/i0sq3Bq617Ck5vmGvj4+xJpH1kEKdhShDJsap1pt?= =?us-ascii?Q?ALKRs1QQoNml8+RSlD5KsddbIfzU8XbZdmlnEuoxpw2pTpHXZ+nNGM0TLIGC?= =?us-ascii?Q?PFu2a93rBGffkYu/asW4Mm1Trz5DYthIG6CplH/2VDgUHyyWLfjChpU44Tin?= =?us-ascii?Q?muSTI4mJD/pJMJ2DYBkbjztl0t8ZZw7YqG4o5hkLMNA2Wx5UHUZbvwCp4Gua?= =?us-ascii?Q?EnH0NzBxDSLOA8eiGOj2g5vkWWE5qaAZyUw8uKIrzUSoWeMnd6tYo2T3sjpu?= =?us-ascii?Q?QLauTS6KuIu7hjM/OW+aLkvY9o2OCVsX9ZOR8DBChqOujIf98R/nL+OD0p7x?= =?us-ascii?Q?NuquLWTIM9wuFO4y9jhCWqJT4w19ssM=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d1b69717-7160-4e5f-e7c3-08d9f8610329 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2022 13:16:19.9479 (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: r0VfYZyBlZaBWwkyNfunjfjuTQgeWNoESS+TUQExLUXS6eMF5Uv/4IrWZw6s+ky75SqKrHcfkzSd3nZdGlfx4u0z2/HXh8bufExYdXe/E44= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6591 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 | 30 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi index ecc0f3015915..25f6398e5a66 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi @@ -100,3 +100,8 @@ opp-1992000000 { opp-microvolt = <1150000 1150000 1150000>; }; }; + +&usb_host0_xhci { + 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 742f5adcdf2b..9ea6f551b9f4 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -230,6 +230,36 @@ scmi_shmem: sram@0 { }; }; + usb_host0_xhci: usb@fcc00000 { + compatible = "rockchip,rk3568-dwc3", "snps,dwc3"; + reg = <0x0 0xfcc00000 0x0 0x400000>; + interrupts = ; + clocks = <&cru CLK_USB3OTG0_REF>, <&cru CLK_USB3OTG0_SUSPEND>, + <&cru ACLK_USB3OTG0>; + clock-names = "ref_clk", "suspend_clk", "bus_clk"; + dr_mode = "otg"; + phy_type = "utmi_wide"; + power-domains = <&power RK3568_PD_PIPE>; + resets = <&cru SRST_USB3OTG0>; + status = "disabled"; + }; + + usb_host1_xhci: usb@fd000000 { + compatible = "rockchip,rk3568-dwc3", "snps,dwc3"; + reg = <0x0 0xfd000000 0x0 0x400000>; + interrupts = ; + clocks = <&cru CLK_USB3OTG1_REF>, <&cru CLK_USB3OTG1_SUSPEND>, + <&cru ACLK_USB3OTG1>; + clock-names = "ref_clk", "suspend_clk", "bus_clk"; + 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>; + status = "disabled"; + }; + gic: interrupt-controller@fd400000 { compatible = "arm,gic-v3"; reg = <0x0 0xfd400000 0 0x10000>, /* GICD */ -- 2.30.2