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.141 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796102196; b=xeQzEyD+GtB1uOemBS3YE93J0624KCLgSZFL4e7MWp0VI6NmeXrLgAGFSIvm2OecUiLK 30EKt6TgcQh5KQ3VSRInbAE0nDENr1lDpr6yHzTiQNjv1DBkUjxWbukHnKapslVMax3U4 /eyFgfkTzILa+rBaBWz5SgOuBQSITAAt1NMJjKHN0Bafhta8NVCTsWKfvB9+/m6LnmOiU 1pR1YR3yjFIXDqBSe6PcHdnQpJIdQBqYDm9aLbg+ez5NPJLv/IzUFeR69lQcmoKfVeEwy xqIGpvglcIKDV+uT45DYziMRkIskYVHje75MOIoKena/Fm07qwSQoJp5VFzStNGIRlQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796102196; 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=w8dORfMyBx4mMc9DcGpK7OqjaNb1qttibUR60tMZ03PZ3gcjY5PFic/TDZ++D19/dn8v xHsSwOPbFLnIR3Be74GgMSeqlfgmoD0G+q4DPZGojndjChqMV53qD4U1sT84oPodDZtoQ eQ5iH4bt+IJ9OY30hdFwhMF6gkloMhn+mU7YqBFB3ud9liZg2AyWD/m9H1zpYd3/Ux62o 9eavflS/Usle+5Z+0jQusjoOe2RHd5eBK23UwWXX2VAEJqYMVZobqiCAMdwg1onoc14JV +KfICXpE9euUJyrAd/LHZilS/bbrLDBJ5+htIC/hnNRw4apU/IqOotmTJs1ohplz/NQ== 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.141 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023141.outbound.protection.outlook.com [40.107.44.141]) (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 AF71F606A331; Tue, 1 Dec 2026 05:16:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AF71F606A331 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=rdbQO1Nn3rqSTxLrFn7L6OCZOtOJwZYPdRGKhFs1Jb6TxIstXHOvxOl2UqrS9ppEa4MStOn0CRGvkU3df2J6LGZ97WnCb9VJcoW2WiqOZ3fjEU/hS+kIWU5b8iwEydGqMtj8YEzp0xguh+JlcGZFD9KMEMNL2tmSzV8FyQP6sBbK/4M0MhrEkytEWCUhUMjtMJyhLAeKF1AmItwUOTgzgMfHyOPHqJtiYGmvpwHQsMDifEZ+xoLYH753ZEFcrCnxVGY3aQ/mF/bCrHgeUr27/uzKfulzshIwi7LLVjkZNPhovwMluUaLNwU2eQ0qPeClcv0gG5NqjhfmsN4SKs0UIA== 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=GScl/8fFIqyDy5gG7GeKQWIZRw4NziaL2HaSQhda5zEtf1Mcwfl93rJRPeo0Ztf9BiY4ZRgwMRiHahtaGlcFpci3/gm/MMqIsjSBGjDJ8Bs0jhAu+AxaQJawifoBtcXnoRCiCnVmHYcmSSbn+hOszeR6aGQCR6IrOBYNNOw2mUwRB/GWhlN1kcWsCNmKpb2JPzfQAtOZ7rc/GnQz88Nb/Ej6GPLZnr0dYiRPrUprPsdBPfrKiF48tBZaT8grxG/RzQBr7+fT30QfcEXSgZA32NTXOXwB5TDnNjyHAouA8jek5qHS7N9gttZ7GLfacPyDZ/sylaCZZfS8SV7UWi1TWg== 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 TYCP301CA0089.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::11) by SE3PR06MB9092.apcprd06.prod.outlook.com (2603:1096:101:322::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.9; Tue, 1 Dec 2026 05:16:32 +0000 Received: from TY2PEPF0000AB89.apcprd03.prod.outlook.com (2603:1096:405:7b:cafe::1f) by TYCP301CA0089.outlook.office365.com (2603:1096:405:7b::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.13 via Frontend Transport; Tue, 1 Dec 2026 05:16: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 TY2PEPF0000AB89.mail.protection.outlook.com (10.167.253.7) 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 05:16:31 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 3E4A3427EFDB; Tue, 1 Dec 2026 13:16:30 +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: gary.yang@cixtech.com, 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 Subject: [PATCH v6 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Tue, 1 Dec 2026 13:16:28 +0800 Message-ID: <20261201051629.3862739-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261201051629.3862739-1-gary.yang@cixtech.com> References: <20261201051629.3862739-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: TY2PEPF0000AB89:EE_|SE3PR06MB9092:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e0843ba7-f4f3-4f49-7939-08df4f6a4306 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|376014|7416014|1800799024|82310400026|10067099003|56012099006|261102123227099003|261021121427099003|261022105027099003|261009223027099003|261022075727099003|261026140227099003|261026121527099003|261028144727099003|21026099003|6133799003|5123799003|22082099003|18002099003|20046099003|3023799007; X-Microsoft-Antispam-Message-Info: kNi6Wdt2l0/hdgYRaRsWkugJgTK2MZVl1qqZ1r8WEE/R26fcxH99FJ4g+ohAuZR+h1V/QfeneAJqLvoqu4WW9aG4XZPnjh3+bES4t9K0+VO4RXLa7PPQVBOqWNYP1vMTlbx/XgJKP7fidDM5+FLQBgvpJ0Gn8DjHuSzrY9WB+aTihFCXqsiOIy13aEoKdLByQA8qnR19rH7s6KRauoLY5pRYcduJRpJAJyp8avJYCMyIJjJol2k1hs0c1VStZbyhMu+Elj8+s7dAzupO86p39CD7JVf975RGcAcqXw2mhblW4TonfDsy/LL0tCmUiuHkZ+EA7QmZGCW32XBmfT89sPC1/wnCg34XBqr1fRCN33LgeNtFBGz6i3nKIFwoUZp/BlEBXAAJHoVgaTBCqjO2MqL/G32GOrRFLO7lKZyskpSkhk9yfiWFkE0StYQf61Cv9pCiTQWS5OCwabd81qTvUdMZWRWe+5JdNbv2C7disCINT7RFxZQNfxNzcEu3eSwUHLhskducmrE9N4XQIF9Z44PgaFfKJ5fFI8r0Us9P4lmbeE+0TknuDk4lK+Rdsd9jjiqr5TOaKdYl62kdBW76Em5pVG3ZbO/BlvV0ZYlZ52ptvVy6fA+zMqBcMmhgVKQ9qQsFY8QbTBX7b6KEW4hqng== 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)(376014)(7416014)(1800799024)(82310400026)(10067099003)(56012099006)(261102123227099003)(261021121427099003)(261022105027099003)(261009223027099003)(261022075727099003)(261026140227099003)(261026121527099003)(261028144727099003)(21026099003)(6133799003)(5123799003)(22082099003)(18002099003)(20046099003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nx3AHLZ+oCfbwHkMSwKacxX0wmNt8C31umJxx10mHewZun3cPafZnpt0vPjXni5gxxkjiXJTDY4ovpaKRQwwTn6P2QjnJT4yOkdZrTpuPuSbgSITrCCOU5+ynJwl95XYl4jqMVAzpvk6K9ut/LN0lCNZWz7vn4wq9PBCSrLOqpZLYJa7Bn5iI08yDE28/BuP4NrKMF/h/MmPQyMBe1Bft0Pd1CScfK6c9vFi3ogj2vddu3dHIM5iYkqb9r8KpPIilHSQ0UDRhoelBWgX/cEMjUWosFVN6CczBLRbePWYZnJZpjsW2KL7UjJLLSmYIfUdVXNbakSBw0M0Q/0BeI178tpOdA/GkEtZ3LJFJysLSX45oMV0/ejA3vHf1eAyUdLWt/8UooxKRRYbh7kVY+usHKprDEPW8kbEYXw7UDr63rl9QkKQnlvFY3NkWZ5gDoPs X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 05:16:31.4527 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0843ba7-f4f3-4f49-7939-08df4f6a4306 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: TY2PEPF0000AB89.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE3PR06MB9092 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