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 13BBFCCD18D for ; Mon, 13 Oct 2025 15:35:39 +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=jCXlHH8PiJm7mbVZ+0cvWwdS87Q9zNNT0SEPqCAL1NY=; b=SK5tTWZltMa4Ri CWUcPYGyRfPLbYR+LeP9PQbEXADiz6oTik8nIT1A1lpCcWwGNS2S3M0U+b751x/M38tKy1CuMkB6x Tqh93F1AUlnHhVyTimiNCGIKukoxK0W9ZamcNQDeKJ9SJpUw9wVTpILwoNaEYQDyKN2nHpfz1Gg0I 267xZKRRevW+qylUSRxoRyi4TmR2Ae1pwLDMtbUk6jtvoE7bJscaIuOczCony5L21ST9aCu/mnI7z i6z+wubE3zISGs4RYaZJGrl51R9tvLGRNekA2hgCXlktjCyj+WWrNqKTWUve9a7GcxkpjFHqFqi0A v35QnaPAobyOQeg8sDjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8KaI-0000000Di73-34LS; Mon, 13 Oct 2025 15:35:38 +0000 Received: from mail-il1-x143.google.com ([2607:f8b0:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8KaF-0000000Di2n-2P1p for linux-phy@lists.infradead.org; Mon, 13 Oct 2025 15:35:37 +0000 Received: by mail-il1-x143.google.com with SMTP id e9e14a558f8ab-428551be643so37147835ab.3 for ; Mon, 13 Oct 2025 08:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1760369734; x=1760974534; 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=ItZ4QqP7CdgD+87y0OCgM795Wvqv9yPDWR/uT7250ws=; b=DGURoEUESi546sj3gKKOdd18OIPXcupN6aBnFxBH8hHrPFwAXb/3t+zATwcWfEVLxT 1D3iVlQgsMPPAPvSgzVrQCgBzUjgQAGsAyTtXOpoSjj9475cKyK1pIcHrporUG6UM/5I bGQ1BOnqKdy2wbwE1KdUmKAJHPrZLHaWQmCuV0ZjjLcjcaj6kSfi1pyL2NezukI4vR6S xIsjkCR3bvht9TuWGNifUdiHEsyMBU2OWumYURpwz54zajiBFRhunGVArHfhYlIdQNve fD75SeZ/2fk5LEukRgGmR3CGadZ++v+dsl+gsC6vTdDQ5bPueHFnpIXg3WvemoL+S9Qu KWnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760369734; x=1760974534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ItZ4QqP7CdgD+87y0OCgM795Wvqv9yPDWR/uT7250ws=; b=rprkcVhqjUJjDrh6lk3suV8HtNRGF1h8IxkQpTGTaiZRv9PG0tSzq+zalvnkdLXLno nJYNxMfEqL4ut3kN2ptk7F3js7lRtc+cQEQvjkqhjolum9NzAmNzQjw5v+VTzub0wKN1 LDocfgEDtOZf1u5Znkcwgrcwjz2pcc7VpQD0WXFyX8tEgVY+Avc88OC93vly0wXu0hKX z+bfiH84uCizf34mN+iwxaO0P20+JvoVzTjz1XbKVfMlvV8mZlLtVS2GV/AOJhy6TD46 vmSnmXPnJcXdJsY2mbZmQnkmB85q5sEn34pEa97tYST6QEeq0YbmTqLQDAspu4c8zfTM v51Q== X-Forwarded-Encrypted: i=1; AJvYcCWb4kgRlcLvkOpvxSlcbz8w5oFTwyNeTj5Le64OgVFX6M9Sr0HeWJj6Jz9fH606TXly1W19ICR+SgM=@lists.infradead.org X-Gm-Message-State: AOJu0Yzb1/Q9UwjYVeFYUJWSyLS5zkoOETtuPQTLYsyTiZzeKTkLPNoO wC1PG/tR5Rgk3Bu0WkzAisCPEPwEXuiOlrPy5+yZnYaGzi0nZfS8aLoaiA1OK8/7Ehk= X-Gm-Gg: ASbGncsOqT1r+O1hDoYMiB7rMXfWbMEsbahI3BadEq5OAQ1arO6s+SqVhxnCW3wNtB9 Y1actJ3d65MCS3fcIGZmpnIRogrJxmUMDKGfm84nahxKhhj8NY6Ytfy8xYbdgawOYOxhlvv4Tl5 TueGimcZ76wNVcqs0y47ps+ww9MK3r+V07Hr0QKosSQ8Tma4JNann3G5SpZro9PxDs3GJez+1YV OhXV03sG7ijMxJ6EPBjr0jF+sPyhbqAAcYXF8/ToWOHkXzwpGrcGwW0XhGsCk353ybvtNcnV/Qm ViYgw8sIIT3+0+EJ75IkRkFH+VXlkQkE2LZo78auXiybD103jH2LEMn9M7Y+jyZJp7skfkBYuCW VG/ywEuQzY+G9xjecLARzWGKrE9yPlkmmAvDvkYHoH0wp4541OC54fTnHeGyA9PSD/XUYktmBiu a1X7uGF5l1m+fmv18T8lY= X-Google-Smtp-Source: AGHT+IFmberiHinW0psgBSVXvfzyFWo7xiMin2ObR4QgSx+XvFz7VLt0jdPRSfZZaq11AbbGpmoe2w== X-Received: by 2002:a05:6e02:1808:b0:42f:a6cf:8afa with SMTP id e9e14a558f8ab-42fa6cf8cc8mr116550035ab.19.1760369734595; Mon, 13 Oct 2025 08:35:34 -0700 (PDT) Received: from zippy.localdomain (c-75-72-117-212.hsd1.mn.comcast.net. [75.72.117.212]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-58f6c49b522sm3910266173.1.2025.10.13.08.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 08:35:34 -0700 (PDT) From: Alex Elder To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, bhelgaas@google.com, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, vkoul@kernel.org, kishon@kernel.org Cc: dlan@gentoo.org, guodong@riscstar.com, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, p.zabel@pengutronix.de, christian.bruel@foss.st.com, shradha.t@samsung.com, krishna.chundru@oss.qualcomm.com, qiang.yu@oss.qualcomm.com, namcao@linutronix.de, thippeswamy.havalige@amd.com, inochiama@gmail.com, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, spacemit@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/7] dt-bindings: phy: spacemit: introduce PCIe PHY Date: Mon, 13 Oct 2025 10:35:19 -0500 Message-ID: <20251013153526.2276556-3-elder@riscstar.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251013153526.2276556-1-elder@riscstar.com> References: <20251013153526.2276556-1-elder@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251013_083535_771195_D1C61148 X-CRM114-Status: GOOD ( 14.37 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=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. Signed-off-by: Alex Elder --- v2: - Added '>' to the description, and reworded it a bit - Added clocks and clock-names properties - Dropped the label and status property from the example .../bindings/phy/spacemit,k1-pcie-phy.yaml | 59 +++++++++++++++++++ 1 file changed, 59 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..c821f6cafcdae --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml @@ -0,0 +1,59 @@ +# 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: > + There are two PHYs on the SpacemiT K1 SoC used for PCIe (only). + 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 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@c0c10000 { + compatible = "spacemit,k1-pcie-phy"; + reg = <0xc0c10000 0x1000>; + clocks = <&vctcxo_24m>; + clock-names = "refclk"; + #phy-cells = <0>; + }; -- 2.48.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy