From patchwork Sat Jul 20 14:19:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13737823 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 F0A61C3DA59 for ; Sat, 20 Jul 2024 14:20:23 +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:Message-Id:Date: Subject: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=Fc6voLTTMfNBhizBcT4LyFC1Z7j1Ai3eFvSvul9OySs=; b=VMzJSXIzbHmnyh E6qLZH+R15XTRTdaq3OH75sGia4CxCJd4mg3JMkw3VU0EbZoI/OOvb2MSkJ8TfBj591OLPULua4oK HdHZKyMtXKk1teTjMuctBlIYP+Q4XQReeGWo03bCixFAx+YQKN3ZwR43DBaIDh5Isco3Mwn1pLw4o tM1ATt8afnFS+5lf2Ke2E2EEJTHklhByqzCIJxA2erieC8ApZVgBIfLhf+2egHCzK1s2wKttUnn/h FFEOmMohsjwbD9+ZZ8ymXmWGJfWrviTTfKVrEjtf7VKGqVsV4dA+lchp0xpWrtYm4znPDD9lQUD3K KKzpLyjzO6GJ50nX31rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAwh-00000005E14-2GtL; Sat, 20 Jul 2024 14:20:23 +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 1sVAvz-00000005Dm0-240h; Sat, 20 Jul 2024 14:19:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Z3bG6K7zWJVdC6R2qMLppTTqHXSAQ9KTrwsNAs7d82FEIOgn5ladIKUyBNZ+UKRYU9QOveQQkWWu5U+/PAFeocXBpoYyYLJWIMF2HQnvaruMsqC/gTLaCdjrxJFH2XQYncPNgub4bUSmkVEylgtvCIPtnvDOudp9fGbYPrMpLM8SlTVqfwNYSjWhEpQRsTXC2gpOcLXkMGuQCp58rU72phuDGDSbCp4kQvrgJ9VrZyqFwj3RZWmKLTxFgbqDbsKWK/X1RbXfOpzU7k8BYRWw9gVrH/c4vJzJJI7kn0f+eiqqAUMAh2dDvm7UxG9wgpNag6+i8c9B9FaHmWYhWnUtwQ== 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=haOQ9eX2IGmqrbmsNASMkYcuVCR1PTJY35Vv7Z8TEq4=; b=ECBAaN2nvzVEzrPle/un/iQExSaIVeh2iTnoJB0P175pWPLNAuuU+XItaUbl65En7ON6fpzfegfx1HcEwJoBEv4/uvgnjUrCcN8OYymHVTFrnub1vt36TWrfSqCDXcNUVzI+NSwkvKGB+bxsQb3XicWunredaVA1rka0zZ8X3NcwZqb4TxHV1t6vaiRJDzqlu5mnNI8Wg/739uW8IbuRai5w1i+xtQNTEabea09wqc1aAJr444jmS4mxCiWqmMWUZWYZEHoylZwPwoUj9ohJFHexofGKeftwrWhkqqy9uYqhl2LthNC8ASO0BedhntygWxg4jlPK6jPbgyFeVTqHOQ== 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=haOQ9eX2IGmqrbmsNASMkYcuVCR1PTJY35Vv7Z8TEq4=; b=XzmtDhg10Dmk9hrMRrVMiL3r6XpjIRKWxgxmi3bBzvNEcO0Q2dM8Fhttxgm7TW/svTFpncEpqnZIzCVl0V7EGgbCpQTyxJXWGK/UeVfvKgGjXn3ONoFl3jF7ui8yqQ1rnbTYgIMopA3MmAJ01uH5wqQrFCvXubfVtAIsTp+lZCY= 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:27 +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:27 +0000 From: Josua Mayer Subject: [PATCH RFC v3 0/6] phy: mvebu-cp110-utmi: add support for armada-380 utmi phys Date: Sat, 20 Jul 2024 16:19:17 +0200 Message-Id: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> X-B4-Tracking: v=1; b=H4sIAGXHm2YC/3XNTQrCMBAF4KuUWRtJE9MfV4LgAdyKi5BObMA2J WlDS+ndjVlJweWbx3xvBY/OoIdztoLDYLyxfQz8kIFqZf9CYpqYgVF2omUuiOTVTKaxM2RoF0I ZVlTUUiMXEH8Gh9rMyXvA/XaFZzy2xo/WLWkj5Kn6w4WcUNKIkgmqBVeaXbx9m4a4qT8q2yUts F+h2AvsK0jkslaFkhz3wrZtH7haH7n1AAAA 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 , stable@vger.kernel.org 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: 8b3a6f59-9c7f-4407-8923-08dca8c6f68a 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?/Gipfj8hyb0Xvmhg1O5WzY37KYUbq4f?= =?utf-8?q?7sBYJfmr4Sh/yYBIe8Jvu0dpBEIJ9/VSwHBpfZ/pUVt9m6kHP2xP4zUGBOyGcIZ1w?= =?utf-8?q?iGaiKmMOHmpDyYeJMteODugZCiMePIaWHuL+xHfg16C8kBe1EIW0YMdGIk6yncjF3?= =?utf-8?q?gxbHqM5Ip2lu6P4Rt7cixM3OJItyZp36BfbW60FX/ZrwGnA8TbG1xcaPZX80AkANq?= =?utf-8?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?q?094du4fDDnROOkMvz102+NKU74Oic3yBCnSVGyh+VhS8CUMbdeEeBfngnf/Ay7nyJ?= =?utf-8?q?j5862LBvesJkpIN23MDX+bXDY2d+Zvn71Xgdy8Qx3LOucc8U07HpMXUQ+nuNbnPTs?= =?utf-8?q?4E3KAoxnIt3GWu7dFxP57GDd9LxginlcBmw9qFFJ3G25xiEo0Mh9gPi4li9Zy4hlf?= =?utf-8?q?NCsSijPE4FuKGA4wQwEiPV8pNIscJ8yNjGphpAGVv/llN4IGFbiUfksOYb7THO3bK?= =?utf-8?q?b8pLvhz657G1?= 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?hK107bYtlajoBZfd8C32uCdp3REL?= =?utf-8?q?UQkXkDIf6s1AgrCBJ5MAj9REZytCcvQC1mU07TZlAojcAgj67SjHEVTsTmR7Q31ff?= =?utf-8?q?JyeWKHJV6w7O1UnZ3F8+/MImRNFmvPQN+weCzGzWGIBc906uzfdkpihGSN94hvNB2?= =?utf-8?q?ylC5HF8XxQWcyuYIYUoRUOAy4EBynuBiAym7MITIkWY56W3EM8xbPCjKe5F3tzT+i?= =?utf-8?q?fJ3e/fI8O+y6Ha21Tw4JyqGw2kcMxnkxXKPOGgRGJqN/wzim9qfumgQj/FjbOnylO?= =?utf-8?q?n8S4uaoDmClrfIw3xabA3Ulxj7OpUtnvBO4y3o4cky0ubZBCVez/ashiTntGbmPbl?= =?utf-8?q?kKD9UY1LqReOuUw2bZQROksxc/w6AngDdVDKkNrSt+zEkYrkbJY5jJKiUc0LPSbqU?= =?utf-8?q?Bt9+dEU6q6g3YVSoGcHyWO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xX4yDnyvNnTjBORoScGjl6k7MSXJDX84?= =?utf-8?q?6KjwEuNh6DwOao/cuBXiq0jQmDlTdx5E/2EryxQ1z+6glDZ9uQMwoyRXkw7PIw3hs?= =?utf-8?q?BW8dDgeTsaH4x0ovXiA8AhMu9WAUYKUm2XEI1rLSSFnQFhVoIamCAySC9TSfbZK9m?= =?utf-8?q?CV+ommSieohLszH92MgryNT/DMER2qxC5QQ6LrTeLW0How8JcjIT9xoV2kozirU/X?= =?utf-8?q?PuaRE/d1Gm3d?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b3a6f59-9c7f-4407-8923-08dca8c6f68a 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:27.3932 (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: r12q2YvZNrvQ0LDYhZL6fchOVth2OtkholcktqIHqqwfs7hJ+vE5nDisknQXWf8iFz/Q6mP9R27f/5O7A7Nwag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10299 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240720_071939_570292_57AD52EA X-CRM114-Status: UNSURE ( 7.02 ) X-CRM114-Notice: Please train this message. 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 380 has smilar USB-2.0 PHYs as CP-110 (Armada 8K). Add support for Armada 380 to cp110 utmi phy driver, and enable it for armada-388-clearfog boards. Additionally add a small bugfix for armada-388 clearfog: Enable Clearfog Base M.2 connector for cellular modems with USB-2.0/3.0 interface. This is not separated out to avoid future merge conflicts. Signed-off-by: Josua Mayer --- Changes in v3: - updated bindings with additional comments, tested with dtbs_check: used anyOf for the newly-added optional regs - added fix for clearfog base m.2 connector / enable third usb - dropped unnecessary syscon node using invalid compatible (Reported-by: Krzysztof Kozlowski ) - Link to v2: https://lore.kernel.org/r/20240716-a38x-utmi-phy-v2-0-dae3a9c6ca3e@solid-run.com Changes in v2: - add support for optional regs / make syscon use optional - add device-tree changes for armada-388-clearfog - attempted to fix warning reported by krobot (untested) - tested on actual hardware - drafted dt-bindings - Link to v1: https://lore.kernel.org/r/20240715-a38x-utmi-phy-v1-0-d57250f53cf2@solid-run.com --- Josua Mayer (6): arm: dts: marvell: armada-388-clearfog: enable third usb on m.2/mpcie arm: dts: marvell: armada-388-clearfog-base: add rfkill for m.2 dt-bindings: phy: cp110-utmi-phy: add compatible string for armada-38x arm: dts: marvell: armada-38x: add description for usb phys phy: mvebu-cp110-utmi: add support for armada-380 utmi phys arm: dts: marvell: armada-388-clearfog: add description for usb phys .../phy/marvell,armada-cp110-utmi-phy.yaml | 34 +++- .../boot/dts/marvell/armada-388-clearfog-base.dts | 41 ++++ arch/arm/boot/dts/marvell/armada-388-clearfog.dts | 8 + arch/arm/boot/dts/marvell/armada-388-clearfog.dtsi | 30 ++- arch/arm/boot/dts/marvell/armada-38x.dtsi | 24 +++ drivers/phy/marvell/phy-mvebu-cp110-utmi.c | 209 ++++++++++++++++----- 6 files changed, 288 insertions(+), 58 deletions(-) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240715-a38x-utmi-phy-02e8059afe35 Sincerely,