From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.44.122 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796002327; b=tgJqnnR6/teFRyqG9npnJUttvQWmNjoamKQrsyE41otOVQmKuNLVNYFpPaGKiV97Luwf tEH6aISmBF7ZOMcM80NMbm0fGmlJq7sHRZUv7kbLqvVuR3FDw955CPVbKwKsb96E6S6rg YlG8Eu4kKTls+vWoREUBMjmqSSalsM6Z96ChtGuEtjBZT6dCP9W29hKcRGVdOn4WbSJGg bO+0luJoHOLDaviLlNRNxK3cGb82NffLV640mhOB29KkvI4m1ualUNOf+OkSJD6X6pOhd 9/M9rHrZSaAt+KKksoSIjelmkIcnzY7p3/nuhDw6gODR43tH/rz8wikw3N7JUPhakqQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796002327; h=DMARC-Filter:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:Content-Type: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=uZbg+HafXKfZ6Nx4NiC9AWmU7/CLW+GDS1T89LzQ1Uo=; b=gUmYU/18xDimmQskb5iK8tOAXewndy+QqJd20W4D9c9fSef2De38d+OMo4aL7UeuNa4G EBlct4zXH35l3yxKqO2duAUFCdFNYBdPN7Q98yfQiS4c8KhNUi1KXu474LuUWxUH939Jv IAOAT3WdXlwTWHrvZ0NVmb5JwhrU8MTBpy+Khl8ZfD80H5vAAYWqyeHlmoqiOuX9dGhqD PgyDdZ15FzPjmM3F9YEeTJ5qmrQRrNIZV9/wgjzCcGN3I6oMMOUrBDwBJpPB8gv7StO7F gcXDXGiKekj9FE9+dvPpUFWLDkzP9m4JGyS6HyVdCT4aaKwqsqmM8k13k4elq70NK2Q== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=cixtech.com; spf=pass smtp.mailfrom=cixtech.com; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.44.122 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023122.outbound.protection.outlook.com [40.107.44.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1807B606A327; Mon, 30 Nov 2026 01:32:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1807B606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cixtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cixtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f/XVJI0J9FQJ622s1aFUVeLPF1PTFx0wGCvaynLKYNwUAcyXRxPygelQ+e4E8gy1SzPevK7/A5kFXF3HvjlI6YHEcdAW3XEUIR5ONp6N1Fee+ShAbjc6DcNFUW1G68vFPrm4J9xjS3UDmdRi/KZ3KG2/ilggsQHJ++C1kTLgwleHswN6R8JykpwBsw3z31GBn0F/UeHFQFJ5sLRTKNBOZNjK7rA06QUtqJ6leFVYxLWoBIzxv1seW5BLkiglg9Cb02eB5Aja+CGrHN5keDtE2ypQf+G6cj7hPisqDTFpsz8wsKCJxEOL+GD3k3ZddxNjTJLl0jbNkJggCYWT5TZijg== 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=uZbg+HafXKfZ6Nx4NiC9AWmU7/CLW+GDS1T89LzQ1Uo=; b=kGUFIcF08XL2mZUf+ItsYLBu7ifyoIRdyU8DwEhGGMUpry4DX1TJq51djpf3KKIWv76/bT7o4wkt5rV6YyfSTZMEvz8VeRXF6BfScZH3aDjevmlKT4KtX2OdUb1BxkRMS4sEdCL7SrngmTw4ITaT+ExRy7gxuUdmKDROGmSjZgCBWZnrovcKHyB0a9xd79Trey1QIEryVCODySmmjaOsNsWdKKu5dOcGLCtD/1xJpEPVOXxVAKTObnAj4arorHMKuX8Do6ytFojgob6/5LOeES5yT/rt1K/ql+cPbBtMTzsiqVIhHuAce5LHwho0OENaIXbtMWom8A74LQGemHImYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 222.71.101.198) smtp.rcpttodomain=cixtech.com smtp.mailfrom=cixtech.com; dmarc=bestguesspass action=none header.from=cixtech.com; dkim=none (message not signed); arc=none (0) Received: from SG2PR06CA0236.apcprd06.prod.outlook.com (2603:1096:4:c8::18) by SE3PR06MB9137.apcprd06.prod.outlook.com (2603:1096:101:323::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.9; Mon, 30 Nov 2026 01:32:03 +0000 Received: from OSA0EPF000000CC.apcprd02.prod.outlook.com (2603:1096:4:c8:cafe::71) by SG2PR06CA0236.outlook.office365.com (2603:1096:4:c8::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.13 via Frontend Transport; Mon, 30 Nov 2026 01:32:02 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 222.71.101.198) smtp.mailfrom=cixtech.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=cixtech.com; Received-SPF: Pass (protection.outlook.com: domain of cixtech.com designates 222.71.101.198 as permitted sender) receiver=protection.outlook.com; client-ip=222.71.101.198; helo=smtprelay.cixcomputing.com; pr=C Received: from smtprelay.cixcomputing.com (222.71.101.198) by OSA0EPF000000CC.mail.protection.outlook.com (10.167.240.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Mon, 30 Nov 2026 01:32:02 +0000 Received: from hongliang-System-Product-Name (unknown [172.20.64.180]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 3A0B8427EFC7; Mon, 30 Nov 2026 09:32:01 +0800 (CST) From: Hongliang Yang To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Gary Yang , Fugang Duan Cc: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com, Hongliang Yang Subject: [PATCH v9 0/2] phy: Add CIX Sky1 USB3 PHY support Date: Mon, 30 Nov 2026 09:31:58 +0800 Message-ID: <20261130013200.2967788-1-hongliang.yang@cixtech.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OSA0EPF000000CC:EE_|SE3PR06MB9137:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0072ce7e-d914-428d-c456-08df4e81bc3f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|82310400026|7416014|376014|10067099003|56012099006|261028144727099003|261026121527099003|261026140227099003|261102130727099003|261102123227099003|261021121427099003|261022105027099003|261022075727099003|261009223027099003|18002099003|5023799004|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: gS7xyg5F6+wqjigzeqnqvmvG+I6BRGwijyIkW20a4r2UuQQ7hlcq4NMv9J7nQrJZ/X8WTLWcpUmE8X2r2rGoZRiVSr51ddD6HDZqAUcVpUdI9dpExdtBe0/Mex2its2z4PjjRxGiwahnfkKHLbLjZp0l5CygsPhW2wGwCP0pNXgU+Z2NyujikIsf3y9ODPynoWGWMIRWID38OWQvxOwJ/Yra79Vhbix0ZVpWKUf5GMhSwKgsl1IhS/gKf6S4EH4lMZqgGVGOUWSy4OnLHpumRHbXeB5lE900YAQXjIdfojHDOoEmA54GyKRLPkh1qCEv+YGBEWTXB5n+mVI1rsQ9ndnkO+1AhYtYogLOomQwnt7oJSD5F80F9MCdhvbfyMvKwjjg6094yECc24pvCNzbYad9RleWpADrhZcHK3WsScZagBCZ0fwLZfHLIpp21JTKKuLIzu/XFpBG4/i6FnLvdQfas8B5ReHQPAGPV/sxaTY0GKOuQCNuChDl/aP431dikdIxNrsoIksmejHgmnyhnvWZmRfkLwBojNHLQMqQxiWVfwnh5oDX4w3Xj/kJ/+gltm7rUwleV0Up1eNdMOgPwEagFrj9iLNv9nTP3TBcKVbsXY0JrIPWq/Ra7r8LOfdLvzvJKwViypYhYgNyB0qiTLLQfkFOB2hQTmKfzB/Y7lPRJQrHCXf9gXUwRAg3oEpiuFSOXkkOGfDFTcZSUdWvPw== X-Forefront-Antispam-Report: CIP:222.71.101.198;CTRY:CN;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:smtprelay.cixcomputing.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(82310400026)(7416014)(376014)(10067099003)(56012099006)(261028144727099003)(261026121527099003)(261026140227099003)(261102130727099003)(261102123227099003)(261021121427099003)(261022105027099003)(261022075727099003)(261009223027099003)(18002099003)(5023799004)(6133799003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OwUNorAlDqkhBkiRiDX+zhdgAxr18xllnuvwuedn/2vQaeVJgQ5S7tL0uaDlC5l8EoyFWY+wnyL1qc8dAPG/nNaLv42H9wyJ1Kp/C6x7CfuVOd0YuzacKm4anc6qjf2ijC7yRYdpWaC2FqKzKtrJk7Ozd0pOXeJ5a9hjvZODul1JThArU7BzZ0bawU0+1tzgrmVdrug42FWt+asuMa9hsKaxiJ4+8oBTEEbzxkoS1tKQ/hdQNcNE6/vzHcVseR8Vfc3uvnhEflB1yCOhcNAN7WsI/L6e7YFQvKXi5CPsYdHQzgOdSX5XnQLncCu8cu80AhbHBmWh18L5qGkW+eLBe//vQnQ0EF7qnL2rh5rImnKAOjmpUAmhdh2g5M0+izABrodSL+3shwv2hoy1ZKDotS+AAMaxQS7GkAeM6sN8e6NUB+/4IUyx77+WAk89U6xK X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 01:32:02.3690 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0072ce7e-d914-428d-c456-08df4e81bc3f X-MS-Exchange-CrossTenant-Id: 0409f77a-e53d-4d23-943e-ccade7cb4811 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0409f77a-e53d-4d23-943e-ccade7cb4811;Ip=[222.71.101.198];Helo=[smtprelay.cixcomputing.com] X-MS-Exchange-CrossTenant-AuthSource: OSA0EPF000000CC.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE3PR06MB9137 This series adds support for the USB3 PHY integrated in the CIX Sky1 SoC: the device tree binding and the PHY driver. It is a PHY series only; the arm64 device tree nodes belong to the SoC subsystem and will be sent separately once the binding is accepted. The PHY and the USBSSP controller series were split in v4 and are posted independently. The PHY provides the SuperSpeed lanes for the two USB3 Type-A (USB4 and USB5) Cadence USBSSP controllers of the SoC. There is one PHY block with two lanes: they share one register block, the same clocks and resets, and one initialization sequence, so the binding describes the block as a single provider with #phy-cells = <0> and both controllers reference the same phandle. The PHY core reference counts the phy_init() and phy_exit() calls accordingly. v5 described one child node per lane. v6 collapsed them into the parent node, but nothing in the binding or in the changelog said where the second lane went. The second lane did not go anywhere: it is the second lane of the same block and has no registers, clocks or resets of its own. The binding description and the commit message now say that. Tested on Radxa Orion O6 (Sky1) together with the USBSSP controller series: the PHY probes and USB 3.x devices enumerate at SuperSpeed. The series applies on top of v7.4-rc1. Changes in v9: - Address the driver review comments of Manivannan Sadhasivam: describe the PHY block in the file header instead of naming the internal IP, get and enable the clocks with the bulk API (the two clocks are always handled together) and check that both are present, add the missing blank lines before return statements, and use lower case for the remaining hexadecimal literal. Changes in v8: - Rely on the PHY core for serialization and reference counting of phy_init() and phy_exit() instead of a driver-local mutex and counter, and call the Sky1 init and exit functions directly from the PHY operations; the per-SoC callback structure and its duplicate error messages are gone. - Drop the register macros that the initialization sequence does not use from the private header. Changes in v7: - Removed the arm64 dts from the series; it is a separate SoC patchset. - Describe the two lanes as one PHY provider and say why, instead of dropping the per-lane child nodes without an explanation. - Renamed the register header to phy-cix-usb3.h: it holds the register map of the USB3 PHY, and the usbdp name suggested a USB/DP combo PHY. - Fixed the module description and the Kconfig help text. Changes in v6: - Dropped the per-port child nodes; the PHY node itself is the provider with #phy-cells = <0> and the driver exports a single PHY instance shared by both controllers. - Selected REGMAP in the PHY Kconfig. - Used dev_err_probe() for the reset, clock and regmap acquisition failures in the probe path. Hongliang Yang (2): dt-bindings: phy: Add CIX Sky1 USB3 PHY phy: cix: Add CIX Sky1 USB3 PHY driver .../bindings/phy/cix,sky1-usb3-phy.yaml | 78 +++++ MAINTAINERS | 2 + drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/cix/Kconfig | 21 ++ drivers/phy/cix/Makefile | 6 + drivers/phy/cix/phy-cix-usb3.c | 316 ++++++++++++++++++ drivers/phy/cix/phy-cix-usb3.h | 180 ++++++++++ 8 files changed, 605 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/cix,sky1-usb3-phy.yaml create mode 100644 drivers/phy/cix/Kconfig create mode 100644 drivers/phy/cix/Makefile create mode 100644 drivers/phy/cix/phy-cix-usb3.c create mode 100644 drivers/phy/cix/phy-cix-usb3.h -- 2.54.0