From patchwork Tue Jul 16 20:52:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13734921 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 E59CBC3DA49 for ; Tue, 16 Jul 2024 20:54:28 +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=pDzu64qpOdojdVmYiCdHzB0WJ4nlC1VPWWJqxm0nByU=; b=qcUqMazwNk61IdvZZYW3/SMfOe FLKBbDAVGN1C/75G1gTJSmjBWngRde+FtcR6q9IPWGH/U/Y1sQPf/GtrJy/qql5A7dnxfbwqodtaQ pllqjRbk3RL/SjUTG4Xzjw1noHPIYCjQX+l9RV/z+wHuY+Z4vCfjgDeq7VajorjaxOmbELt2eVa9C +9eg5aO1r2CHqCObXyfbVmfS09VPN0Ok+rKDv47XaviToaIV78DO4TqLPOuiVvT01qVFTNiEMqnrN mjD1xKrsOXes7c22br36qOqWlcbTpe8sq45jSR6rxUMU3tbPGMgXF6pjzaajEc+T9GqUc6OUquKzc btcd3rYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTpBs-0000000Bk8g-2fqp; Tue, 16 Jul 2024 20:54:28 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTpAU-0000000BjXu-39NK; Tue, 16 Jul 2024 20:53:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PGFrO2fHB1A/FNj6QaVwMmuKvYbOYu1voTUKReg8ANsJtJhXEetLlODVuVSEYDePiH+H3MhfoCqpa95CETK7qGGhFtPoNxqEr0J9iLRBUW2jGimAJ7NPyZpRZarJ9tTlx2zhygRQ5puh7EY6xiUz2GfLfZnilQHSuZWCTNQ4GmvSETRixHs7qRyGUcuY19kQXYbgsUgU2w1jz+DBp5AhuVqiGro6wmPkXgDvx25PTY6tmo9VeKbo9eyqw98VIYykUN5QO7w74/GwHGCxsJ80WLpGrboxQ7S2f41LvVKbTlJSeyGV2xTsbRBX6BdTtLJFHlwVGvCa/iJ1POJrwRsQNw== 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=9Qx8HfbcMS/xYfx01GPXfHOt2rGcViQ8W1/DHS62asc=; b=PZXGMVMpBtlEcVXX3lU7MZ4qRGkqwZg+o6keANrtpmhj7yUI+iYUmQ+GBy6+Tecz59V2aHJ3cXyvuHlviTeJbGIg1xweo+nFn9ZzStXbE1IFxngdxPmBvYg//VBK3VsyyCaop6mh3cK4Lo4Vdv0QMUuWJD9ioYosMZ+RBSs1vssQgxMwCqaR61S+Wda4csCz3xKcBLaFdqm2R9o/l3Kjv2sTeSlxrImDqCswiplG4meCCQqmAFTu9SjdUswJxNGIbDjEmg7T5ODgYLRgUUbzdQarMPftDnX534+Rlax4h4PglMLKgiN6DD+a1gFB4yACMhstpU4SGl/YWX3DjzfZng== 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=9Qx8HfbcMS/xYfx01GPXfHOt2rGcViQ8W1/DHS62asc=; b=c53JvZl6itbuovAXJPEiTPW9dU5UBJ/0IydRfi3Q4tq7QVH76SyGT0T2GD24OJugVplWwz4tuGj1PFxHeoDsY3sJYkNEsp94RRdSn1f9dJjFq1BVUcCaU3yyl5skSUZ/7coR0xEpx9uoo5BAIhKYAmHwwy4O+2/5tJyU9bVfMHk= 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 AM8PR04MB7907.eurprd04.prod.outlook.com (2603:10a6:20b:237::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Tue, 16 Jul 2024 20:52:45 +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; Tue, 16 Jul 2024 20:52:45 +0000 From: Josua Mayer Date: Tue, 16 Jul 2024 22:52:40 +0200 Subject: [PATCH RFC v2 4/4] arm: dts: marvell: armada-388-clearfog: add description for usb phys Message-Id: <20240716-a38x-utmi-phy-v2-4-dae3a9c6ca3e@solid-run.com> References: <20240716-a38x-utmi-phy-v2-0-dae3a9c6ca3e@solid-run.com> In-Reply-To: <20240716-a38x-utmi-phy-v2-0-dae3a9c6ca3e@solid-run.com> To: Vinod Koul , Kishon Vijay Abraham I , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley 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: FR0P281CA0125.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:97::20) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|AM8PR04MB7907:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b5c8b2e-c893-4398-bef3-08dca5d93ea0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5JjmtQQ8eLsuwQWW33CwMhUqd5WGE1+?= =?utf-8?q?BD30u7v6wjyZT++t9gZmi8C4NAEnN1cJv/xlw9Ik9kahR49XW0V1w5yM+pXFkevXO?= =?utf-8?q?WHyQp5swYCutG50f21PerYn6gJQXZ5crGGcNevNVUDm6K+CdMIfDAzIj9PC4M/fRA?= =?utf-8?q?eCTeCAcuyI3D41BfoPhDf4EpVVCp+8uR9fHVCz7siq2d4mMTd/39BRxZHIhSUHjfL?= =?utf-8?q?XkIpvIt+ueEL/Iu0C4VfbE+eyKF3u360KSFY1+FZqjxtuowF9whlXxcIN4alQqp+l?= =?utf-8?q?Mc9b5cGdMZXjF9Eytz1LFtRtrFWCpRu+XOJLnZiHJxD6gaqMd5YxotvS8Rt/nvxZX?= =?utf-8?q?o+AU32JJGuU0z3bhTeDaDxgOpUJu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RDJVg9N3BCMoeh7J5si0Gdf+sm/PhN9BRTXNpv?= =?utf-8?q?I3/Y6PPTrFDYgXEhKgR6mZ8K+rwikXwL9ME9ly8RZFvrdU33H2ccR59FN4gFPgtfO?= =?utf-8?q?LcEwRBwkDLzY8JvBu//W5Cn9JmETJ8O50g=3D=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)(366016)(52116014)(1800799024)(376014)(7416014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?frKtb5sJmANcmccYikraq8Cusfy1?= =?utf-8?q?8yFhLiTta2O2T349BW9j4pTgBKOIfxOSjSg+xpYBYf9DBPbeIPh9jH6otJ1tQTi7h?= =?utf-8?q?1c6AMsAx0lwBA4BE/TPbkCMC2hOgd8iLRYtz10dXoiP6WE3FCIGgVvoboF2FMP0Hz?= =?utf-8?q?50iIb6rxDnP40lNFFSh6H84egyrcPsAKyo+BmnbtpUmM1Y8+zvbZOYfMndJabdVrd?= =?utf-8?q?JhB5Wq0cdv4yTzJq5VCVkWkZT1JQCuyIgg0xGZ6fXsq7ldlVJyyOVzpBqmpoTK06K?= =?utf-8?q?CTRR/3MeBL+Jm3w6AIIcARqiqxcJ1DdHdnOfgL4VILLCqiPLmeK4O+6VcEnukozkP?= =?utf-8?q?n1w+Mp3pAIE9w6UdK0gh4DcPGm9JxoUuInuh2BQiT8kr7xm98zzKgG64ISksQL2f2?= =?utf-8?q?VNaNkwMFjeR2WnoAZ/MVEVV5iMQ8wqoTC6+tJMX/P6ZB1Q7ZXc2KytNFEM3XBSOx2?= =?utf-8?q?9DbPyTp/aiTp9QMBt9rcNwk24f7ZxhOnXKsaFw0g2C2UAkvCq55vd2e8yvfzwSJCg?= =?utf-8?q?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iNhvzn3UG037xlbu4HPB4b4WDjySacJtnqaPzLlL4/+6Z6wjg?= =?utf-8?q?+LX8ecd+mfLX2BbMF/NK96kSlxflN+59bhJ6bSq6OYDk9+RzXCezD4g535WU72J8v?= =?utf-8?q?Z0sBz19TKfOX?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b5c8b2e-c893-4398-bef3-08dca5d93ea0 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2024 20:52:45.7589 (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: HuNd1jUQgXdJ1Y9P38ZFd7E+kip0x19Uad8VLZNvCu6uFxwy6u4eCD77rheMpVaTY7vXNj9bQiVXmkZoQuSGZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7907 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_135302_870470_882EF4FF X-CRM114-Status: GOOD ( 10.51 ) 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 Clearfog Base and Pro use three sets of USB-2.0 signals going to various connectors. Only two were enabled so far without links to their phys. Further there were some minor issues with usb port descriptions. Firstly add references for each phy to the corresponding controller nodes. At the same time redeclarations of controller nodes are replaced with references to labels in armada-38x.dtsi. Secondly enable USB-2.0 controller routed to Clearfog Base M.2 / Clearfog Pro mPCIe connectors. FInally add missing dr_mode properties to stop utmi phy driver from complaining. Signed-off-by: Josua Mayer --- .../boot/dts/marvell/armada-388-clearfog-base.dts | 8 ++++++ arch/arm/boot/dts/marvell/armada-388-clearfog.dts | 8 ++++++ arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi | 30 ++++++++++++++-------- 3 files changed, 36 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 f7daa3bc707e..09ba024e432e 100644 --- a/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts +++ b/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts @@ -66,3 +66,11 @@ rear_button_pins: rear-button-pins { marvell,function = "gpio"; }; }; + +/* 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 09bf2e6d4ed0..4f5bb5867f20 100644 --- a/arch/arm/boot/dts/marvell/armada-388-clearfog.dts +++ b/arch/arm/boot/dts/marvell/armada-388-clearfog.dts @@ -182,3 +182,11 @@ &spi1 { */ pinctrl-0 = <&spi1_pins &clearfog_spi1_cs_pins &mikro_spi_pins>; }; + +/* 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"; +};