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.85 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796089268; b=rbgOW5V3lou/RxOksG7rDDjVTLSfLYo03uC8HrdFj/pxScYbN53Yo+0ssPx2U3E2E89X YXGfEFLO+qBo9bXXNklqT74ofrSRpopHb/btzDCP//bdPAJ5PTcJf2B6k4OjYdLpL6Crq 6YTLX+ihKrmBUfh8kXFVCSEPOEAPKrw5ixXtus+xEGnHNe7QvNjPM/DyhFx5G1O24TXm9 NGfQBf03QRNdS6xsybtwuqA0iEmTps5qlWrrywtvkOSIe0D4q0+5eCuqgMZgccf+ZXWLI QPM7E8e/3NTwNvGaxBKBldcf8JAciHFUM4/Rt4M6UyJ9/I8cdJUBGmy3S2/HqaREN8Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796089268; h=DMARC-Filter:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References: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=V1FoHPZuKtj2SD/pr8LZfvAr/1dhF2+Bdpw6O1JwggE=; b=Wze9B1cEmywmfCgo4W5RswT9+nWCFVQFzkNUAvny5M3gBEHbyAL7dPsl4lRCBvObimVK ngpixtp0AOmN5BA5Y9EbHsei5sYHAgxm+JfBNrdn9chfQfvtAKmerCsrrCCTCGYTQMtuo gZ01WZ20YpYEiy62UWxQaBxwlDYFdsAxGaL7hjmSi080v4gFV7cTJ21lcJCYrfoOyPCVb kDFaxbvfiwHpn7Q/MpARBMNdbpho0b0w014s8Zv4c2WZ5jWwXcZGJog221PiaAa/lvWpZ vBh720rLMrrJRhjnuNE1X9KjSGVutVnzZ6xdHCDpf1TbpEDYO4jL8WQ/1IYeUfyJZsw== 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.85 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023085.outbound.protection.outlook.com [40.107.44.85]) (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 4D79E606A33A; Tue, 1 Dec 2026 01:41:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D79E606A33A 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=wFvnQz2tMwW+8j2KfXDGA7d8V+emdE1unVgmZEUOGreWrfK5hX0LHA0zhY2ofQonQaFu6LBU43Tu6eebp3sAPq5XDyCn7F+QGQesOqRvqn0VG8PVxlVJ61rILYSk7LPAKjiZLjKeoQ972+sj/am0UKC+Ssa60q97MOOl5QJPIljPSnd4H797UyB5/ky1CKtFDi5IukcJY+P7p0v3tFsx/vLUHvBb3nEJS7rkEje5s8fQ+lm1uTn62lYLMgUOtE+42t8ypaBHwf5UxIJfxo60wFyW5yneA4PXJPKLPGmFO4s+AX/R87YZJ+ddfiiala9II3wAjKSezx8eApYdOg+n1g== 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=V1FoHPZuKtj2SD/pr8LZfvAr/1dhF2+Bdpw6O1JwggE=; b=WdZyaAR+lO1/huJ42b4aao2u50FngCooNJEkcPSNbnJ5lkGc4y+ZHal73aVaoFItgdFWLI69SbyCvquvqrfdeNevz6zSMw6G7rUIatiwn4nXfzhKxxrC09OsfdhLIhZgMGnmDOEHIJuk+Iwglqdqbd4ezd5LOB2IFqSGdFA0AV7lvvw26ba7HCEUGHCjrt0NmwNTt2InZ53vJHgh/2RiypXIdt1uf+A7xqCsLLGbJ2Vn6g1icC/Umw1YL0R3pWnmQC6YlazFUtkB/wCN5tZfSPuyYdZXyTmqPFAF99nk5Gtag99JxdIzKd3+4m/KjdKHj+kBcYh1VP4ykC3+6tWcSQ== 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 SIAPR04CA0009.apcprd04.prod.outlook.com (2603:1096:4:28a::21) by TYSPR06MB6750.apcprd06.prod.outlook.com (2603:1096:400:479::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Tue, 1 Dec 2026 01:41:02 +0000 Received: from OSA0EPF000000C8.apcprd02.prod.outlook.com (2603:1096:4:28a:cafe::8d) by SIAPR04CA0009.outlook.office365.com (2603:1096:4:28a::21) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 01:41:01 +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 OSA0EPF000000C8.mail.protection.outlook.com (10.167.240.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Tue, 1 Dec 2026 01:41:00 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id CD61940920E5; Tue, 1 Dec 2026 09:40:59 +0800 (CST) From: Gary Yang To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fugang Duan Cc: Gary Yang , Luo Liu , CIX Linux Kernel Upstream Group , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Tue, 1 Dec 2026 09:40:58 +0800 Message-ID: <20261201014059.3811728-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261201014059.3811728-1-gary.yang@cixtech.com> References: <20261201014059.3811728-1-gary.yang@cixtech.com> 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: OSA0EPF000000C8:EE_|TYSPR06MB6750:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: cabf01ef-472e-410f-02a2-08df4f4c27c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|1800799024|376014|7416014|23010399003|82310400026|56012099006|261102123227099003|261026140227099003|261026121527099003|261021121427099003|261022105027099003|261022075727099003|10067099003|261028144727099003|261009223027099003|20046099003|21026099003|5123799003|18002099003|22082099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: gEDWUJGBQ6uKYCFsIpzmw03avcz9fHPC3qFlR/16/1KQwc5uxaf7OEPQzF0/ZOBtgjf4aOESOQOaRiBt/Lcom5lyVolss/HgjQ1z+CvwjeNVzlt7+tCvedZI27J1dOkFhx+6eMue3Tou2ehFeZs2csgcLk5xRO4lQ/WFVtOMGc7XtGBCzwS5xfNctCkMtCPTR264eM4XjbyEjk8g3awlTgCHS/N0tFeKPgyWzwBFL0Cz8G6FoVjobrEBhhTQQrDBspZQ0MbzCa+yU9UYETBzxw33BhWjtH2ISN3mw7AP5/4IEMoXYiQxPd5T5DGGA1+Z7aRyvOQ97ymD+71dAkPZNqevQDlH+/AWaa+IytRjm2IfpQW7VO8seWMscim7mIi2CB0A7sJRflsypyyx7qUmQM3WsrY456r1U2lMZwukcOIPxbqqdKMwZMKju+wpTjYrTUmzXkdlf1yrsfZCDIiNR45HnyNrSjd5/pNIFwIkv4XpeYAx52aDk67tvtlPY/pTzbyW5W7YxxxluVoYgLNO/AYWCWjpedreI0cxWhIQYzhthNA4AvWvtZOzRbKzFZ2k7AVVTOOvcB6f7Rslu5FULZTb/xPAHA7Z0IfCUBc41tX6FRZFX0DyA8LShsIa4xHSWeh66QkmT8VFaw1tDQPueQ== 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)(1800799024)(376014)(7416014)(23010399003)(82310400026)(56012099006)(261102123227099003)(261026140227099003)(261026121527099003)(261021121427099003)(261022105027099003)(261022075727099003)(10067099003)(261028144727099003)(261009223027099003)(20046099003)(21026099003)(5123799003)(18002099003)(22082099003)(6133799003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tgdLPaR3Y+fX5U+l9YXLjhitUG5KUPE1GYWj7la7KHPdvKbRpsu0ld3IC5c8WzPerBr4/+rNRV0jSaXKXO6i6kPIrJhTGpiLpYhtSPDI349UazVy85PDZax+2FQ6H+zLmmfq2QpzlCJr9z9oKkjAwbTXbrhPZ9XaDzxjQ6kLWMD6mUo6H6omHiadx+xf1Tf5YI3HJHaA91tzqTg0UPdWieJNvs63ZoIjsljxKNS82mGv2khv/825jZ/RZj2uUfHO404nvyAcTh3E+ztRLFnCpQpgW8JvObDbRh3sVnxeOH9A3KpmGEwyhUdwSO1UIWyR5zpO/SFOR87F/OFucJuMDL8l2s76g6FP2fD13WFoVHFkUMHI43AAqdZry9vS2Uf9IxhVuUvF/Ji7lhZ6Wz6d6e2fKfBbFzLeNbHTnQ3X1kBmFtGcvwcbkIXL/2nk1ZIh X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 01:41:00.9748 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cabf01ef-472e-410f-02a2-08df4f4c27c0 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: OSA0EPF000000C8.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6750 Document the USB/DP combo PHY of the CIX Sky1 SoC. One PHY instance provides one SuperSpeedPlus USB lane and up to four DisplayPort lanes of a USB Type-C port; consumers select the part they need with a PHY type cell, using PHY_TYPE_USB3 or PHY_TYPE_DP. The PHY performs Type-C plug orientation switching and USB/DP lane muxing in hardware and is therefore described with the properties of the common USB switch binding. The plug orientation is switched through the S5 system controller, identified by the "cix,usbphy-syscon" phandle followed by the PHY instance index. Reviewed-by: Fugang Duan Signed-off-by: Gary Yang --- .../bindings/phy/cix,sky1-usbdp-phy.yaml | 150 ++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml new file mode 100644 index 000000000000..9bdd01e348b2 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml @@ -0,0 +1,150 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/cix,sky1-usbdp-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CIX Sky1 USB/DP Combo PHY + +maintainers: + - Gary Yang + +description: + The CIX Sky1 USB/DP combo PHY provides one SuperSpeedPlus USB lane and + up to four DisplayPort lanes for a USB Type-C port. Which of the two + functions is in use depends on the Type-C alt mode and on the plug + orientation. + +allOf: + - $ref: /schemas/usb/usb-switch.yaml# + +properties: + compatible: + const: cix,sky1-usbdp-phy + + reg: + maxItems: 1 + + "#phy-cells": + description: | + Cell allows setting the type of the PHY. Possible values are: + - PHY_TYPE_USB3 + - PHY_TYPE_DP + const: 1 + + clocks: + maxItems: 1 + description: PHY APB clock. + + resets: + items: + - description: PHY core reset + - description: PHY APB preset + + reset-names: + items: + - const: core + - const: apb + + orientation-switch: + description: + The PHY handles Type-C plug orientation switching. + type: boolean + + mode-switch: + description: + The PHY handles multiplexing of the USB and DisplayPort lanes. + type: boolean + + cix,usbphy-syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the S5 system controller + - description: PHY instance index within the system controller + description: + Phandle to the system controller used for Type-C plug orientation + control, followed by the PHY instance index. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Output endpoint of the PHY for USB, or for DisplayPort when + configured into 4-lane mode, which should point to the + SuperSpeed port of a USB Type-C connector. + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Incoming endpoint from the USB controller. + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: Incoming endpoint from the DisplayPort controller. + + additionalProperties: false + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - resets + - reset-names + - cix,usbphy-syscon + +additionalProperties: false + +examples: + - | + #include + #include + + usbc_phy0: phy@9030000 { + compatible = "cix,sky1-usbdp-phy"; + reg = <0x09030000 0x40000>; + #phy-cells = <1>; + clocks = <&scmi_clk CLK_TREE_USB3C_DRD_PHY3_GATE>; + resets = <&s5_syscon SKY1_USB_DP_PHY0_RST_N>, + <&s5_syscon SKY1_USB_DP_PHY0_PRST_N>; + reset-names = "core", "apb"; + cix,usbphy-syscon = <&s5_syscon 0>; + orientation-switch; + mode-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&usb_c_connector>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&usb3_controller>; + }; + }; + + port@2 { + reg = <2>; + + endpoint { + remote-endpoint = <&dp_controller>; + }; + }; + }; + }; -- 2.50.1