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.126.125 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796294961; b=XPR766QN+cV9NA0zdeFNyOEGtH0yia1QENt/AduqwYH+PjNFpVUmWKcxE5ShdvgtUeu5 IuHwTXWF6UqXdaWE4sDMteyhi96I0w1eOiclTEU1j+PJn3ZPlY72jgaGAnObB0E9Sj4TB 4ssjDUFmzLnbWgNpqta3NLzBpOjaKO/S1uGlxw+leICJUv4912mF5v+X6ImujBnrc/XH6 9++qyj3hUqiFyWZhb7m3ETJZ0s22nuB8Jt+5665T4UUlKQvLi+gzWeZCUUjkArbHBb/Y9 K6ZCiZcEOfnUZwz8d477MJRSGa2UpkeHeOukafTpZ/OaWRt4z6HCVm7y+bmFpmOGuGQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796294961; 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=SJ8EzGiU9TfdAv4RFPNDqB667GgL6IsfCpVFqQ4sKGo=; b=ofIS4TbWCXZSxRsL/b2XD332p2wzwS0eIdt8Sm+GPAxEFaeP25C4+0VKofWYI4kLELCN nAH+LDBvawLxLlBsYaN4p/e3k6ft8A/XJriM/DFY/B4ci0lgfO6ylzKlA+suwR8HZ/5eH Gth5TNeTiQZl94XRXdZ0Zf1KyF5XvP6R+shu2TZMolZa+rH6Ghn0MGqq4PS+WSQNiBI2R CtddljLip016BsASCEOQUdMya+ljPT2n4i3eWCJtwsDkYQfm4mV9BIGlYgxuOI0PqgCRX AlV5ydR85974dfMoSdamiSa8m89jpa3dKgJQsWQ/10Rd3qxeiN3VKhunfcCAA3VCu2w== 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.126.125 Received: from TYPPR03CU001.outbound.protection.outlook.com (mail-japaneastazon11022125.outbound.protection.outlook.com [52.101.126.125]) (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 0286B606A32D; Thu, 3 Dec 2026 10:49:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0286B606A32D 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=k0EoBBvfzgo4CD6yjR+Rzl7xhsSv6fk3GB/X8gTn8i7BPZ5GZ1FDXrzzycxsbhKJIMwjQM0Oh7MU/nwheDKSzwCQzr4L5hpHugxMejSQIvwGNuQIjHvTXOZSUjkIHmNbmqRywR37uVt0ajOEDRFKsPE0LfVbLDIZIDftxm4bGk/Qf1zWf2PuV2k4l0ulpV635WSvPGylL+VrncwgBdjZ0CAck68vgJGrul6kqIhJOO80uH59oriygc18ZggSDkvQw9KKvqI5U1mTilyBYAL7O1sWDfqh3em6L6FT61eNGutXw98JkaCgVWFGt1xzyHtN7DnIRrRMuwEb0pl59dzuDg== 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=SJ8EzGiU9TfdAv4RFPNDqB667GgL6IsfCpVFqQ4sKGo=; b=b/BtNabuwDHJC2d7Qt6yHJAHqkWdCxAC1fTtCm0630+Z820CJYlSx3oZu+7/yfiiw7y6QG6ks6XA7RALLCP0Do2IclPmKB4uwz5D+ERer+ykMd3ocB3gOTHK6zSZDIB9VesATZRoDynDO3j8AnN39H9r25gG48AQDZGnQG3Ll0yxyz07HRVD/AqFH0Vyfopm34SC5ybF3/h/ItcBA05lB8QHFXlKgwDrLsKR+rCRU+wOJgihlNzSAVWCw8arUKOR00N1MvDsoY/L9zyCtJmR892qS1VepERsFoHi6sPHT5FMCpMiLIIJViZ7qruL9MdvGcvx/A0VeDmJRayRVf36EA== 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 JH0PR01CA0051.apcprd01.prod.exchangelabs.com (2603:1096:990:5d::17) by KUYPR06MB9015.apcprd06.prod.outlook.com (2603:1096:d10:74::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.5; Thu, 3 Dec 2026 10:49:16 +0000 Received: from SG2PEPF000B66CC.apcprd03.prod.outlook.com (2603:1096:990:5d:cafe::6a) by JH0PR01CA0051.outlook.office365.com (2603:1096:990:5d::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.12 via Frontend Transport; Thu, 3 Dec 2026 10:49:16 +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 SG2PEPF000B66CC.mail.protection.outlook.com (10.167.240.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 10:49:16 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id A01A9427EFDF; Thu, 3 Dec 2026 18:49:15 +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 v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Date: Thu, 3 Dec 2026 18:49:14 +0800 Message-ID: <20261203104915.231202-2-gary.yang@cixtech.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261203104915.231202-1-gary.yang@cixtech.com> References: <20261203104915.231202-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: SG2PEPF000B66CC:EE_|KUYPR06MB9015:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 96322cc9-0b12-47a7-f481-08df512b13b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|82310400026|1800799024|7416014|376014|6133799003|261009223027099003|18002099003|22082099003|3023799007|10067099003|56012099006|261102123227099003|261026140227099003|261026121527099003|261021121427099003|261022075727099003|261022105027099003|261028144727099003; X-Microsoft-Antispam-Message-Info: odqaKwD1VHtNWm+xt9vdaBstztxN8UU2ajYsPUTZjnLP0a3Wn3hryB3G2YOedK6iAl6qhXQHyCuV6Veqp5R1tdIg3velIhi6Cq52tKgECKPRSNgeiHDCGktaKQaa9k/OASlsjQ4125aAb6OwYEOw0jpuK4EmfsUlblSuaW5lnZMVD7a186wqWfc+7SS6T8c0CQGOLLe7FpwHNel2etAf1/w+3+aVUSUkKGME2gau6K89ofNk0U6sK2l9t+SlAzo+q84y2OIJh7EesWJ1BOXW3W2BZicCn+diE7KvvS7xVvKVDMNCcWqxdWsB2qA9TSVJLf50A4OLYRO4sjNadCV4x21XOSarjKjZSixZ6lakrjgTW5jfykoFIqff7fEHtNTnyS7H9d5Ceso4PuZuB9qrHi4l0pYjcce90vNmDvaxqr5vU3IhConu7Go60NnE2ItDqU0TcAUvMzRsb3thCxUa/MmA3ADpq0HzJ7qUjhjokwfPz2Wpp6ax2RY5Fk69BMubKgwF9pzoXcXAO25ZJ0wBZY7i/TN34eJMGo81ast2bpMpiT2lWEF9x78hRcQ8bi5x/4KWmz3G8KD/AWfxRGjrrgtyEW7Pmbz9jAQz4hIFb59O/aaGy4TCie7LSZ40VYLb1iuXEdR4yQcqM3pM2VrFVw== 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)(82310400026)(1800799024)(7416014)(376014)(6133799003)(261009223027099003)(18002099003)(22082099003)(3023799007)(10067099003)(56012099006)(261102123227099003)(261026140227099003)(261026121527099003)(261021121427099003)(261022075727099003)(261022105027099003)(261028144727099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Z3ZEpK++3TReB3y0qeT3ssTSlu62vwCAeEa/D0bweJvsrODJuCffgMzoiwgfifZ4TK5KExANAWdLKOd6Y/TcXceGF2p/j/CIz3llFVuPF+63xvEItj2xOWzbjOgx+iDYvZammB1Y3MsYrEBZ27hUC4cEpIdpByaYEP3FOP7cP55WA4x62DvPN4g+cqbzdaNjw8be/U528Q0jT8Zt/ij0ECxn/foSRG2zJ4MJqytFv6H2lSraWd5im+fC6mpY0FAw++wqFex0AfiLzo0IshR51njp0kSJn+EgTS1YRXf9QNolraiz0tmm6OQQyDGhpcHLQp7+6P0PcoMHv0gJELU1jK/c0zA+o0PsL9r+V07Lp1/7xYhdzkbrFZNSgdldU7aHkp6maR1iBaZzzHjI5DDuCA9DLx0m5raz5B6sMGEvxpcWzicgcxdIg2uANWH6M0oA X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 10:49:16.3443 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96322cc9-0b12-47a7-f481-08df512b13b1 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: SG2PEPF000B66CC.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KUYPR06MB9015 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 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 | 148 ++++++++++++++++++ 1 file changed, 148 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..0dd518768f33 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml @@ -0,0 +1,148 @@ +# 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