From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF697606A327 for ; Mon, 2 Nov 2026 08:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=OL5LzHdF DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=Z4fC9HpkQH9uy9WJbcsy7NyRTVzN4duiCLV71TQ/6SQ=; b=OL5LzHdFORMZdNBbRJmCrAgy7Y a2vLn7Ci6Nfs1l/u7jGFUQFZKUceZW5ib8av+zenBo98XYKdQfbKsdI3A6a/7UfDI9j33VV1pDCfo kilMWtM1ynNMWg7y72kZGpI3qoMhDFVUQ/vCVp69jjqf99yc/6P6Jevthh96YA7/oHsXOl+VfYe5x p6VUGtBETIt1OoKt0gWgDa4085cLElgOTFPSPMIBuMR/INQ5FjeIS6I9XC1scsmmvtTwyCjtn7Ceo B+1tz5f4Uuf8/rCGrn9DzoGq1jsx9OuzBNBqehMo9MrUS6mWLE0ufMuV9lRQYOCb+w6+5TLcWV5AD j0BatWZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xNnCk-0000000FqcR-3pmf; Mon, 02 Nov 2026 08:15:46 +0000 Received: from mail-koreacentralazlp170130006.outbound.protection.outlook.com ([2a01:111:f403:c40f::6] helo=SEYPR02CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xNnCh-0000000Fqab-3VuU; Mon, 02 Nov 2026 08:15:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Eu+z50ge7FP79Pc1QTqPGFP4Nc/2NoXoydOe5EQVH2qKR6EV0oRkw1XCzhYE5B1cTgkJUoJPCN1uThgyiOXCD6VHIstlz2RI/wyDGNLlF/2+qynAweVJorRR/j0ftsjtWwPhC7F/nXVrxjhfkig7wp+QIT6HnIMVU+/kXUcqrMi3tKrPnCTVSq/we3Pweb3KL35mryK3ELqE1SQytigQdKSokZ+4/A205pbFPgGjqjctC4zL/m8QV6Aa3wFi3I3gs99g12Qf1yxqtOgDC0t5D6+Z3jCoHjYO93yvu5NiH9xNuUpFhqxaVthZsMM/kah9ixJrCNU4c/wbt8CoIOQzvQ== 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=Z4fC9HpkQH9uy9WJbcsy7NyRTVzN4duiCLV71TQ/6SQ=; b=W/JoZfVZqS01J4gecN5Gj589xoBmEM19ks0V7Af5AyaEoLrRuU42WppQ5YglvO2oKL+Qgb5KMwNiKNeX72QhFzipYw1Cx5cG+rtIwPsRpiT3J5grmzojEdvwLjmLkRxbT37tX4qdko5OLHQNm3/2LUPktlcBv1uGkeKHZoCIX5ufxc8YLiGc/1MJp6hWGX7XntUE31p4b6lJKQmrWFVm7tRkMCz9eE3lpGZfGCJf55WW/A0AGd6U82BSc08yIAH+nOxHgSY04TOf2yFWrINWfjo1bgdE1Hs90RZJejh7PZVtwpFsFoY6aXGNvgfGGrhs33C6zGJdnWcJkqVjSylyKw== 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 TYCP286CA0305.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38b::16) by TYZPR06MB5949.apcprd06.prod.outlook.com (2603:1096:400:337::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.8; Mon, 2 Nov 2026 08:15:35 +0000 Received: from TY2PEPF0000AB84.apcprd03.prod.outlook.com (2603:1096:400:38b:cafe::46) by TYCP286CA0305.outlook.office365.com (2603:1096:400:38b::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.569.12 via Frontend Transport; Mon, 2 Nov 2026 08:15:35 +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 TY2PEPF0000AB84.mail.protection.outlook.com (10.167.253.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.5 via Frontend Transport; Mon, 2 Nov 2026 08:15:35 +0000 Received: from gary-System-Product-Name (unknown [172.16.64.55]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id AF03A4102B47; Mon, 2 Nov 2026 16:15:33 +0800 (CST) From: Gary Yang To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Fugang Duan Cc: CIX Linux Kernel Upstream Group , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Gary Yang Subject: [PATCH 1/3] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Mon, 2 Nov 2026 16:15:30 +0800 Message-ID: <20261102081532.2305142-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261102081532.2305142-1-gary.yang@cixtech.com> References: <20261102081532.2305142-1-gary.yang@cixtech.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PEPF0000AB84:EE_|TYZPR06MB5949:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c075a8bc-6d9f-4134-71db-08df38b978a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|23010399003|376014|7416014|36860700016|82310400026|56012099006|261009223027099003|261028144727099003|261021121427099003|261026121527099003|261026140227099003|261022075727099003|261022105027099003|10067099003|20046099003|18002099003|22082099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: ERIZkK5EMpN/vob87cYXUPJy8sQDz+UBfZ9AA1V71kbs6+k96LG6/ZuxFCmg19TKBi+LDTUzOda6nkAQn18s+Qjwo2JzqcTO7OCthDHtpFfZ2DnpboCDqJwoWm/Abv6c3SswTZ5yXf/fianMhtKmMusmeLfyEvbh80WoqzwsvPvGHtHcTiBsnci4vB91ySsM0Ta0VWhFqhVcaDdXzdyHj/s6unjV9KwEEvcgmmnI8nvsMBUm3UolHqiz8VCg9HiXzA+04W6K8OfWRqgXOGlw59vQXbqS2T1YUgkfjNj3RCmh5ZDVB6DRM0dAlVs4ArLLyuaiC/Ekh37r0XnL4m9LM3gWJbKYNbdiYXgQCOM+WusPscXy+7/7GFcd6cFjIMYKj2xZo4EAjQr6EzTKkkC2N97yB3g2yQ7IwLhXW2OjR+zM7k5EyLu9kwKpC7h61r31XhvQAiEnj+etrku4O9hvsXOYQ5YgrkCRGejOOn0lH96QRetVAWBpVwnH4dkuSwedruscqwGXYUNVP89FQEPx7E+KThG34fSZsHs/0teSQIUPPXYqAcNHet6a+wXd4iqOsHpuF3N1SZFzVeTxrrJzPXWoXD8JjcIYxISZ6gIVv7RJj+VGpJSe8C4Pfb8sspUQYoVI3J/yKktlct1+h1Fjrw== 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)(1800799024)(23010399003)(376014)(7416014)(36860700016)(82310400026)(56012099006)(261009223027099003)(261028144727099003)(261021121427099003)(261026121527099003)(261026140227099003)(261022075727099003)(261022105027099003)(10067099003)(20046099003)(18002099003)(22082099003)(6133799003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3+DXZaIOKJ0ewSyx3JwnaI5cwqVC0tu4rCfcCPYweHaEAby2EyxTV5IH6EO8q7Wpw7ub5tF7kIQT/wmX1v9bRWeEgMbhXG9asH7oMp+sGY3523OoBuEPmZW24PiW2jNdUKx9hyDazv7tkg5O6vasnldu3/ZPlIWkyPstWcQXPtX6ZYXozdJQCxZVF+xvoitrANGB9mzXnOMCfI4KIOSTD8cJUyGqCw6uSTf9j2sAEmiwNi0p/JOg3RYILWQmUREFqPK97J/fQo+icMXZWXLeY4TkM0Xnt63QJeOu9EiqXD/nhacm7XXKuGI4qXaCywjwBskA+vF6zhaRcIXgGYlD7DWVGqgDRCiJa9G3tyf1Zkb9lxj6HAJsuQJC2xXAriunJNfPO6kVpZd8G5j0utHgDT7YPt++rZXZC6Oc0BtimO2IRW4jAAMSfy2rc0xc2+dn X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2026 08:15:35.0445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c075a8bc-6d9f-4134-71db-08df38b978a7 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: TY2PEPF0000AB84.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5949 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261102_001543_879361_8B44BE35 X-CRM114-Status: GOOD ( 14.96 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-21.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Document the USB/DP combo PHY of the CIX Sky1 SoC. Each PHY instance exposes one SuperSpeedPlus USB lane and one DisplayPort lane as child nodes, so that the USB and DP consumers can each reference the lane they use. The PHY performs Type-C plug orientation switching and USB/DP lane muxing in hardware and is therefore described with the "orientation-switch" and "mode-switch" properties. Lane muxing is programmed 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 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 151 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..a5b6943f84eb --- /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 one DisplayPort lane for a USB3C Type-C port. The USB and DP + lanes are represented as child nodes of the PHY controller. + +properties: + compatible: + const: cix,sky1-usbdp-phy + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + 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 lane muxing and + Type-C orientation control, followed by the PHY instance index. + + cix,default-conf: + $ref: /schemas/types.yaml#/definitions/uint8 + enum: [0, 1, 2, 3] + default: 3 + description: | + Lane mode the PHY is put in until a consumer changes it through the + Type-C mux. The value is a bit mask: 0 = none, 1 = USB, 2 = DP, + 3 = USB and DP. + +patternProperties: + "^usb-port@[0-9a-f]+$": + type: object + description: + The USB lane of the combo PHY. + + properties: + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + required: + - reg + - "#phy-cells" + + additionalProperties: false + + "^dp-port@[0-9a-f]+$": + type: object + description: + The DisplayPort lane of the combo PHY. + + properties: + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + required: + - reg + - "#phy-cells" + + additionalProperties: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - clocks + - resets + - reset-names + - cix,usbphy-syscon + +additionalProperties: false + +examples: + - | + #include + #include + + usbc_phy0: usb-phy@9030000 { + compatible = "cix,sky1-usbdp-phy"; + reg = <0x09030000 0x40000>; + #address-cells = <1>; + #size-cells = <0>; + 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>; + cix,default-conf = /bits/ 8 <0x03>; + orientation-switch; + mode-switch; + + usb-port@0 { + reg = <0>; + #phy-cells = <0>; + }; + + dp-port@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 93abbb315065..8fb940a3ea3b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2903,6 +2903,7 @@ S: Maintained T: git https://github.com/cixtech/linux-mainline.git F: Documentation/devicetree/bindings/arm/cix.yaml F: Documentation/devicetree/bindings/mailbox/cix,sky1-mbox.yaml +F: Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml F: arch/arm64/boot/dts/cix/ F: drivers/mailbox/cix-mailbox.c K: \bcix\b -- 2.50.1