From nobody Mon Dec 15 23:04:05 2025 Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8232826B95E; Fri, 18 Apr 2025 13:20:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744982464; cv=none; b=nCb7NJ3x1QFZhe2N0nph/ghCU7PGoVKC7p0Uk4h7E8Q6M3DhQ7aU8BK98SpQVXaQd9853ITfCbN19FPKYtrJsOPqmAJaI0hXs6REgHaC196qSw+5/7a8OItbqwWrI6yhUEc3LAuG9LNfS8iaDpezVei+gXLW6W7S/mVbIdGXGv4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744982464; c=relaxed/simple; bh=D1sL+MKoiWYnzCfw5VcjgVF7TsQUjYsMqff/OclGflw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XKoJ0r6CdHC5ePc1RhevHTmU+E7wD8Oe55AWrLz+a2ntZRQScAiPrFOGbZnPE80vkOfxhaq/S/zuY++WKySW/STkOV13tU1YvRaLnxAbVMlNTnCyzUDxidi1NhInC4yzi8UVs01ZW1y7KT6t5YBwWdeQqa00gLkfKULQ5qKW7Wk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=whut.edu.cn; spf=pass smtp.mailfrom=whut.edu.cn; arc=none smtp.client-ip=45.254.49.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=whut.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=whut.edu.cn Received: from [127.0.0.1] (gy-adaptive-ssl-proxy-3-entmail-virt135.gy.ntes [27.18.99.221]) by smtp.qiye.163.com (Hmail) with ESMTP id 125ec8787; Fri, 18 Apr 2025 21:20:52 +0800 (GMT+08:00) From: Ze Huang Date: Fri, 18 Apr 2025 21:19:51 +0800 Subject: [PATCH v2 2/4] dt-bindings: phy: spacemit: add K1 PCIe/USB3 combo PHY Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250418-b4-k1-usb3-phy-v2-v2-2-b69e02da84eb@whut.edu.cn> References: <20250418-b4-k1-usb3-phy-v2-v2-0-b69e02da84eb@whut.edu.cn> In-Reply-To: <20250418-b4-k1-usb3-phy-v2-v2-0-b69e02da84eb@whut.edu.cn> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Philipp Zabel Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, Ze Huang , Junzhong Pan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1744982442; l=2608; i=huangze@whut.edu.cn; s=20250325; h=from:subject:message-id; bh=D1sL+MKoiWYnzCfw5VcjgVF7TsQUjYsMqff/OclGflw=; b=AfFJSTjO27VFPjy91K6/Q14+WOfJE+34cDvt4xOWsI//lonQ579XfxmNnIJgR4nR03wp5iwJy SvkK6bjGMCuBhohwD9ZYwTVdlaxiGXim1ca5R0Y8okbUr+BWzb1ItV7 X-Developer-Key: i=huangze@whut.edu.cn; a=ed25519; pk=C3zfn/kH6oMJickaXBa8dxTZO68EBiD93F+tAenboRA= X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDGE4aVh4eSEtKH0lMGk1KH1YeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlJTFVKQ1VCQlVJSUpZV1kWGg8SFR0UWUFZT0tIVUpLSUhCS0NVSktLVUpCWQ Y+ X-HM-Tid: 0a96490f2b8603a1kunm125ec8787 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PDY6Szo4IzJCDgkpPwkBEUgX NhMKCwxVSlVKTE9PQkNJT05DSk9KVTMWGhIXVRMOGhUcAR47DBMOD1UeHw5VGBVFWVdZEgtZQVlJ TFVKQ1VCQlVJSUpZV1kIAVlBT0tJTDcG Introduce support for SpacemiT K1 PCIe/USB3 combo PHY controller. PCIe portA and USB3 controller share this phy, only one of them can work at any given application scenario. Co-developed-by: Junzhong Pan Signed-off-by: Ze Huang Reviewed-by: Rob Herring (Arm) --- .../bindings/phy/spacemit,k1-combphy.yaml | 72 ++++++++++++++++++= ++++ 1 file changed, 72 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/spacemit,k1-combphy.yaml= b/Documentation/devicetree/bindings/phy/spacemit,k1-combphy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3c2e7dfb34a27b5d9e0a14193d0= cc1c64c16c8f5 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k1-combphy.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/spacemit,k1-combphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K1 PCIe/USB3 Combo PHY + +maintainers: + - Ze Huang + +description: + Combo PHY on SpacemiT K1 SoC. PCIe port A and USB3 controller share this + phy, only one of PCIe port A and USB3 port can work at any given applica= tion + scenario. + +properties: + compatible: + const: spacemit,k1-combphy + + reg: + items: + - description: PHY control registers + - description: PCIe/USB3 mode selection register + + reg-names: + items: + - const: ctrl + - const: sel + + resets: + maxItems: 1 + + "#phy-cells": + const: 1 + description: + Indicates the PHY mode to select. The value determines whether the P= HY + operates in PCIe or USB3 mode. + + spacemit,lfps-threshold: + description: + Controls the LFPS signal detection threshold, affects polling.LFPS + handshake. Lower the threshold when core voltage rises. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0xff + + spacemit,rx-always-on: + description: + Affects RX.detect, enhance compatibility of some DFPs in device mode= but + increase power consumption. + type: boolean + +required: + - compatible + - reg + - reg-names + - resets + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@c0b10000 { + compatible =3D "spacemit,k1-combphy"; + reg =3D <0xc0b10000 0x800>, + <0xd4282910 0x400>; + reg-names =3D "ctrl", "sel"; + resets =3D <&syscon_apmu 19>; + #phy-cells =3D <1>; + }; --=20 2.49.0