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.135 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796019637; b=DlfGVD7GyU5/uSlIVOCsr8PiRu+6uSf+lrLsv4Om2Rbr3++Oc5H8msnexv1ixq11l1iL qU0f0CXQMlO5Us2uxra3sqrOPFJa+mZ2bDUL7qfqkNzen2HFFtmw/uNrcaKW0Shsb+k/t u1rHwCaUG3HVH+Vsg1oOA8DCxNKMJgbptqVz51KqB8NUV4x388CNRpJCC9eFjKs1mHr64 2tU5Lugf1RANagVVdO4jOWr77wAtC21vLEijkukFu/DsbpBXWdt437NtUGQuwtJ538Fvv MWXP1NucvtKZS7YAraRo21vEZVG4i/JiFaOvpys4Wg3Y824q9NMhCcWYxJRFH8i5yJQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796019637; 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=ml4OI/WiusJC9ymIlJOD9SMoTEuj5PxTGeId/EUy40YbBuRptHz3p9UP6Vb2Y+ZJfE8/ QzB2XsmkqWavWEw538Fj7Kx8S8kUS1u/hcmWuLIn6k21PGJ+5FQZYmBsGihAN+wTMnxq2 ZbeojmMbgCQMWdR+dD6qRk6WV99LMav3fmicQemnG5ewXfJu6ScbDu9vFp4h5AocQKX3Z K2Xl7KAok4RJHM33hLkFKA4RQwL4yeALLi+tJTjnzLs6h1surzN1Rz6OTbaG84nZ3ubLu 9Hm3/9wZ53+a/g90oneG4f1MlLluHqoSyPtE3LNz4zq4MPZBF+HOeOYbNctf4ahrwmA== 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.135 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023135.outbound.protection.outlook.com [40.107.44.135]) (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 30867606A329; Mon, 30 Nov 2026 06:20:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30867606A329 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=yrwmptL1vC9SyXhs9FOWLTI/wQ/7fwBrLtRMQui+5MAJkJAY/+LB4I2/TJkjHmmMzswAhxA1RFmOQsaa0g1DGn3P663J72OYYu5Yob/3fKXp5nBcLI2xQAcBActuucsgddWIUYx/VK4EhON4nYL+hIVcI16oFhX9Ds7weCD5Y708UYUQoi0ogIs+0y6DPSh4oJxiErluwQsoSKb3dw9FlyqbYysBYecWZaTXEjFXvYQRNRTx9MUMn1gNsVmda407a5wsQqTpesCQIcI2vpeQryKorfXOWwWbYg1oKt0uIcvUA94jDaAkIMoNfQL7JsJW9BJGMlONdcf5RPuMaxlB5w== 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=HWZxK8VMutvCtOB3yf9Yf3OWdZUNO8p+deCmpeutlXdE01osYeRty+/6mbXlctFFVuAvC7qFLVw6iQ8HO8W53YIZPn1IGhZSl5A4S0AcldGFndDj8J8jcrCvYI6q2McohekuyRBPb6CSAxExfPS1AwDgz3wadGU81ihCUfP+iaXA3cHge2hewR9o/BIHyW32P040G58KMdb6KYshlUELFYqSBV5sjr4lFjKWZzr+M51teqBWQq7YfFLFi12xAbyuSIAFYjJ+mWUv1lcP6njYCWbGX+VEQpg2iRKqLuqZurOAHJdPUMZvl3dhsaI9kUXx5iWWkB1cW3p9K6CE3c0ypA== 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 JH0PR01CA0010.apcprd01.prod.exchangelabs.com (2603:1096:990:56::19) by TY1PPF2322611A7.apcprd06.prod.outlook.com (2603:1096:408::90a) 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 06:20:32 +0000 Received: from SG1PEPF000082E3.apcprd02.prod.outlook.com (2603:1096:990:56:cafe::90) by JH0PR01CA0010.outlook.office365.com (2603:1096:990:56::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.12 via Frontend Transport; Mon, 30 Nov 2026 06:20:32 +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 SG1PEPF000082E3.mail.protection.outlook.com (10.167.240.6) 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 06:20:31 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 03A11427EFE0; Mon, 30 Nov 2026 14:20:29 +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 v3 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Mon, 30 Nov 2026 14:20:27 +0800 Message-ID: <20261130062028.3366748-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261130062028.3366748-1-gary.yang@cixtech.com> References: <20261130062028.3366748-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: SG1PEPF000082E3:EE_|TY1PPF2322611A7:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 237cb25a-21ac-400c-5c03-08df4eaa095b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|36860700016|1800799024|7416014|376014|6133799003|21026099003|18002099003|22082099003|20046099003|5123799003|3023799007|10067099003|56012099006|261102123227099003|261028144727099003|261022105027099003|261022075727099003|261026121527099003|261026140227099003|261021121427099003|261009223027099003; X-Microsoft-Antispam-Message-Info: vrvOMVb4kT9laXwI3bqUaZC4V0ow2Bm+4A29Hpm5rqWRMLN+6IdwM2kMgFNYWuijIYc4w1Sv03mXc9wzatcuwQ2L0Fh9KgmlzfsVx6Kmh7cltBF1epl8sYt2E2A6MxKnDYUsvo8VHMU5tCmzclWFrKE5XV66/BPjVW9GuhnIHbKUixbguH1DCJB9EDy55BKUzW07Gi0fHKWcJT9ZnP/x1T73/6SykdPDDr2ILwRYPqaiNK2qc60Q9Fg5Ul9xg7l/cADHRZeoglYayiStcMDf8M6iXBB6Qo4DyOwf+9g0aRUj2t9e09vR8mkP+GZih0/jSOTmxx73EK2nIF+Ey492b+j3dhNt0dtz2P2W0xaqAE0MeMnfQKw3tXgYXTyJqy51d6yUmb7uCb1csbU4o+rhNKsrqQ3BhAguptqtOPFl6UBM3QZOT/rJ9AGtvHLTX9R+dbvsc8Zc/RBSAcTBB3vfV0k0T6WToQ4r9BrfZacDMFAUp6uruHhHVFhwDTX2r8mdZ8+BKguVf68vFmZOgF2hLe+znfZCbIpVvRGma18XaRk0Cjarw+w8fWCtrvTV7nWElAoFGADG6rCfWmXik38bEiYFHO1PGFkCD5QqUtGrnXE0hoFecu6hd6//AMGqT30NZVASQqp9NS4HUJfMGIFzSQ== 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)(23010399003)(82310400026)(36860700016)(1800799024)(7416014)(376014)(6133799003)(21026099003)(18002099003)(22082099003)(20046099003)(5123799003)(3023799007)(10067099003)(56012099006)(261102123227099003)(261028144727099003)(261022105027099003)(261022075727099003)(261026121527099003)(261026140227099003)(261021121427099003)(261009223027099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Buf2LEea0HIHzrO2iwNuBF+CxDl2nhtAJREac57N71SAKiH6/AX4BDmsrG8ilWpCUyOKy0A4j+Hf9NXnuJmfbWaRDUyXotcl0f84UX/dKvaoY9ZIUBanf6SdYlCM/OrDp+klVZbHOrQoUkn83oXBDx72KwIUAXiqylp7EZ+nTgrJWP7ZOyM4sZNJixX0BiZu7J1sOAvtiheneyJ8shI+gF7yIHqSDTYIk0pttqxJFtqX6iPqJW5/ge986AQKD1kZCoCpNS0hVHOKYcCHOzz27NpEggHwCulN+V9oKba5rMLOizxk7bBnByE9korGFw+OYAksR5+DMEhk8VvEksbziHt8CJYxHVduN9h1UjBWFqKetuoQSzVePa1EQBtBSGuj8x1LfNU8N58Feye/2QglhlS8kWAjmEe8qgWpXTbOh6PpF9Npwpx2WsjMHC6cLNJ5 X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 06:20:31.5655 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 237cb25a-21ac-400c-5c03-08df4eaa095b 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: SG1PEPF000082E3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PPF2322611A7 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