From patchwork Mon Apr 25 13:35:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12825779 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 3348AC433F5 for ; Mon, 25 Apr 2022 13:36:03 +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: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:In-Reply-To:References: List-Owner; bh=crOIcou8NHbXX9d0LsXGeCHj8RScrGVP1N5AQ9UnSrE=; b=XGEMrG6LF5DSDL HMmjdA9z50bXGkFP9dv0pfQlGwSfMNBm+IJo+EjbL6pHBYYIdMLPsJZDJAWJJLjNgdYWgUYC85bf/ valTMb3nnAg9p+7o7IUhHZbLQOfEO9zSyrsgSf1varfdXueYS+WHhbgzdFl9uZmMW19Pj46bA33vB Ab18XtHKSpHTq4BjS4JaHiFdesrMREd1mx2NLNdw7tZxWTYXL3pUZ71lGH0XGOu4DIBW5XTq5YvSf e6RJlXhKA0zI/v5JDqRhm12h1hC9EtvMjXGncXgrSKFuayb4JAn3/EM7/NV/VUkXKouHBEKpyB0eN 6unnTRHr74MFtTxetvUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1niysg-009h8G-10; Mon, 25 Apr 2022 13:35:58 +0000 Received: from mail-he1eur04on0615.outbound.protection.outlook.com ([2a01:111:f400:fe0d::615] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1niys3-009guT-8N; Mon, 25 Apr 2022 13:35:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O/2QbM/ZaY+ehJHpycwktQ9gIB4F6Syo+iN0Z5Zf9bAmnn6tSvDl0ToM4wQoSqVJJ4XdyZPQTtvJIPL4WHMMclo8k3xUDXfYfEM9Zh6Kjqzr/cYTvwWg+zH0C+aSrbWh/xZrJvzjFF6lrWRekzsDOwzKQlcukrFc18j70xH89fTjzE7ZZNGC11N7xY1gaQq/dj2HTWLnyhh1ZoGiNXVBl296MHUKEzhdDQTlROR8oM0BuA1VYB5PhF0F3plP7z+ZKKOrjWNbuX5PBlTuK74JxYFJuz1B2vbsuoLRw5BGv5xzPzCF5Fur4Ac+OwbaHPWJfAFY5okty2JKPXrDsCuLaA== 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=Ha7HXl1DpJKi8/Shq6VVkl2fVMjGimdoLaSKMmHwE6Q=; b=gzNx4h9PcDwrG1/ZK1KxRUxAYed0DhisyG8SZmwndCGS70z0pmrptqXNojzGRIzzVU8fnmJ/PYrrOjx0lJDXinsPieiL3ng8bt8U1yGCyCdsAdH4hkMDeEVUMerqV1eTzJaBNfhDyHYC0goNDxEiH/4SiUDuGfFBoW+JNU6Jcg/3aOx7Sedco+c0LlIueFQQveAVsMXH1svUoEHh4jXhwH7IR3R5+/CxJhlGQ5NecDLYqiJRVGgfttPnXj1qpykfuPO8OMefAKV1GTSFqsgkt+0OGcsaA35NReSsAUqREOvfKFL+cGxsEi/0lTP/QeN6ZyRKlZEVcHMYmUK3coYBhA== 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=Ha7HXl1DpJKi8/Shq6VVkl2fVMjGimdoLaSKMmHwE6Q=; b=B0ON5lX024dO6RoYGCJga8yu1SbxAsscl0u6ij3VfToz2wQZMROqnhsoxmh4d6xHX+rU//rZpO2wVvkIVnn7PwhDrOZP8ltby3fvO8pRUrAwftqrdgx1NCTjtQnXMHFkL18+OeZiiwLIJ55F8EjkC1n/0IG2DYVX55R1uZGX4Dk= 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 AS8PR08MB6453.eurprd08.prod.outlook.com (2603:10a6:20b:31b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Mon, 25 Apr 2022 13:35:15 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::3de2:62a:3915:9d6d]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::3de2:62a:3915:9d6d%7]) with mapi id 15.20.5186.021; Mon, 25 Apr 2022 13:35:15 +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 , Krzysztof Kozlowski , Heiko Stuebner , Michael Riesch , Liang Chen , Peter Geis , Nicolas Frattaroli , Frank Wunderlich Subject: [PATCH 1/3] arm64: dts: rockchip: enable otg/drd operation of usb_host0_xhci in rk356x Date: Mon, 25 Apr 2022 15:35:00 +0200 Message-Id: <20220425133502.405512-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: ZR0P278CA0010.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:16::20) 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: d32a4f17-2d7f-4b63-2740-08da26c06e51 X-MS-TrafficTypeDiagnostic: AS8PR08MB6453: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: BKt/psDQjclbpLqS5KylnQQtcbNcWCIDZoxk8u53WAeKaZkDTctq7GBjvowLVKtlHEBrWg0RjGcLCfLXAdpOuiB7jFHizzBGNXvM2TLLFFRC8WaFXxM7e0QwOM2NA9OdNcHtIJS1gDteke6A1IEDKXTIyUcQ1duAOOJRKGz2eiIdBpCgc1/VuP4rHYWRYnPQ1CxbSFHpjlGdUpmIeZiOog43ca2bWdUcAk2ERCpByvA7vsFUl0gBW5k2nsglXf0fPdWrltiNvc9c5xSoEAsa8xvzZhAzb5MewNpCGXX/H+uRG1UBXalpYc5C12z6ieWjfI+Xp623GMpjulaWkyr8MDi9zmaodZB3Pz1LU2KhHyDUoTvOrDoYtR4N0Wj+ZQdzuqUA+3MlYw8u4UiyEVLyUR/mPyb6R9nwFqd4tiBIcRb4Vl1UFiGGvG8eDqf33Ybz71aiwbz9LljgGpvz9BedvAd0pTu7mrBWQvkQ07LwNYPjwI8+kglcWEfXjqyEzHxa+ukKgU38kLSov0IvJ47h23yEpPsBhNJWxUY+BqXwdivA4rMm+JSHc6tBQd3nk6OAmH84TgX7fgRkC95AZOJVzOW2peImzAeRLYXeJzMSM/QH+yTJN+6u9M/02XOCMsJ02iD9SxnMbiLgyRV/BZiuVw== 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)(366004)(376002)(136003)(39840400004)(316002)(2906002)(54906003)(508600001)(186003)(83380400001)(44832011)(4744005)(6666004)(52116002)(36756003)(6512007)(66556008)(66946007)(7416002)(66476007)(5660300002)(6486002)(86362001)(8936002)(4326008)(8676002)(1076003)(6506007)(2616005)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: BUTDMUcZC3cpxczXiD6ePeZ4k9DhnnICPFKHC1wMOQIMOnXbIXDwvZXZu9SudN52xD+8d/lePNeVSCR5x7saEN53AWJ64alRJ37VjTLrpVDRKDQcQ0aZ+fIRN1madiZQbNxHISA15y0cc53tgrS57S95fr90w/pGW1mAOkOdquH1ExKYtjaYeRA0z0NN6ZECBEj+r5bCaTaO40couRN/Q3qMOOdR+qerfrmnqO5uM+prbveQth1gPPc3BInN2L/8OD6uy2uY66jC6oD7tjt63hGurXlslrw0+Cbgz79wss3LYUtmIE4RUsxObB0jpQQq3FRWsbkxlyuNf0HgM+IViQ+mJErdWyqM7mvnRyigKMhISLjBey8I7YsuV38ailunp5ECkLoNDl39LxbmLY/P2qqw3FZjuxgyb8iROEXF49cF0abcnppC1ZtAiuQDr9IRDjBR7zuFIrMdIQmX0vzfqWuIJx+TeCQPlNCi0OXeiBzlnn01dG39HOScD8VODRx9de/xtmQYMYDFYEMXxQKRnmsHwCUV0voyGUEePW4J6M+wXW+vqiIkPi4vi+gkvG3QDSBt7eO+kdrRSClzTw4VNUavRx/eLlpktxATswfO9fSaQqGj6LK5d+sLOqyqFwVFfd7BhR8eQdq5/EAIpDKqcDqm37Ka14CZtX6HiyEpOhx5CFJmW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LXWlYsXMGmXyrR87BrK/tbkrxr5itobKVMOwgsItCtOCII X-MS-Exchange-AntiSpam-MessageData-1: 7PBgHvRpsjZmYg6wieaDdg0W2T5puZY9pU8uwbfNPxT7WRX/A4kS7gjX X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d32a4f17-2d7f-4b63-2740-08da26c06e51 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 13:35:15.4766 (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: H8X98+tKYjTp9oZlqlISuH0KZBKvABp4ezbQkR34H2Mm8Q1uJnHpsmk8IP6j/WDDHYHjDWelg+hIw64qoAPqygcOIBFeETRCPgnWa/jzLCE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6453 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_063519_574879_639368C3 X-CRM114-Status: UNSURE ( 9.71 ) 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 This USB 3.0 controller is capable of OTG/DRD operation. Enable it in the device tree. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 55e6dcb948cc..f611aaf2d238 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -266,7 +266,7 @@ usb_host0_xhci: usb@fcc00000 { <&cru ACLK_USB3OTG0>; clock-names = "ref_clk", "suspend_clk", "bus_clk"; - dr_mode = "host"; + dr_mode = "otg"; phy_type = "utmi_wide"; power-domains = <&power RK3568_PD_PIPE>; resets = <&cru SRST_USB3OTG0>;