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.128 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796211003; b=PPTFqDrEW9c43D3u8gVPVXlfL9nhJrBSYtKIa94Xj3/kKE4bN+bBcYHbgQbl19GW5bXM kklSCIFmN6xTG2KZZa7l/eKS/Ms9oowc3Dfeykv25kjeBLh3GKe1/7Ve86CSdmRiv+IXl hCNSrKsUpsGxn6Xc65r4oBGjfESuIBQdGpFrKcerfw5iGmrTTpfN6y0gv2laChYV5U973 R2tfJXgoSt5dYxQ7buifgQypk5jJVCaSrDRW9t8hgzIQjb0bKRxwXMtIn/dM1ZEzgtEAR WIvD6RitJmAggN+G42QE7gVqGLW4thwc6QE8GgfRZ4LLtYWpr3Sc5rAKE2u5YygM10w== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796211003; 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=czvd2oaY9uo0DLvLhQs5zqWtiZKIDGFVboaulG0Mikl3L/vxJvk+PYVdT69HnqmTXfgX Ym4uZQzf8JWsGUbt1Vv+GGZKiEFGyaDSDhqsYL/TV1vitYPGEH9upS/T8MFIqrwM8qP+j qkjFUL+Z9EIFr8EwlVTao1kVeI/7KyLZeu3wQxMIGq9MdGIYN29hsU+3hJqbqv4SQSkzZ UI3XE+PBlOUH/HtpdTC58pzrGvc671BtbSTjMPs/ffEFalwqkZmidB32xAYih8L+uos9j FXOUO3ABP3VipHxvLiEd1e2E273MP7LFkcouXEO5zG0coPPRsrJ/PHnoGsNwNfHzJIw== 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.128 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023128.outbound.protection.outlook.com [40.107.44.128]) (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 3EEBD606A330; Wed, 2 Dec 2026 11:30:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3EEBD606A330 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=tvEXLNBDzsGV7Ki03jcFtv4tpQ9cODOclLxOAnHUirB4FUkSKenifwPq4S5YcOdrpdUQHUxWYd5+Fme/Xxft7NcME3jXEIqG0CJP4O2b39XAYp7zfHGV+fFO2c4UdziYx8MpR82vVRTTF2IY4LREXA3XTkyb2A1H1ePmAQsrGQDAUUWr3zUpyqunMhuL31FaQ9KcPvkMp0mfP9f11q1fz7Qp0Gp+MBpmGM6WsGuu6FCMJzfHOkxep2AmsWZ/ieZG3/UHVHbQi0sCOX73dbCrNS46zN0zKvaf6a4EAiDQ92BtvtFrh3HN0H5h8HGuAM4Lpx2j877zkvyRuEU/sAgFig== 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=We5M40SeQ5IVV8cLdhBnKCIw599+Mc2SnLSa+glOqWOnkA8XW+5bsbXdPA2usdo5c3pp6CEDlYZdOdZTJytZpLC3br2M7GP1CvWmjGeY653SxlPPZDCpOcVCz+rNiFP4pq2jMoEIc9HLcTbB9VqYiIpW1aAQhtM8WZOnaSr9hE2kLBYJARvhQRdTtDmdf7BVVdI6SF7HX1yzZ+57EJqiIlkcsts2p5o/H7ZvqrzlEYWDgcELJY6obJcdvVn5xxxrHkGVEOATWfYwuwchhiuMynt5c/PjptqNjeEgzpr+JLMfQdYKcHipCkCQWjx6CFv8wcVhHtqjuQ/yWJ1cz5gzLw== 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 TYWP286CA0021.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:262::12) by JH0PR06MB6702.apcprd06.prod.outlook.com (2603:1096:990:35::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.4; Wed, 2 Dec 2026 11:29:57 +0000 Received: from TY2PEPF0000AB88.apcprd03.prod.outlook.com (2603:1096:400:262:cafe::44) by TYWP286CA0021.outlook.office365.com (2603:1096:400:262::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.11 via Frontend Transport; Wed, 2 Dec 2026 11:29:57 +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 TY2PEPF0000AB88.mail.protection.outlook.com (10.167.253.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 11:29:57 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 23058427EFDD; Wed, 2 Dec 2026 19:29:56 +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-kernel-upstream@cixtech.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Wed, 2 Dec 2026 19:29:54 +0800 Message-ID: <20261202112955.4189591-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261202112955.4189591-1-gary.yang@cixtech.com> References: <20261202112955.4189591-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: TY2PEPF0000AB88:EE_|JH0PR06MB6702:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 927c23f3-ac23-4a43-805a-08df5067982a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|23010399003|36860700016|1800799024|7416014|6133799003|21026099003|22082099003|18002099003|20046099003|5123799003|3023799007|10067099003|56012099006|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261021121427099003|261022075727099003|261022105027099003|261009223027099003; X-Microsoft-Antispam-Message-Info: kajPrCCgMuaFl8Q1Nt94nyFZyTVZ15l3wOWpxZhikJYmOQC3ZQ55tVKXMVocyjtl8+hwTuDISSkeB5KA4wAqC8h1oCa7i2Mrk++GZ5sNUL0PPQn/5FJG+OniryKHD14YOUB+pZSf9/YCQJ0hSWMpT2Gqhpv3USEyGVY5DncQ0DMNOPzARRIW9uIjdrkjCQPhWl5PHrWlIYftxVPE/tOzjUwnKDEuJEPkVvdaGQQdnZPGXfYj4DrrXIAfhernR0O1AwuREcqm9AcRR1bKT2WqkTtCctBH6trnEpFXfzyvaM6TKKpoCMJ+AFlz5KFtS9RqrPPWrCYDFxv/nVyE4yLsTBxcIjO1xq1M3xIJH82ceCdgfig6WhZv8TjA8uO58x5wKG0wiUfoHDK6PdbmiE6/2gjvG1DesQZP5k3p/g5E3fu8I6dF2ijj7YMOmSEo+JyF3TVnitCGKCEZX5Z8XMDgPsE9DXXVKcHouXovmfwexLhnAo9KAI2HJALZYtd4w4pi5HXp5qg6HNBRRTfBnFIW1APsRN+ZCdMAgPjpyRRHRKKk/FvjC+kJZnPng2ptYk5JwichhUjH+me8M6a7K5EiyRQyroOi77rjrS8q4XYeNf7zlSVUICYF1UX1vHRZLO2M8geWjP9vHICrJSN/x2LO9A== 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)(82310400026)(376014)(23010399003)(36860700016)(1800799024)(7416014)(6133799003)(21026099003)(22082099003)(18002099003)(20046099003)(5123799003)(3023799007)(10067099003)(56012099006)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261021121427099003)(261022075727099003)(261022105027099003)(261009223027099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xXFbMt1QCr9C2TYCNYAW9K9vGTgCTjLp+FcIAYBYVlCTVyqbjnLwKAtiZE4QMDQWDnZs0dVujXTHe5acKxmbd3yhvdO+fnHnC1eikruZAdcbyaNs/ptKxyaPTWL+FibNy/4muxj1QM0ZDAz2GJhrqvYeykSBVf4mou+/8F2c0D4m4EIB2TlzqXppi0g3ICY16xt7kx1enxajP6PGpVylN+l3Hw90cXZZvXe2MKM+Fl1wAJqtBo7x+Jyx40iJEAM4B7qelG9KQkUs8SGV/kgo/3/sKux+Qa9Gr8Sr52OLpMv+L4HAZ9wJaKw2vf/K9e8XBejIVkisqxJ21Ir/6/UkHcwdEBM2HMSm8F8kVK/cVJZU+px25Jdwy5SYZahm59QoJMXdFMpnAX1WhbwuGdajti+nbwoyT9V0u/4hV3ZFL4vkT+V8iFqJKLLt3RIW4H7c X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 11:29:57.2424 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 927c23f3-ac23-4a43-805a-08df5067982a 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: TY2PEPF0000AB88.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6702 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