From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4F03CD13D2 for ; Thu, 30 Apr 2026 02:29:07 +0000 (UTC) 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-Owner; bh=1Db+SY5bnYnYcwEEZ86tGhE3KDzQP4OXJ13MzclnZxw=; b=gTCmY0nfxdR//B 2erfn4Y532/2fTjJm63r6+avUyUogLW/zxh2SZfa7VV4ufHbMEvR92hSNX3v9zMeQkoA+k9432yVr kM5KO1BGgojbX05ywf7QS30xAjlajKJNn+XCdJ8+o8K/ByrQd+CaTr0jO9sg2ghgAFfW1gnzEVeJy K5zxJbBNpQmzx3dLZp6Vdtcu60OSHlx+gOD1WT/n8Y/IcubF/mJbpDhQCuTqgtBo5VggkWBSV7VJn 1/gNZP2Ct9JaOoC5OEPlmavHEI+w0g94rgL2q4hMfdJwSCtg8/LwOOKzLyhrBbSROSodKzXiSvI51 DBqJrGcVhCw5mPIwJ0Kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wIH9C-00000004SDh-0Trp; Thu, 30 Apr 2026 02:29:02 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wIH99-00000004SC4-3FTH for linux-riscv@lists.infradead.org; Thu, 30 Apr 2026 02:29:01 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-c795f096fa5so128253a12.3 for ; Wed, 29 Apr 2026 19:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777516139; x=1778120939; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yamg2LURb/TSAJp5ESv6zShjxXxQYQ9667SLJMB3Nuc=; b=sEx7JQw8Ym8zXW7TYXjOogQPTKGESEJNOlKPH5VD1MZim+9JDrmJ4YdZly2mFbgJWh TqxK7O9FeOjjD/Pn7Cb9+FlR5OKihxmZ09iGvBta0S3VxZ/bhAjQQM71dAia5U200tFz ombJeveD7g9PoLlW0spnjbMWiwvRiUStwlh4Zq+txdecZdYWC6Z/xKumNfR1gqCvp31e +Ut6ETnYntIV8twtdbf3nlnS6PIbE+SJgkB0pxyScGkYee8VP22Z82uYFJ4Mdnrty/rR zHwjfybRg5P9t8QkCJHalUC5d3tmZjcV0+M1FDsaooN26mIMvprNlWBR26YtR9sZD2Nk 5Wvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777516139; x=1778120939; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=yamg2LURb/TSAJp5ESv6zShjxXxQYQ9667SLJMB3Nuc=; b=c3iTLV4h9URNM5ck+zY68Jftf0LLtOvCyymlG+khMMBKgyv9vXYIPxcsGcNxM7AJqD eGsDcuqTOevwNF59dk6L3gb/tV61J9Ijiv0ODK1wq+ZJmeYCnhC7AfUdXXRt8tcs99iE 78TijAYhN0xthL3M+VHNolghfSt+XbbHjm6uxvAcoGtsyDkbpcsMygz3Uu25An60QmPy j4Q6xuup0kVbJwX0f+6L4fCPWSyvnqXJEcXhFH4Qrftzv2a2eCZ8u9SFnt0d80kQYeLa WVeX01cwDnRg0Ru0M2DaAxWda11H63rpExhJuXHoULoV0Guav8YzcF2SiXbjGiF8O2dI h2zA== X-Forwarded-Encrypted: i=1; AFNElJ9kE4e/FDJgGRIAfHzdVF8hhOdD7egfGptIimd/jp1EppO5pzKkEpcKz24p22qLSy0jP9S6JKC57dJXbw==@lists.infradead.org X-Gm-Message-State: AOJu0Yx5FYYfI5UBZd7R+H5QdoKNrt7HuJR0dNFIn/aVzLn4XqbH+Wbx ahji1iHWIEkagpIfApbu5KC4z29Hadt7plqBs5evZFg6zSWCR8G7ThCg X-Gm-Gg: AeBDiesTln0dx2wtCkaDKitcMwL9QWDCYmqXhOiUtpzGxEs7CBg1wGxJkyVuEepiIMT TtqxXfvm/AwKaFW6aFq4jGye7M/Xev+BY8YUT1n6h3oqdbBej+XIOlduqe6Jf3IWnKfx8PyOKfz 2NbblIIdaQBX0XFo5By5NyW8PP3/JgxjbSPEPAt10RmZ8vrw6T2WfQ2DPm0csdjXuGjPWjgtvLW 5NHSyM8dV5dqXcAxEOD6CtaHii6RCCZtHvt5IRE3usvWMI2j3TNJPxy7LaFsVcE25xngkVHAL6u Z6jzUgkKvOYZHBbymBrA0Aq41imVWFKwaXRK+fvXILWWyfDTtJN34v1i/FYdOP0gv3idIdIUV4p G50223XJ9GclkjziKx7RNj7t78YShM8NW9ndsJuesmpp7StDgyhPB7HzCoVmbuvsc3uZc0t6odq LlMtuiS2LER7+0kwDOmyUyR7VPTMwddAwGlw== X-Received: by 2002:a05:6a20:1aa3:b0:3a1:90fd:dcd6 with SMTP id adf61e73a8af0-3a3cf6b2d12mr738604637.31.1777516138751; Wed, 29 Apr 2026 19:28:58 -0700 (PDT) Received: from localhost ([2001:19f0:8001:1b2d:5400:5ff:fefa:a95d]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c7fd64f0a08sm3373649a12.15.2026.04.29.19.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 19:28:58 -0700 (PDT) From: Inochi Amaoto To: Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Kees Cook , "Gustavo A. R. Silva" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Inochi Amaoto , Ze Huang , Alex Elder Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Yixun Lan , Longbin Li Subject: [PATCH 1/2] dt-bindings: phy: Add Spacemit K3 USB3/PCIe comb phy support Date: Thu, 30 Apr 2026 10:28:40 +0800 Message-ID: <20260430022843.1090138-2-inochiama@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260430022843.1090138-1-inochiama@gmail.com> References: <20260430022843.1090138-1-inochiama@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260429_192859_847843_94469BEE X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The USB3/PCIe comb PHY on the K3 is a complex PHY group that can provide multiple phy for both PCIe and USB controller. Its mux configuration is controlled by the APMU syscon device. Signed-off-by: Inochi Amaoto --- .../bindings/phy/spacemit,k3-comb-phy.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/spacemit,k3-comb-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/spacemit,k3-comb-phy.yaml b/Documentation/devicetree/bindings/phy/spacemit,k3-comb-phy.yaml new file mode 100644 index 000000000000..7aa2cf9301b7 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k3-comb-phy.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/spacemit,k3-comb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Spacemit K3 PCIE/USB3 Comb PHY + +maintainers: + - Inochi Amaoto + +properties: + compatible: + const: spacemit,k3-comb-phy + + reg: + maxItems: 1 + + "#phy-cells": + const: 2 + description: + The first one is phy id, the second one is phy type. + + spacemit,apb-spare: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to APB SPARE system controller interface, used for + PHY calibration. + + spacemit,apmu: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle of APMU syscon + - description: configuration of the PHY lanes + description: | + Phandle to control PHY mux configuration. The configuration + is described as follows: + bit 4: 0 - PCIe A x8 mode, 1 - PCIe lane share mode + bit 3: 0 - PCIe A x4 mode, 1 - PCIe A x2 and PCIe B x2 mode + bit 2: 0 - PCIe C lane 0 is PCIe mode , 1 - USB mode + bit 1: 0 - PCIe C lane 1 is PCIe mode , 1 - USB mode + bit 0: 0 - PCIe D lane is PCIe mode , 1 - USB mode + + The bit[3:0] is only valid when bit 4 is 1. + +required: + - compatible + - "#phy-cells" + - spacemit,apb-spare + - spacemit,apmu + +additionalProperties: false + +examples: + - | + phy@81d00000 { + compatible = "spacemit,k3-comb-phy"; + reg = <0x81d00000 0x600000>; + #phy-cells = <2>; + spacemit,apb-spare = <&apb_spare>; + spacemit,apmu = <&apmu 0x00>; + }; -- 2.54.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv