From patchwork Sat Jul 20 14:19:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13737829 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 BEF48C3DA59 for ; Sat, 20 Jul 2024 14:22:04 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=aFt4B0tXq+WGtsmx+/jqVx7/q/DGd1TVEm1KHq7NSW8=; b=nHObmYaocJH6QdKYF1kmkJo3kw OzMRaF/mgrDiusnFghN40jsFu0PEZBWT8vHrGv44adSvUrdEVqNqdF5UioRcLz8H5rTnlpDov9fho 0Ku+IbbH76Co33sfUxuj8AjNKEQUIowXADcnVz0DCRuak3FvE7tCMYpnSuiGL/evNbqfrYzTZ3sND hMz1i10jqrtgRzM7mNs6uUTxiCLdCHTwU+WCJ65TQcZM0RDGBs/0i3P9kqTkVg+Vi8y/bEnAu/5bk L3DQOGJ54QMtOMWSchrsf45n1UdlO8l6cjg3P03pqhtcqlsekl7+OaUdyA3bTHpafA7f6myF6i/K1 6qDTRxVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAyK-00000005EXn-1yaz; Sat, 20 Jul 2024 14:22:04 +0000 Received: from [2a01:111:f403:c200::1] (helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAw5-00000005Dm0-1IhL; Sat, 20 Jul 2024 14:19:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vnX738214bUSpvKDwdFRjWAW4MmSBmJCnhqCeGQUfxjgEQ8umeTlh3WbTjFhC3r0YHw5MmHegVab7YJJCvByoJ2he9bJY8NWRkQMYVWfPWh46yY9q/Y5LbZ+HblHhz7U2yZY+3nJE8WiIGKtkqlDN5DD3jvYV29BJ2gKleOU+AwDK1/H0LTRYj/KV7+xpdZ2Ce25q8pXRA3VoLiLGC464RqAMQni3Rt4v+EHcmHMwjqWeSPQWbvhM5dEl2GeDIJzy14yD0u2ogxDbdrIMPt3VqxenmwARn+70rgwGS+pZFmBqNfdCqz9BWQQXlrhwO4AAgB6IvW89XXav1NSI0u41g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=F1TvpnJM/87JmHTipVIiJzSXmMY0iIBQN6czOczN4Zk=; b=x+u1H2TjfZQ4LQeVHaSn1QXFOANQV8kpBBVmfoVCYkWA2e72lWt3SPdXPYGXOtx3TyJMktJBdNW+jNZBfPfX2JxHRY9DE+xYV+TtYTXjGFbnplMuJA2GQPLsFvyY73vTwGVsMvYN4XrXyqzyz/XAMhOzBSVgxVxhAklfAXLr/JTUpWCU3LRfSjbzr8XueHVWp6uthb4HVUoutwoQp8zXzq9NbCJvAfm8R11MNdP5j9iPXrW4WeEvUHP9iGiZejtQ1SIRelY0ufAbNzyaZ4xf55TLIFEM5nQus5bun/GneSPchJ56T1/IJUXLWMiCKA0A9nwMg9WZFhJAYu5X2UuSbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F1TvpnJM/87JmHTipVIiJzSXmMY0iIBQN6czOczN4Zk=; b=K1C8xrBTWsSm8saSUgIC3+kNcg0/Z61uOC3xPaEbWeuTA3dbsofLNg2mFP37z30A4acLjgOcYKqZWlCd6h9Dkzk3peCIYrXp5GpJo3r/HogLWsj8zI6N79lTht8mG8Gl9x05WDcSsB7m+AICGUE9tpPRaWmidP1LKcvzRJbR7Yw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by VI0PR04MB10299.eurprd04.prod.outlook.com (2603:10a6:800:238::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Sat, 20 Jul 2024 14:19:30 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%3]) with mapi id 15.20.7762.027; Sat, 20 Jul 2024 14:19:30 +0000 From: Josua Mayer Date: Sat, 20 Jul 2024 16:19:23 +0200 Subject: [PATCH RFC v3 6/6] arm: dts: marvell: armada-388-clearfog: add description for usb phys Message-Id: <20240720-a38x-utmi-phy-v3-6-4c16f9abdbdc@solid-run.com> References: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> In-Reply-To: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> To: Vinod Koul , Kishon Vijay Abraham I , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Konstantin Porotchkin Cc: Yazan Shhady , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0190.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::8) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|VI0PR04MB10299:EE_ X-MS-Office365-Filtering-Correlation-Id: 532cb528-aaad-4dc8-a97d-08dca8c6f831 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|376014|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?PIS0Kf9DhQwVYZJccpXOGE0kVBLo4jE?= =?utf-8?q?WGutnPK20pd1d94/5YEiFiBgD5Hyp3tMFQk4qLSdHUYjinPpYGjdFXQis+58VR2gG?= =?utf-8?q?ywWkn0Z9mE4rmezxoaV9X9VxE+HGOPOoGQK6g+DZf3mrGgE4uv4dmwx2dkIRY+Lnh?= =?utf-8?q?Bg6RG5tja+sDebLRIJSDAby9X37cRhP3d62618Mag9XgeHNF4EVIOC8Eutq2e6dGk?= =?utf-8?q?6MuRVhNO51OIwIL7UTIpZygg2Qg6nnW3zwhX/a6BxCc8C/59ptLMjh8Vixg2NTCaC?= =?utf-8?q?8oQCb9zXI3cwK7OHPPxEITWI2ivAlCojXsC6EDkQwnoWqmoJ5QFog46jixLx022IP?= =?utf-8?q?cPXo5lLacMg1cNCmgkgYcqR3SZ1l8eooVqFu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u9VVGhiu7EniXcDDwpDTwlIa?= =?utf-8?q?O4msYoRjHa4gfjhJQYRJUbRGBo/rac1mqQ7JgKWvYgQAzNbnm5/oM+SPB6f3OKN5r?= =?utf-8?q?dyzH9QxfjcGWT1s/ACWW0dSP+TIcZbbSFalTI6LQgmfZsoRMcQKkMuc=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(366016)(376014)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?BGI/NKDluSjG30K+sCLhqixpKdMj?= =?utf-8?q?Ffm+Knn5Bs43p9tDNQAMLYcDlwXfftwOLW9Jgh483SsY6f8ESivEeJ6mdrIpxWDKy?= =?utf-8?q?C0qgvAA2inijheeOqJ83b/+NuLCrioZ7sHrUZNBNhVi3UAFnPn4q89V6+/zBWtyrM?= =?utf-8?q?sl8NCGUJ+gZS5wwWOXOeLq2I/DIWaPiC2KGElDlmED2LoOkP9nOF/LYsFNP9H6N4X?= =?utf-8?q?+xuofGcVBBJAXqq5gsfjUYXXrhGJ4JjzcBDkgKV4dqp/HnK1uVFPKTF/9CkPL/deh?= =?utf-8?q?Fm90dY0eQWivuua7zeQLHceCmIflMXTsGNW7uzhCnqk+6iWYQbQ4JTKTTeSVtKoKX?= =?utf-8?q?VGFa7alCGFEVTLLpSgxZlRXf+fvUELtSKYjbhog6VE9NcnjMM+4jJbke2iQLjl2iF?= =?utf-8?q?GBL1HqsWRMNRU3dnv7sYv5O3yxB+mLHtFCB+9e0V5YrD2goG9+54l3qGz4euXwKYk?= =?utf-8?q?QNcyrvkqw2AREM3YYb25gqPecsdvhOuEy7dJX+8bhG0DJcy6WYX0a8EZUam2NBmmQ?= =?utf-8?q?x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JsUWpr7O4UeNMevIAleDALe8jFHZZSOS/b5xP1daKHpp?= =?utf-8?q?/wVmSjqCrkhfFkYzJWc3EhhXVRpvZmGMwr2ZMhT2LRS7NKv7Ga8x00WLFVJWUT+U2?= =?utf-8?q?htNnk+tbKrmZ?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 532cb528-aaad-4dc8-a97d-08dca8c6f831 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2024 14:19:30.1338 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bB8edAAY2qJeqHIfI4Sh7i2x7S+NCcxiZCUCia44crYLRW5C/0s96iuE/e8MnDCL3DDcohO3NdaolR0UOqEA+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10299 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240720_071945_403877_28DE52F1 X-CRM114-Status: GOOD ( 10.29 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org armada-38x.dtsi now has usb phy nodes for all 3 usb-2.0 ports. Enable, and add references to the usb phys used by clearfog base and pro. Explicitly set dr_mode to avoid phy driver warning messages during boot. Finally replace the usb@58000 and usb3@f8000 nodes with references to labels in armada-38x.dtsi. Signed-off-by: Josua Mayer --- .../boot/dts/marvell/armada-388-clearfog-base.dts | 3 +++ arch/arm/boot/dts/marvell/armada-388-clearfog.dts | 3 +++ arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi | 30 ++++++++++++++-------- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts b/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts index 308ad9d1c70f..3edb7988ee2e 100644 --- a/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts +++ b/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts @@ -102,5 +102,8 @@ rear_button_pins: rear-button-pins { /* SRDS #4 - USB-2.0/3.0 Host, M.2 */ &usb3_0 { + phys = <&utmi1>; + phy-names = "utmi"; + dr_mode = "host"; status = "okay"; }; diff --git a/arch/arm/boot/dts/marvell/armada-388-clearfog.dts b/arch/arm/boot/dts/marvell/armada-388-clearfog.dts index d6d7cc885f4d..4f5bb5867f20 100644 --- a/arch/arm/boot/dts/marvell/armada-388-clearfog.dts +++ b/arch/arm/boot/dts/marvell/armada-388-clearfog.dts @@ -185,5 +185,8 @@ &spi1 { /* USB-2.0 Host, CON2 - nearest CPU */ &usb3_0 { + phys = <&utmi1>; + phy-names = "utmi"; + dr_mode = "host"; status = "okay"; }; diff --git a/arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi b/arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi index f8a06ae4a3c9..0497fe13f56d 100644 --- a/arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi +++ b/arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi @@ -51,16 +51,6 @@ sdhci@d8000 { vmmc-supply = <®_3p3v>; wp-inverted; }; - - usb@58000 { - /* CON3, nearest power. */ - status = "okay"; - }; - - usb3@f8000 { - /* CON7 */ - status = "okay"; - }; }; pcie { @@ -243,3 +233,23 @@ &uart1 { pinctrl-names = "default"; status = "okay"; }; + +/* USB-2.0 Host, CON3 - nearest power */ +&usb0 { + phys = <&utmi0>; + phy-names = "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +/* SRDS #3 - USB-2.0/3.0 Host, Type-A connector */ +&usb3_1 { + phys = <&utmi2>; + phy-names = "utmi"; + dr_mode = "host"; + status = "okay"; +}; + +&utmi { + status = "okay"; +};