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 A9653606A329 for ; Mon, 30 Nov 2026 10:45:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ota7+IVW DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=Nz/WV71LAxbGnAPUUflCtfr1TsoJ7wXUaWArG/l1GgA=; b=Ota7+IVWI/TLWYqEagqRcNcRq3 xZKKsVKE6Zy8JVxvglgCi4+B67zfbGtg7/soMxan3NQTXZOxp5S0Pj49foYsvkHjbM5Cg+MXv8mXh wJ6+smeRzenL3h58Mo6qIOIUHQFs28WX+OeD3hQrPZOFuymjSUYS8WrGqKUwWugqORAes5ntOf2ze g71Qm6GZEVY/yeEZNPnHMHyqwcyOauB8qIyz5eKxiv/o7L5zimlDDPxAR49mSMOUaMl32NFtOm5yr of3t6t+p2W+j4N0Sj+4ETa3dTjnEsKGCvTRA+6A+UGt9V1DvDsCSVZMoCxUvZSjIAJzTYLCO02xgK wFqYpXbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXytD-00000004Bvd-1ewp; Mon, 30 Nov 2026 10:45:43 +0000 Received: from mail-japaneastazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c405::5] helo=TYPPR03CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXyst-00000004Bqk-4AcM; Mon, 30 Nov 2026 10:45:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xzimvQjzLf0sVcoY+ENJRCojNAF+FdYfcHaE7Ed4zp35qOki9Rr8DfYQ2Q2lo6zRSaCyeqB36kaaYVH3hkDQyWUXZOSJaBgIf7bZxQOnhO8piQD2JsTklB93fgFnV1u2rceTAh7RWNuDLAE/DRB9DX+oWpDtcZ1iF/LFFFU/ZextyjahR2lHXiO/SQQ6OlYY5kzPEbcoVat52HGKy47xf0M/CfchGHCDCRCiuMzmgG+ulgjSarN3vJqmxH5DN9l+XIZbuJvZjtFCVRnowIEqWLSusIu2IkISH4mJh+ql2AfaBOP9pXMbMxdDGgNdvgWmTXM2HhuozZCZ6c9gZQPwEQ== 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=WTYgrEiTtfEwXNsbKEHZ7ieG5YjLmWti19/8nUxqSCj6k2ybo78dxnKuybDB0s5ex1u9HrOxl7j7Hg3S4O42Apwcj1Zo3j/rib0wlww7wpXMGBu0hgw6RLVKGJajn1zHY/GUq2oiCT1LyXXtlLY9YZ18/QJi1nZ3XijkIRpjrnjzz1Ht0E+YQM+NuvWHL1vPwoT+osLQZvUHmbqzTH2md1JC8ZOqyAekz2nnpqNvDkKbMEBsNDmJnhqOxCmloRLqqfJsxRSkY4hedIhJnvan/LNHlv21+DsaHntE8Gqat0iVwb4S2jC9ySyhr0WL+BfnTgomoS/qJEelX6XO1nAeNg== 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 TYCP286CA0047.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b5::18) by SG2PR06MB5105.apcprd06.prod.outlook.com (2603:1096:4:1c8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.8; Mon, 30 Nov 2026 10:45:14 +0000 Received: from TY2PEPF0000AB86.apcprd03.prod.outlook.com (2603:1096:400:2b5:cafe::a3) by TYCP286CA0047.outlook.office365.com (2603:1096:400:2b5::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.13 via Frontend Transport; Mon, 30 Nov 2026 10:45: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 TY2PEPF0000AB86.mail.protection.outlook.com (10.167.253.10) 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 10:45:13 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 20541427EFC7; Mon, 30 Nov 2026 18:45:12 +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 v4 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Mon, 30 Nov 2026 18:45:10 +0800 Message-ID: <20261130104511.3639267-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261130104511.3639267-1-gary.yang@cixtech.com> References: <20261130104511.3639267-1-gary.yang@cixtech.com> X-Archived-By: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PEPF0000AB86:EE_|SG2PR06MB5105:EE_ X-MS-Office365-Filtering-Correlation-Id: a9e77f8d-a202-4600-6645-08df4ecf0396 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|82310400026|36860700016|1800799024|23010399003|6133799003|21026099003|20046099003|261009223027099003|22082099003|18002099003|5123799003|3023799007|10067099003|56012099006|261102123227099003|261028144727099003|261026140227099003|261026121527099003|261022075727099003|261022105027099003|261021121427099003; X-Microsoft-Antispam-Message-Info: 1gpoLdjNZCg69R822QV25IwHI41JHBM9wx4feWNhSwVAxx/X/ZDoiKxi0FBP6bHeTbQ6EwyKt9Q/0xFNL6Gl39hu+v91qChlMK7TmnffDQBogBZVX2jtEFV+VJtvt9xuWN8kJP0Vdxl8XLBcf1wv1v0Rp2FyBTWYPYF+mAYl6GhWrbKHP6q9pWk5eYZcKF2k0SK8phJ4oXZxdGwyDycPzsffROMHrj23++5W8YHOE7VyXflISVk34k1xWt5FaOvBqTUOBR71aG/zUkZbKNr1CsQh4YRFXP+bHq0nFg4nz/YCQhEMEZCWOKm+uApwbEb9vlkpqIXf1geoJKo7SNLNDEvRLua3aKJQNsc/OwuYqSWToYAJGURvBzOnsLQt8jcHdJm1kFdXmXsJgX2ZJ0AzkiYs0DUpNLhrHi1PWtZDx2iy0zj08+uxg5xGmHDnF1tU+CpgO7EaZFa5vmISLqci6FW8U7ClJrqVq5NPx6iqZInMaBjEnsLQl6VUI2UV6pVwBss/Y7LZjCMGJdVN88ZthTnEPEjkTJffpdLYQ/dyzyLl48q0O4KJ9pWyrfaht5X4Ykk3mtahMwa/gUXuVrPSbePaRPizGH9ZN5ZKzLOeeZ13QgAjVFJjhEvsOuRu/9/03p0TjQ5vvu1OxuJ3HXrs7A== 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)(7416014)(376014)(82310400026)(36860700016)(1800799024)(23010399003)(6133799003)(21026099003)(20046099003)(261009223027099003)(22082099003)(18002099003)(5123799003)(3023799007)(10067099003)(56012099006)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(261022075727099003)(261022105027099003)(261021121427099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MBsQ3BZKSu6nVWBwlSh9xyXuH8ppcO063lHznT/WruTSDsj41ub02NBmjs0lcuQ7lM5FhxOIC3THpRFQLfRBHFMq+JKK04rtahyVW642cExIlT08o4X3tnO3d2qkquphe87q01dHqUl51t8KxiMnZzQlo3c/7Zftt0R2+V2n/RwtR8mXxdKVynUzETrqI667/dNsfb7rmVfc0qIh4q5SgwAfFNEb7z6ldx4aPe+Ti3aV131IAzPXdJNjqQodO0Fyp1WkgZyGlj8Ux1XhzKaPXSWL/dtXf0uisiaFG+wb4s1l2vc5Vk/dQJu2HBXTyqjE9ph+mCdt4r6mbP3e+2h2vDPDnWKZNeQY/2hnlM6m3EANouCGY89o1tTbXghBp5JamFgEcAzXplXnNDBs5hHiY+34ZPW9DEWuLJOHZkpFzanKaEg9LVjOF4uQDtaQovdm X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 10:45:13.1762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9e77f8d-a202-4600-6645-08df4ecf0396 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: TY2PEPF0000AB86.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB5105 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_024526_796993_DE1461B1 X-CRM114-Status: GOOD ( 15.32 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-16.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,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. 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy