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=52.101.127.76 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796384356; b=PKbPj43hIzjUSqiiKgZLzUzzOvx8oRZK30bDpSDTWmAh0rIx5obpW9ELqUK6D7BAuJYK TYzWOurj1o8pdcB35nOcKd787Hb7lrCDvkWkdx5e3JHRjN5ZGa52M7865/k2vLivsTE/t 2Nq8mtmmla1j/yhnZpvBbkqaXJzmADx1XeRZpCR1a8Lc+7It0lOrdLAesdxrAhZnVehAD Z89qVObeOOXXDSCHtoy7YI+gJn1LbmZg5v4xhjieNeKb0strU6MCUHAmU3Fdsxgmjsh4r ubi7w+RxcfkPXmKNSZoe6//9zCoaoxK62mEp39PROn5+BUOwdnyTfNELHAhW9GQr7hA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384356; 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=jhGr6H9n+buNZgRYtUyFgdIWmDJEEOOzMwFDdRLXrmA=; b=BKqqjOANNObmdU9eObRT3QMwBfVa2JvFCbbU4PfNdGLwB1epCmLtRBnN8jvg0oZu4FtU O8pz0tvq2em0uyBe2jY/7/aKHN1k+i8fny22KF2mAmP6rgN2s1EIH+/GQnywj0hcorld+ +KwH06wooMdbV/qctxS+yC+AsMVTpdwVfbXN4G1+VEvsJuJEeTbvB/famRgE5zlgFPBLt 9bIRMMrPSPNcV0gL+vd+eKaL5+9n1WfbsxpqdPqO0fFEcc5k55JUbxzCeHl2buRISY4Ad yqURMauekNFLBqnhfDjZWyLDcrat7p0PTOBmqy0WX7QrudsWyeuW6QTNkgn6MENsWKw== 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=52.101.127.76 Received: from TYDPR03CU002.outbound.protection.outlook.com (mail-japaneastazon11023076.outbound.protection.outlook.com [52.101.127.76]) (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 D320E606A334; Fri, 4 Dec 2026 11:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D320E606A334 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=MLCBvHj1M74TIbqxwCOd465GK7FxNMb0omrATOwWTWVVE+uzOaoxfBiQX2f+m2ON9RzKj/vS2EE77XB8y2uNU5erbgcFStNFeYg8wHp3FNyJKngrduzkTYgyibwOx0NhkLelCW1JJ9oksv67Ls2+blHekRt8XkaUM4ZYMT6N2xYIMLvDgGBMZhDzPcC57sdS/5DTTWfTdd/rff6sdfglbfVqt0hD7F9/qxUi2cmq5EaPfzoNnpLnu/jYimPxAxDYgoJ3FEeS7Pz+1k5PICRPBIu93YzezOvL9PVhKBmReoPWtheEA6fDLnKwTd8H8kr72fkNflXLSM7gwII9sjDKUw== 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=jhGr6H9n+buNZgRYtUyFgdIWmDJEEOOzMwFDdRLXrmA=; b=kAG3deNLu8Cq/5jU2vz7vpBJrel62lQqm/rWJJdZBqke2Wf6GWURHU2R2osoqUyp6yoVFNzlJOobn0cjN31OnfYGMLm22q68gV4QyjPt93wcSQ8Equ5iBHQxG1amj339pjWPxyfAp5OyuSkxsSo4jh2OvJ44ZgHzoQyvQGNw2RwFhWNszjGyB15Ir+FyFabjFa9ttfN8zNlwQhD4zDW5tg+WCB5jhvSYiDnqrXtO4jPoEL+TL54Ss/+ljSUoyZ6ghcv4Nc99jY/e04JkFAY15SePf+FfDvsStGEpdTCVpCgPcvG7qdWQvmVBjm/LVor+qqhCI0Oj4jpL3BiltHOLGg== 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 PUVP216CA0312.KORP216.PROD.OUTLOOK.COM (2603:1096:301:224::6) by OSNPR06MB8812.apcprd06.prod.outlook.com (2603:1096:604:499::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.7; Fri, 4 Dec 2026 11:39:13 +0000 Received: from TY2PEPF0000AB87.apcprd03.prod.outlook.com (2603:1096:301:224:cafe::20) by PUVP216CA0312.outlook.office365.com (2603:1096:301:224::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Fri, 4 Dec 2026 11:39:13 +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 TY2PEPF0000AB87.mail.protection.outlook.com (10.167.253.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 11:39:12 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 2EE4B427EFC1; Fri, 4 Dec 2026 19:39:07 +0800 (CST) From: Gary Yang To: vkoul@kernel.org, neil.armstrong@linaro.org, mani@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, fugang.duan@cixtech.com Cc: Luo.Liu@cixtech.com, cix-kernel-upstream@cixtech.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Gary Yang Subject: [PATCH v9 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Fri, 4 Dec 2026 19:39:05 +0800 Message-ID: <20261204113906.563606-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261204113906.563606-1-gary.yang@cixtech.com> References: <20261204113906.563606-1-gary.yang@cixtech.com> X-Mailing-List: devicetree@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: TY2PEPF0000AB87:EE_|OSNPR06MB8812:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 612a927f-8593-4aea-b58e-08df51fb3800 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|1800799024|376014|7416014|82310400026|10067099003|56012099006|261021121427099003|261022075727099003|261022105027099003|261026140227099003|261028144727099003|261026121527099003|261102123227099003|261009223027099003|18002099003|22082099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: Q5k1QDaqHZE77fvilfOQaiRiAhK3yOMitBMO1Bd/cKDGNnlKKX88Fl1huCGqOo+TLkzzlJS+V4v51qLq/Vx1r+c0PyirNd3Jndor1YvQhVGzwiqBRMNf/dAabLfg2qPRsI3x1FhrZymNtNAkYzxBSUfHJCazBvvc5QHBitJHigIriHGTRLEwy02AV6rMxhGzGRUFkchFcSNUaroZa/Y7e1Xo7ettIcbKm/6aC3HQXar1U4wsSueKHVTm7xuRQh8QOey82e/egWjKbLRQDAU2I7o9dEbSIpntKhaSDlz2ZqwKL3CbCQvnT29BojMY+OrrBOgSLkS0t4xAa0MVKNOwOrGtee48PGmmK2BqolRJYJIIWY4FYKP0QlPv05Rn5YrGowJGDV4P1fP47wEhSIrflrOegg/RLcbIq1UMlz2HOVwV5k/xkqgBjkSIAPVq36oc9KLXJgpgqN+9PMaQrFTPaQ5pk3oIOH2yDp6tyYmos+M4cC3oFC2bqGeIl51sfImeHim6pPYP00gdUsqtCZccKuMwVH2UV+ejeHjWURPmogPgsNkn5oltpm+sdV0pbayc4+4O10GdPPefrxONAPNtONYvrpOZfKpc7sOVjJsisOvrUYEPb0KIyW2WYeSX50D2RiEy+wkAX5gRPtKLBzu5oA== 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)(36860700016)(1800799024)(376014)(7416014)(82310400026)(10067099003)(56012099006)(261021121427099003)(261022075727099003)(261022105027099003)(261026140227099003)(261028144727099003)(261026121527099003)(261102123227099003)(261009223027099003)(18002099003)(22082099003)(6133799003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 52aJtnHVXjzVN81jpoWPTCtdJQEU53tjZSpHHNmd1YcZh5P8VPs1W7QeF6j+aRfGLcFJ/+Q1UstyXJ4XoQOABvhfwmyzkGXd+ofqD8osPYvT16ZmpYLj6NFzb9+TH7cAQ69+SyobPTYELMQCHJIL6Ah2enDcJFCRSwGbMaCei9q1cKr36Uw6DYFhPd8104qOKbIQp9eDJxqJliAps/2X9HN61nkHWhLIQ6CPRKgH8zqF/IKYq6VUXqvSs3x7xEAeXGIycwfD5RhX6Ic/+5tCvVn68oBGut7KE9XfqSvVYHIc2bJkENjhzBsNob2wSjQY19PI+42k+70AqM6XMXhd9U2WVwlWoJW53gxeUmgY2GHvUTRLCAlyZTjPJ7mu63XcuzLTtThmwjNSFc7P+tjR8WQyXdbQU9DNRuU38wYmiftYaLqzwy6dKLPToVLHGBfE X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 11:39:12.5839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 612a927f-8593-4aea-b58e-08df51fb3800 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: TY2PEPF0000AB87.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSNPR06MB8812 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,s5-syscon" phandle followed by the PHY instance index. Reviewed-by: Fugang Duan Signed-off-by: Gary Yang --- Changes in v9: - Separate the port descriptions with blank lines, as requested in the v8 review. Changes in v8: - Rename the system controller property to cix,s5-syscon, after the S5 system controller it points to. The previous name read as if the PHY node referenced a syscon of its own. - Drop the redundant type of the orientation-switch and mode-switch properties, which the common USB switch binding already defines. --- .../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..20027e923b4e --- /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. + + mode-switch: + description: + The PHY handles multiplexing of the USB and DisplayPort lanes. + + cix,s5-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 S5 system controller, which holds the Type-C plug + orientation control register, 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,s5-syscon + +additionalProperties: false + +examples: + - | + #include + #include + + 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"; + orientation-switch; + mode-switch; + cix,s5-syscon = <&s5_syscon 0>; + + 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