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.127.100 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796353290; b=2XnKV+bYTmWoV4pgwXCVSdtfAIC7mQHfjh+nY8Du426sf76nwkVm/H+mMRqQOP4+CHc9 WPdUzQs4I13MloyYADKcsniGE0yeQn96ffHsoEWCorUycV+c5vedbc7JCmfDhB2/Zgz4I i4HLSH9L6S/woubJsIhXiuMRCvUqGiZj/Aj+ZouOW7vd3kbfj5ga/Zydr6juApfcDa9L1 PKhYYXliMz0yTqVlSIDdKJdPwu9TJCkeZHxru3PKW0A81ffbGK/D9kSJNrEcl42xFkWG7 40XHHIZrT/lceLbI67CwLeLW2ajSUyewuzvxtYHJm1iGN+dnESeySTYNzoGGJxa9YUg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796353290; h=DMARC-Filter:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic: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=XnCNmSvOPqzjNz/TnaArupwiWWPN/EhTNFB3Wv6x1f8=; b=nMeKAA0bFW8+Z4aqOQeQ1cjqrdjUaE66mPLU/hSam17rkocHdIzeYl5s/PZ9byPOfZwl Na+ulxmWydfuOgu3grJpieXys4XR9C7QHvAoSGfBzcLrxpN3wALrhI9kAv1PVVDBBUHPN vgL6RyQtn0rM16xLEix1WExC65JBulBsYe75o+8uHPzsVs6G02uRACIKaLqVGeW9r8gfU bzZZ1mMVYihKk8Y2ogPV0YEhVVD9lcj3gBnscfshomIVQT36GNUItJWZCpGL8cB38oaUo FHqRke+eegBxZXQOl6dda0z+ospBFdAdoe0vdbxjc3eKnA+t2G6f960LVUefqPfnRUg== 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.127.100 Received: from TYDPR03CU002.outbound.protection.outlook.com (mail-japaneastazon11023100.outbound.protection.outlook.com [52.101.127.100]) (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 AEC99606A322; Fri, 4 Dec 2026 03:01:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AEC99606A322 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=hvlFSzgKHbScUtPxNs40rajrVbpNBa1rty81XjzKXC1UppO/zSuNrtoIFvmhU1T40jJ4p14GhzOwQlSKcDKT8sw4cusHtN5H8pwAvP5jMyP1L4/OM/Yw+9SJpEpuACzX5uKB3cq7t15curxF2vaG4baHZ4ECTdVv3r9ORMnR+uZteg5jLW8M282JBoKTprI6rzCBkUhUWQQFhYEh80nW7GgHQd1kh/oOmmczi1KbBUZBH/zb2EU6wY4N3ONLj6UzFOYXNvkaLcOV1APXs0SbQXyS2LN1+1XGydO/TuE7DLAqdNpWIoFe3uf9eC79Gvl9jhFOtWTaqK+XErQy588b5A== 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=XnCNmSvOPqzjNz/TnaArupwiWWPN/EhTNFB3Wv6x1f8=; b=m+KucBD+78lbj1jKkFiUR+d5wU/Wl4FEJaQMIQ9UIQD+QBdg/mUkwxND7giTYv+HKFm5gHqLQ0Ln9Qw5foHwfdxsigF5ObxbMvynMgktrpDa77tnyF3X0KCNcbLAIp6cQ9XWOYqur8JEHQwIptyR/CHvFJwJm4D1RNZnmGQ7CSqE/80EqG5BU1I/S1BhIKaoubNoc6MwEvS1Cugt44weexYFTiQhSHhmAcUZD5czbutzzYxdkQdB0NnE35hFrXpTCUzdkMNe2KvPLIBvFmgUlZL9ugz5e+RVQXgcZT2bFMC/OSNEqUTx7H4HgM6h+7BHmtgtCjxDYP8KYEW3Ic/azw== 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 KUZPR03CA0012.apcprd03.prod.outlook.com (2603:1096:d10:2a::11) by SEYPR06MB8124.apcprd06.prod.outlook.com (2603:1096:101:2f5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5; Fri, 4 Dec 2026 03:01:24 +0000 Received: from SG2PEPF000B66CA.apcprd03.prod.outlook.com (2603:1096:d10:2a:cafe::5b) by KUZPR03CA0012.outlook.office365.com (2603:1096:d10:2a::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.709.7 via Frontend Transport; Fri, 4 Dec 2026 03:01:24 +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 SG2PEPF000B66CA.mail.protection.outlook.com (10.167.240.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 03:01:23 +0000 Received: from gary-System-Product-Name (unknown [172.16.66.27]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 774D1427EFC1; Fri, 4 Dec 2026 11:01:22 +0800 (CST) Date: Fri, 4 Dec 2026 11:01:21 +0800 From: Gary Yang To: Rob Herring Cc: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Krzysztof Kozlowski , Conor Dooley , Fugang Duan , 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: Re: [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Message-ID: References: <20261203104915.231202-1-gary.yang@cixtech.com> <20261203104915.231202-2-gary.yang@cixtech.com> <20261203162138.GA3065975-robh@kernel.org> 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-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261203162138.GA3065975-robh@kernel.org> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CA:EE_|SEYPR06MB8124:EE_ X-MS-Office365-Filtering-Correlation-Id: effffae8-aa0f-4d76-9ddb-08df51b2e124 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|7416014|376014|36860700016|82310400026|261028144727099003|10067099003|261022105027099003|261026121527099003|261102123227099003|261009223027099003|261021121427099003|261022075727099003|261026140227099003|56012099006|22082099003|18002099003|6133799003|4143699003|3023799007; X-Microsoft-Antispam-Message-Info: QShMQVACgYlXasYJzFjEshsUpDwzEmEZEX4twdeJImlgR/9JgGb+gXVqXYp1uEOO6g1dPijeP2DLCL+lXlrfTxLCNZw14280YRp1tdrwJ+C2b29fzLPZ85X7JRMOAYlXBAA8VYjWa1TBb/9/b4+QQft8M4Jji93qKApwiihqOvec4eFLwym7eVONqq0Z0yKG9D8sEYD9f7npWIVJXMYuc1erY0cl743vNl/FQ3c7yyBdZxDWLF3JMJbl2VaKWpxDtUyqhmDJ1GreIY9+KB9Lo7/VrSOTpHRqIcT1oXpss5agRtH3I8EJF2BIJS6F46zK9HJTiitl+3E2EyYSh66E2eYQjgNyeIwVjjHtY8WEVSNhyJfHK+cT7uzzjzoCCwSJ1RgTtzE8q7ZrZHN1SClodyr0XW3KLVcCMoQxyeE+SR2VLezhk6RDgwJH92GXBplP0SJYwtUETxZetxkQHfVnkUPzsaT+a3aJYr5CQF/ZdgdHZ+pRVdC3UWkfqEjSxEmvqxS43IV8f5+OnM/9W2uloUEIv91BoOJMzbTZUlH09xVn1AfCDbfFwjaDbmrIW9Nx3raluNhhS/Uy9FU0Vv4H7KbQQC1zFH1IamubgGQeDg1jsERo7FPLgPLbVnB//Z8A4lsMitBKTHdOCD8Tk9Rx1w== 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)(1800799024)(7416014)(376014)(36860700016)(82310400026)(261028144727099003)(10067099003)(261022105027099003)(261026121527099003)(261102123227099003)(261009223027099003)(261021121427099003)(261022075727099003)(261026140227099003)(56012099006)(22082099003)(18002099003)(6133799003)(4143699003)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qtcPuwbwG6Vbs/iI73GMmqMEiBsy1EmrhfBm/5b8bgSMKBqoIESwQzo0VWzzX6qjAoEE/6+2F2NmXn8KclSo8541F0z+dcPAVA0PfKCNwtMViurcxsxFuhowKKyh09wD1mQKSgHNrQYIQ8LySm7AtdNWmtgL8qF1mpjQ6g/87UV0yizLmvtdL9B/PRnXvGDEixVQJgpbEva4nEY2V8yRPvU/gjdZJqzfJRGjRQA/Wp21flKSH005SveIN6Otf7ZJm46KHospWVc3EPDD6fIrH65EWh0ifHBRatZXlTRJIJA1pidAv456TJ+LHQHZ4fmZIlBPXgx9f/OTagh6v2ILl3rN8X6Lkn21DWKW1z564TlCRpJVxckn/CLBjkziGEhqCmS6fyi/QEb2S3BW3Ho/5Foaw8AiM2smP5KLwAh3kr01hMiw94vHEFcr09tyayNp X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 03:01:23.0947 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: effffae8-aa0f-4d76-9ddb-08df51b2e124 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: SG2PEPF000B66CA.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB8124 hi Rob: Thanks for your review and kindly comments! On 2026-12-03 10:21, Rob Herring wrote: > EXTERNAL EMAIL > > On Thu, Dec 03, 2026 at 06:49:14PM +0800, Gary Yang wrote: > > 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. > > Please answer sashiko. > Should clocks also describe the per-instance x4 PHY reference clock > along with clock-names? No. The reference clock of this PHY is a 24MHz crystal, and there is only a gate in clock tree. That gate is enabled by default and is never touched by the OS: neither the driver nor the device trees consume the corresponding clock IDs(CLK_TREE_USB3C_*_PHY_x4_REF / CLK_TREE_USB3C_*_PHY_REF). These IDs are added to match the IDs in the firmware clock tree and don't use them. If you have any more questions about it, please let us know. Thanks > > > + > > + 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. > > blank line OK, add a blank line in next version. > > > + port@1: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: Incoming endpoint from the USB controller. > > blank line the same Best Regards Gary > > > + 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 > >