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>; From patchwork Mon Apr 25 13:35:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12825780 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 99878C433F5 for ; Mon, 25 Apr 2022 13:36:43 +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=XRCvx/+ixgharJzIsOiOadv5xtHs1E/24dbdNjV7Yc8=; b=CZRS8xgdHQbUpk MWZfxdHRMF/DA48PHtF/eW7nJoo3ruVbIff0jcMmF4/p9iQHIx+RQQikQ2FoE9nDBDlpNy1/99+7P 1N1/FBVdoG2OZP1ktYXa/IhP59LASR+kOq5pmxSGVnXn+ZzuUj0oc/zOywujErikLj8Lwa/s/2Klx a+vKKW2LFfdnl5fZR0PuqwW5WgMS57adGr7F52UYt26g4eHtdtT0TDUOUuj7eZl1qFQfRRR3QOTi6 dttA9WcuaQLa2CC/OrY/Z9IAD2KxFAARVm+sEHsGBuXxQxrNg+OEfudHiaMbJp2EHeYkovF/VKxqc GPfEQOdlt9ZtRJo15GLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1niytL-009hOh-4u; Mon, 25 Apr 2022 13:36:39 +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 1niys5-009guT-Fh; Mon, 25 Apr 2022 13:35:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TKE0pCYWy/BvA22wNbsSMnxoPdqW+4A3UtfdhXWbRhRCUwKC0EyJ1etJmBp9u5jTYN1Bj9T4F5prMKLXbclHyhuCt+FxdxDohpgWfB28t2Kv4G35alS/BlcAaKjSU8p5jTR5unbsH6c01/d2D4WcjQkIVTeGrQ3IQbH92laM4ehcEBCFt7LsM8t//qn4gtDESHFo1gtnqQ+A6Y9GYCQbQWsvkpq4hPtcmrVdTXpi5f3nMjGdsSpcPD5d2lF7dODfPD62VUoKqMEINrzvWsn2a2RQNT+7GqbpQq/Hp40KUcaOSpKia2n/J4xyKx3kU/EWffQNg88sN2k8QRR814RBpA== 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=X21K86JzoBU+F5yD671+jzpMWwIZ8mRc2ENic36l/a0=; b=dalm9KtvBaMfqo//T7vpPM2Ej8fKT8HVckHrQDG0coCPmObIEGlytFZjEU5zAcAG/X9PCPREiPqdZPIkvX4Uze7QqUyVmPUXc/UUfYGdYNXkEWiPpBS6Hu/4QNVsS/xpLk1CEgLDDiu3I66gPVyLQH2Q5ioxSbP7/y2iWmgDZdieUQt2TgiyLz8YmM8tpPgEPLH3HKmje6tEakuj0s7X1mbVPw9oeHISSzKKLnz+3YWrLUFQhJjso5tkl4sXq3Fu2S8RvBE/V8nh4EcDEJa8cdVGQPmQ32OuEPvbh4swEdZp3ywat67XCdYcfEHSGsg3lzC4cshUXsaRBNoV9OIbVg== 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=X21K86JzoBU+F5yD671+jzpMWwIZ8mRc2ENic36l/a0=; b=tLE6GvlU4B6f0fD1UwqGZgtD4NY6qpar0EKMmuVksWOTPe0wSuA6x4yZNGokvtPLy/JB0QPe0vZEiZBrC1SKB+04a8g5qhXT6LBx4qVXbpSTOFfRSL738MiOxosry84Za0KP28vCMKjCzamLpmRLJDFeMLH/zkj0XQ40rUqtVII= 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:17 +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:17 +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 2/3] arm64: dts: rockchip: add usb3 support to the radxa rock3 model a Date: Mon, 25 Apr 2022 15:35:01 +0200 Message-Id: <20220425133502.405512-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220425133502.405512-1-michael.riesch@wolfvision.net> References: <20220425133502.405512-1-michael.riesch@wolfvision.net> 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: ba4288d4-2be7-4719-4c2a-08da26c06fa1 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: MMxVanhFQ2ANza6j9v8PSIjxfgQ+p/ygK/r0Xr3LzPooyRF2awAJEnUe4iWon7Ch0JjQ2vr1kTrONQ+v4fJ9FC3XNPPKOE7FSDI0QSUVlUGsCXiQ1XEu5IhOesul325xw3V0P+MgoAYlztvtRHAvtHCLjjIRvZdDWFHwtK7sRp6o1XgCWoR9wZXB5Woa7IIqXcXHhMeMvUKjB8qisdaG6PtfuwN26efjvF+4TN4xECg9/o3x7M72T7yECH5t06zNzsQamTQlhxyVRoThepN7ddLMu0bacbQyYhs6KO04kV1lRaUtvpczk+K3Zn23786j4PFDVsteE5IsDi8yHGz1GsVIEqNZmnAiEDUpogAhAI3OLOJk4Ik2/V+oksMdt5abAUYHltVLqdMZ+zbKSb6vcNY3CEv9FlwBlROKh4Gmg0b8Bm9rWTQDj37nQcAo2/dlug0mmmeSuqX9T/WtXDTB7sykA1i5frYjzZUxzrxScBzB/NtCUSQ1iANL0N0FYLUJydff5hO+AMEVsLsF9mYJ2RoTyZY7lHMvFg0v9ouYhfGr6cxn7sdqRSTlqZUXXycUFYpnR4L7idl2Cbq8mLg13G5RIvE978S/L4LZSDgYMup16PhLxjsfiyhx0ZzYdK9PSsFzO78yzFUDDw39mphhaZi3z6lIaD/goeNErFCFZKiCOiageVvpg5FGeJAKGARgS+NvAtMmcIufAS5oYdSWRQ== 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)(44832011)(6666004)(52116002)(36756003)(6512007)(66556008)(66946007)(7416002)(66476007)(5660300002)(6486002)(86362001)(8936002)(4326008)(8676002)(1076003)(6506007)(2616005)(38100700002)(129723003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: jfcRJ0mZP8cdhFy1QS8aIq2ARK7KazFQ94z0QeJZAf4d4NIXH0G9F5igu3+PS8lXyFJgA/OICNVbmgxQNk5bO1kVS9TYroQQs5nGx5vcTGF08tYx5Tomn76iVsBBu6A9Hju2gf70vi7LIRq5Fz8vwqzM9M8RYJm1ldmIXKIm830XUE8M/0bay2ODl1Sv/EzAxdmg3/E6PynsX98UYCCOy8gZ/UI4QakVJ+7IF4bCgg3+mfnZhhbOve6UsCMQCSQiQM0f5q0VvPVqEgVz9mjuPnITjVe5V1Inw9BOV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MzAJ0IcS3wTpl3Gh62PKqD6HCplbMDxXnoZcx83GJp9TKCb35weC2dVqdFQzal0Fm/P6qLBqLZXyZuIhw/FiAY7JUTuWhMI/WpsLSnqucDBQXiRR7KvXTz3hLZZRBBWwBxg+WrNNhH6KdYBeMFlCxZLC+gt4i6IYaD7B1SnU39tCT76rJj/kUuqI510zGhDrsifiDIObNykmYIU8CGUgI1wk9tmHVPE4/TB+s7EzO4mZ0Zz45MUB5+qcjx7gN2KrDmsTonXnKV2hFU95khbVaRb2E2Z66rWT1fHvGemr3brTLwVqWOTq6HWZTWkdiRCrX/tnbOOrm75L+tcMLhhuzXqd5tGrJYg8D60VzWCjI5QDcVJwjwQ/7Bf4JuIOs6f9TmTwNGhkq/S4CmpbEOLkLMZ9Kk/VzVic1QQo8fKIYVsd0M5T0oRzNy X-MS-Exchange-AntiSpam-MessageData-1: 5P+v0ddZTxHjEtWFpmmByns99zJ5aB4HE2lSblfCuHjEZnNlFd2i/CWH X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ba4288d4-2be7-4719-4c2a-08da26c06fa1 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:17.6014 (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: GlPQRolNGU+XhTP9ywY4EprxuRV4FeyT9KEi26aVgmtMWgCeE4xXnv2zXgu759/qD1bFHKTz/FSCuvOMlb5FiFAqTl2fhgNx6Wb6nRzAems= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6453 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_063521_568159_0041F4CD X-CRM114-Status: UNSURE ( 9.08 ) 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 Radxa ROCK3 Model A features one USB 3.0 host port and one USB 3.0 OTG/DRD port. Enable them in the device tree. Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 53cf444ecb04..d7e2bc96fde7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -96,6 +96,26 @@ vcc5v0_usb_host: vcc5v0-usb-host { regulator-max-microvolt = <5000000>; 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>; + }; +}; + +&combphy0 { + status = "okay"; +}; + +&combphy1 { + status = "okay"; }; &cpu0 { @@ -416,6 +436,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>; + }; }; }; @@ -479,6 +502,11 @@ &usb_host0_ohci { status = "okay"; }; +&usb_host0_xhci { + extcon = <&usb2phy0>; + status = "okay"; +}; + &usb_host1_ehci { status = "okay"; }; @@ -487,6 +515,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"; }; From patchwork Mon Apr 25 13:35:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12825781 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 0AEB3C433EF for ; Mon, 25 Apr 2022 13:37:32 +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=W9R/O0BvSsYg3boWDP2qxY8sYHfGdTYVLV/dasQuQWk=; b=diSEtOu8h82RP9 mFt9pyBkf58OVXKOD1jghuWD7ycnXp4TqQWY8oc5EaNhRz+mYhxDYrMDCPAvNyPgmhjtPHpO6Id8T R15qn1gswKEzr9mMxLC7AbR8Mak85HUycLXuk4Ica9SU4d1g1BY6zYg6mcubcYCSqNkV+b4duZl56 YfgcQ5kNiaqQ+y647Z7uLWbVdRH+sUWYwrC6eDZ6UaUZHZQlsPbn7DlB4aImxo3J9Rtf5SvyI53G7 1Nk6mMIKkOmyflPmqquI6/YMfx3shRA3kBJW8ZY/9yYyTBzZeL8vgY/zXdtvhBCBUPX+cyHvxoZDt T+UpOGkgFgJ858FNYI/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1niyu8-009hjg-3c; Mon, 25 Apr 2022 13:37:28 +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 1niys7-009guT-DM; Mon, 25 Apr 2022 13:35:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kgROMAGUp2oe/gaJgb7HIn9pUPYaBM9LlTO3dkrxeovC67YcgEJVb4rVCzdsROpEXnioueTdPVQw0JcJZrMs2QwIQEO7Sx+u8hJ8Cws9iold1sk1H9ABH3PUNL3Lel1j9ibNfLJEdbCqQvOxTn48ws1P8Zi2/sOdiIGHoIAO0iMflGQ5ggeDxn0bl4X3jmCgwBQtwHh+omoy5eOrWYoZo3PASqH5qQunbJQ9brl4hWXlhcEJRQZ9zm3t2oVz0MoGytP/U23o5MqXnKMvu4WiwOaQd8zfnyaVUe7E56u9dOK7SxxzzC26iJl1tIE1u6zNLjAWE9zwPhryToakCv3M1Q== 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=BNjk/sJVMNDyNAtuusAVsTQao7AN3oXbaKGGRULsYZU=; b=Reyp/Hn9fqvHd5e/Lfyl7Kw/flk7T0/h3jKYfFAdd+bxS4q7bb0SDWHQ+P78czC1bSQDoHiC9NgNZ59zTzrgCVfmceTy8DbX8Dnt3nOB2kVldPujaGjmb/LJ64E9F6YOWyzXBgStU17ZtCOQBQA9FZuSXkSlGm1JIdPEluWptNzCKcMb1RQBOtiD48PpQ8gBOCwGuIrfwsV+e93QNsaLpSJ/yMMPxrenFWboT4EzEyWb0gVtiVU7PIJtrdQG8BvhGdHNqEVBhucdUWbjyNd3X2HGBg/8WHIAL4Lb+EM/nVPMHyaxyS+MO3FxWRuKB4/4065uTqvsIxLtEK8C0WKCdw== 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=BNjk/sJVMNDyNAtuusAVsTQao7AN3oXbaKGGRULsYZU=; b=MT36qu+VKzw3lhp7+Dg9xePnKuXLcGg08C830ZtDeBYcHY88vrbLlts0kv2d8YnzqbWOLbhk9xCiSXD8hnL+owwaTm0pXNJL/2K3kXr/kZjLUxUHDUHMz0hg8FDEknLbNS4YlSSzMG9B3BTymASEOiTxsoaPLAa4oX1bsPY6ubE= 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:19 +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:19 +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 3/3] arm64: dts: rockchip: enable usb hub on the radxa rock3 model a Date: Mon, 25 Apr 2022 15:35:02 +0200 Message-Id: <20220425133502.405512-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220425133502.405512-1-michael.riesch@wolfvision.net> References: <20220425133502.405512-1-michael.riesch@wolfvision.net> 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: a87497a4-5bca-4503-62b9-08da26c070a0 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: gDVuIaILeGV3lojyAgJ9lFQrBep+g/63zvpXdP/LQWAAHmEWO1tpPWWOIwztx4+6GpjOqN6ir4iNZ1zrUHHQUr6WL3mx+2bFOZAHwbraM1MADokQ5WJ7mrAboBKEgw820INFxcP40e+OOphJvVnCey6F4Gabgf3cveyJJqAVrZy7QZyYetYzmxERaz9jYy+uXpue/7CzUcM/ibML8diuInZteqbwmzCpCFr8P+PJ0biQNPXxPmAj0ryyXev4r9xUHoF3oktGXsl9AenSN09anWxw9/tbRkjWpt5vBNmj/wwypVsio2XVkasW5lesyejRyT7wfJKiWzecATbVuH1mp3GDly0jdnekh8pkaSMvM4ReOuY17cG64kyegO2sI+li8m0A9YgbWZPqNe81wquZkCQJP1cBmef28yYubtfA/bCeIMVz1/TbO0hdv/83uGaINYIc5ZYkjRFakIoSTpAKTbc2LY427sUk1jl2en3XFntIvBec8xexT7FXEWZDkJyIhoxvWmBz6AhvSBz2o+MGFXNL4aogrPMaJFZYwgWwYNzrdiRjK3BVbwxI0JgolRCWKEeYsbeFDW946BQd5mliSbG9k898vxQ3ILBILE3/DNtJfISzxozUWNdJURPAJnN17SueDBxaUAVhHYZQlua+2PD2/YJh5HvbMNIkxhj5dekKt7tokHrkfV1wULlVUHr0wxnHX5f8kuej6Og7At/2yw== 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)(44832011)(6666004)(52116002)(36756003)(6512007)(66556008)(66946007)(7416002)(66476007)(5660300002)(6486002)(86362001)(8936002)(4326008)(8676002)(1076003)(6506007)(2616005)(38100700002)(129723003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: vfp+rkTC6o67guAd+lAFI+QoIEQoF9wTAgQ+rtR1tytaKbJ3eJISQkB7MS31UYFARapsnCAhVMlfGJFwgXKZkwx5ED0S54SlEszVtd79Vr8lvEUHXIVV34kWb5vVwmTXZ7xktqve1yfC41juKypYw43fZKv6R9ubD6bXAr+VMPwttqGg8gogIoFOqp1zHESfl5iXH8/ckBYBWZc1lt4kNRYkWzanrWlpt07FPdvjQFQFlqLDHN2KBygaLhgvwm2uSRvBhIHJ6bw+3UVNWI3pJ8hzU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NfbhaipqaZBBdaEx+GsGW2WydTxVo9PQZBKtbFvh9AkIkK1CDovYrmjaqxmdFEWkllAVa8yb3arO8bTfRKHaKliiRs584X6dY614uRrhHgnNAnqo2A7XWxjtTlHq8Gnv9HPLq90XRn4sr48amR4UhQjpYWmd6KXynppLamg0p7sKRXO4o64kQy6jadtSAXzdbV3mdxeRvHcOUCW+4RttV6j2TjAaboGn0ferm6U/q9jfShIY3qMWZPx4E2gk48xVtgOmmo4/ame65PLbe863xVTIwAxefnRwtr7G6od/AsGp9WKbTQrQsYnzkTsrs7NkC+6z2stbd/jDafTZLWcQ1duw0LwcPF0YGVJnUk1JoIaeHjeffGGwBWbip6YFBUkMJtGzkTm20qKUI1uylW1F2FQTAaZRDiFFswCKq5/Sj+/RsuonIgh7fOXuvjKvXi/g71H X-MS-Exchange-AntiSpam-MessageData-1: TvQGQ/EY+qtjII6cgc9bQoTtMlUoRbgPgx1AQ2zXC4O3VL6JPkm2LSPW X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: a87497a4-5bca-4503-62b9-08da26c070a0 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:19.2575 (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: cvYhs+eiM7Dobsf8oh5PfQMnNmn9g/dAZwQD2Faoaqb2owixK3yVLqvZ6h1hx5s8vt7TsP9e3+ueOPyEcuY1JpfGrEekV0ATiWJbfQu0EY4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6453 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_063523_499252_D392B5C6 X-CRM114-Status: UNSURE ( 8.70 ) 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 One USB 2.0 host port on the Radxa ROCK3 Model A is connected to the SoC via a hub. Introduce a voltage regulator to enable this USB hub. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index d7e2bc96fde7..75bc2824764f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -97,6 +97,17 @@ vcc5v0_usb_host: vcc5v0-usb-host { vin-supply = <&vcc5v0_usb>; }; + vcc5v0_usb_hub: vcc5v0-usb-hub { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb_hub_en>; + regulator-name = "vcc5v0_usb_hub"; + regulator-always-on; + vin-supply = <&vcc5v0_usb>; + }; + vcc5v0_usb_otg: vcc5v0-usb-otg { compatible = "regulator-fixed"; enable-active-high; @@ -436,6 +447,9 @@ usb { vcc5v0_usb_host_en: vcc5v0_usb_host_en { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; }; + vcc5v0_usb_hub_en: vcc5v0_usb_hub_en { + rockchip,pins = <0 RK_PD5 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>; };