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 81FDBD6D232 for ; Thu, 18 Dec 2025 15:13:01 +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=TJDCK66wwuwGK7pB5a1W3tyataKqmCrrpkdwGsRMiFU=; b=Is/nmOE+V9l0sa L5o3WWfALgD7VmubZLQFnUzRxG9Biw5EPKAsN8PrFqCI7015GJZbUUvI34YyOcvsF4ZysYskYK2Rc p+FQCmScPx9px1KHOrcqu1G4x5Geft35mZXTnx3ZC5mwQHQAfpY/7C1D8H4XsMc1btgBpvbIEI4zV rjXNJhZksk3QSoL9fOZE0N21ZdujJowmeGUw5rpjZmlcmrJYTFRqScCld1cq6vhKge9pDWRwRzGv1 j4LEQIqGx3i5mitJFdsB5pBNYPgAUSrImish6obfZw68hBMYVDG7/PUdMoRNM2/YpsYyAJFGzxHIl v1KDSJ24McKQ25QlQjNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWFgO-00000008fEE-0Xhb; Thu, 18 Dec 2025 15:12:48 +0000 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWFgK-00000008fAk-0hVA for linux-riscv@lists.infradead.org; Thu, 18 Dec 2025 15:12:45 +0000 Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-8b2d6df99c5so179079685a.1 for ; Thu, 18 Dec 2025 07:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1766070763; x=1766675563; 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=oxyyAVz+sgzum76hhNZkaYgPP0OtOtVsykA+Y1mmKUg=; b=ARs81t37QFV3c9i4CDOZqVkTuzzpKA+gsR8y/hXxx7B5QID8qwIv3OlvhCfEm0XEM6 SRWrsdowlT0R54Nq+ntfK6Ldbrvx0AELDEJmPqxKCeG46OGYOANLsrnBb0G3y7vvKtO/ /jTTpzikONnrGTbDIrCRLCujEkLVjdBCpU2Ew+Zf80w3L8sucmbvILN4E++PdctW9vnz IPM3+K3XE1ejE9tlQer74f3z8sQIa/EfdNdTE0wMkjRhusYIXVstbglCVI18E2ca7W0t MArxT6xFr5bViTrHNK6l7ly8eMh/6GtBfdIksR2g/89+y5nTvFsOz49BCBlXanTUsiVM K8/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766070763; x=1766675563; 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=oxyyAVz+sgzum76hhNZkaYgPP0OtOtVsykA+Y1mmKUg=; b=uD1vSl5l9NONyLifyMso29+vafl3563lWpt6iu2lBm2nyuz0seqD9YMiWAXP8ayrOw TG/5dcuF72BxQqEy3Njx/Y6lClHQBEyhoELylq4j10Whl5BPHYuzMajxIh6AtsWaVbid TMaEsdKndhyVetY/7vDPi8zg8g4rQO34qzsVD64wD/BB2B8Yie0lZezrld2H6DsyBifs VSOjMqVGOla+Q2cmBWFHv+qThHIgCmRQ75MAIH3cV2UV3DGTCRD7v4UTz1ZHvK/DvKAP oTvNsTaAoPGkTfIX9hPUaHrnz6L9yaUDTDOqQtHR88N3oeKFIo0MdNyWOgojJI0PWhk8 CPjQ== X-Forwarded-Encrypted: i=1; AJvYcCV6GwPjuCY2NGj/0VUG7dHS+J2xuMDlnoVdqp8u20dHmfkqRSVDGhAjRcLM+8VIxYpVGkyUhOvW9msy/Q==@lists.infradead.org X-Gm-Message-State: AOJu0YymaLNTNw+Z5HHFdQ9GBXoRu8ztg9V6KCo5GYz8yi2KXBRoB4Ce QLWU6BKSo8Zz1+et58eAL6sL0sNlvs4ZYtESB+GOpgII6siYKAEKS0+kcXnJGv77BjmS4tJq5SE cIUaW X-Gm-Gg: AY/fxX6wbIahUv01lYDdyOMTETK/cCyxYqcnaCfgbeQaRSsjGxGhvkUofVLjWrkkpcd dWdVxnxhQQdCAJMgytJjxYh7hPYAynkv5BNAtINriqQUGUkHSQriA5DmItYrIbWbyo1hBaXaIDX l0lLIZNAC+V083U8eYEyaltK0Hg0SbIqINCYBHW+nqTqndKbvLYrbqqdpq2/7Eocq2QJzz1GCxw p8HTTjke14DeMgbDJMpVhuo0qVt6rCXS13d+HUOGhRQvF9r71i9SUMuyJy9KCSlitPnEKLQOmA6 nyovhdmdr1VmJHnLevGpHiD6gMLssNDYGZ7ZECyCobJIbuSKV7B9YCE7ZIOye1Oe7e9J3luSx87 s8spOlJMHCKavd02l3sHZ6ZQaDw59qDZenZyerjXxq9NXXdk3bc/VOYcx7j7dBcyqyvH6WevHUk PUXUEo39wtcpiZa4nK0PFxXZBe6hi90GFIiLz0X6uJ8SWMxw0uyzfCRA== X-Google-Smtp-Source: AGHT+IFt4skkDsPUjK60b1wetqDLMvA4QbKiBZIS/djWkmayCVcOzRtJDIo76oiNu2+mujPOEGHHUw== X-Received: by 2002:a05:620a:1912:b0:8b2:eebc:64bc with SMTP id af79cd13be357-8bee75c3e36mr423410285a.35.1766070762753; Thu, 18 Dec 2025 07:12:42 -0800 (PST) Received: from zippy.localdomain (c-75-72-117-212.hsd1.mn.comcast.net. [75.72.117.212]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8beeb5d6952sm186866985a.3.2025.12.18.07.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Dec 2025 07:12:42 -0800 (PST) From: Alex Elder To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: ziyao@disroot.org, dlan@gentoo.org, guodong@riscstar.com, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, spacemit@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 2/5] dt-bindings: phy: spacemit: Introduce PCIe PHY Date: Thu, 18 Dec 2025 09:12:28 -0600 Message-ID: <20251218151235.454997-3-elder@riscstar.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251218151235.454997-1-elder@riscstar.com> References: <20251218151235.454997-1-elder@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251218_071244_217251_C562FD7B X-CRM114-Status: GOOD ( 13.66 ) 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 Add the Device Tree binding for two PCIe PHYs present on the SpacemiT K1 SoC. These PHYs are dependent on a separate combo PHY, which determines at probe time the calibration values used by the PCIe-only PHYs. Reviewed-by: Rob Herring (Arm) Signed-off-by: Alex Elder --- .../bindings/phy/spacemit,k1-pcie-phy.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml new file mode 100644 index 0000000000000..019b28349be75 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/spacemit,k1-pcie-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K1 PCIe PHY + +maintainers: + - Alex Elder + +description: > + Two PHYs on the SpacemiT K1 SoC used for only for PCIe. These + PHYs must be configured using calibration values that are + determined by a third "combo PHY". The combo PHY determines + these calibration values during probe so they can be used for + the two PCIe-only PHYs. + + The PHY uses an external oscillator as a reference clock. During + normal operation, the PCIe host driver is responsible for ensuring + all other clocks needed by a PHY are enabled, and all resets + affecting the PHY are deasserted. + +properties: + compatible: + const: spacemit,k1-pcie-phy + + reg: + items: + - description: PHY control registers + + clocks: + items: + - description: External oscillator used by the PHY PLL + + clock-names: + const: refclk + + resets: + items: + - description: PHY reset; remains deasserted after initialization + + reset-names: + const: phy + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + phy@c0c10000 { + compatible = "spacemit,k1-pcie-phy"; + reg = <0xc0c10000 0x1000>; + clocks = <&vctcxo_24m>; + clock-names = "refclk"; + resets = <&syscon_apmu RESET_PCIE1_GLOBAL>; + reset-names = "phy"; + #phy-cells = <0>; + }; -- 2.48.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv