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 91562CA0EE7 for ; Wed, 13 Aug 2025 22:46:31 +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=7p/BBDScFFMrHNC121f0+wdcN/6rUaoEDBTpzL1hioQ=; b=Wr88BG9tGdJn9l UFxfidw4sNNE5NndSEYrMMtt2uW8z/iRlhJk/TDrFtEHXyBwJ+N3hQaJy9hXhS53ghFcAswQOkp4I 8ifb4+yXeJtu14rIJ6i5ST14UjvwkN4BNNHspKQlCpC1HuRe1/4gAHK5EMx1qaeictju8BCE9uTRr uyFhuUUjshjY4I5OKPZLgn7JZRzQGZYSZEcq+8Bi+d05pwZPXTpIFO8hWrQk2xeokZN6t/A3A5PkB d6bcjjauN1ypokS01NtSnV456aulR4jSslMWV30AgaLyeJZldy3C/TLpkvkTupxY0KelXb90Aou5l +qSaWX5x1mxyk6Ciu3Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1umKEp-0000000FBdC-1Kgt; Wed, 13 Aug 2025 22:46:31 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1umGVD-0000000EjKu-3ZAB for linux-phy@lists.infradead.org; Wed, 13 Aug 2025 18:47:13 +0000 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3e56fe95d83so1152745ab.0 for ; Wed, 13 Aug 2025 11:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1755110831; x=1755715631; 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=3anfg9B6GDnUStv+H7P2Qqm8t3EB0LsOUKal4iU9hMY=; b=Ya/kmp+OvPAOt5a/+va/dgrFwMdzF233PKYiai6cxiXT+g7djMZ50zEpwOIMRDCucC SgdaZMq2EjIMCJwikg2rJXtpFUL0aeSUtRXoVECTxpwenwksO0cK0OTZ7mZXzciZZ0Vi 6+9PNh/odoOBd9UBVf1CYvO/T7W/eeVo9dW8m5txeb8I3LUi9srpR0V4QiUYrHlXOG3L LdMvjRRvZgqYgvWzq7tZdjqoVPutM0TDFMVvMurOsOxDFgg7khnyHgsCfVnMlDbUXv5a ne+PZl9TIqCUQDTeNH+q9VKfWpuho/eTDV+L1Rs6VT8iy/MHb480kkyXM1CTL/bGDVdi JkjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755110831; x=1755715631; 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=3anfg9B6GDnUStv+H7P2Qqm8t3EB0LsOUKal4iU9hMY=; b=tZ6QHaMadEzgUeMKr9awoEzyzXKoZ2WwQuqgYpjrhx9G+xGgTTegzo1HkGQXTHMqOw vqRVbksKDiXBPmqpYULMeIIrV4fKDo5V3eep5Olq3PF5oeLmztLd51zmJlEe6Yh7pxAu tn+FbMhQwntjCYFyxg7DZdH8xDnlDSEn0dm5PH+TgwrmPpim5niln1+KWplr3Nwhfi3o MVMKrSzmcmUF9zIkcjaqYtKhxTjldpIIAl5Kpy5dZrtnesKQ/0XenrkJ28N1pLuzzPdK 6GiheG4EMi671MHIG4DwkGvjhag7/G0guI8gwJAT0fOOJl6u4P8nMP06x0eFUDUix+Vk NHZA== X-Forwarded-Encrypted: i=1; AJvYcCUVkDE1pW1DUnUmplX/vR7qOzWVOr1wnRJfAAb0RHLFRL/eQUyCW0w/tNbtJBWhGGhiYN/aRF06flk=@lists.infradead.org X-Gm-Message-State: AOJu0YwWen2u3JoUBy/0FUuL23vS80/jm7p1vZsAVwflsWVcHOxg3hQL 8cjiz+XOccEYq585LmAtEUhDsoZXOzz063rU6JoP4wbG7pWXMDAZEprDRq88k0v6s+o= X-Gm-Gg: ASbGnctrLS0Ugr4JycGZksEu5CG25tOQP+NAjxrYYRL6BT7F1NgzJfM6gHnbRTUBl2G Hd8x6Gx0u6Z81A1p8oK+5rzpOSA1j77w/mbcM9e9t4rIdarpfQrPQdJn8ZvKYb78QjD2qnbCZ4J 66tJHJbDGUpxqpgzhrWjS85/VZbF/sSfgSlhoO0hOdf/MiNvh7oZ4ltuyep7rvTcGdy2Mw9/Tqy KbKCME8wsHUSLwijNizMtznhINEWKMQT91tzoYd3Avt9uX7RF/wP5a8QvmUYYWqtMauoK2gqYaa SMLwZaW8hwzX9RK+xO8bbbAPAi7VXbxUMn3Scs09E8spF5+kTEmN1Yk/XToXq2O/Wl6ARpOVOvi oAaGklZViKO9UCyLm0bvJGmr+4SezNujQa68901MyYuAILH5OL4jKfpfSB+wG2TDoLa18D9poi6 02 X-Google-Smtp-Source: AGHT+IHqcfmnRrUjdAlNWmje55A9T53WMKx9lEOXpWePQCsQDSmAhiGvxZUCa4A2bLPkAxx42qtLRg== X-Received: by 2002:a92:c24e:0:b0:3e5:4a4c:2ed0 with SMTP id e9e14a558f8ab-3e570964fa7mr4127025ab.24.1755110830847; Wed, 13 Aug 2025 11:47:10 -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-50ae9bd89d7sm3933104173.59.2025.08.13.11.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Aug 2025 11:47:10 -0700 (PDT) From: Alex Elder To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, bhelgaas@google.com, vkoul@kernel.org, kishon@kernel.org Cc: dlan@gentoo.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, p.zabel@pengutronix.de, tglx@linutronix.de, johan+linaro@kernel.org, thippeswamy.havalige@amd.com, namcao@linutronix.de, mayank.rana@oss.qualcomm.com, shradha.t@samsung.com, inochiama@gmail.com, quic_schintav@quicinc.com, fan.ni@samsung.com, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, spacemit@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: phy: spacemit: introduce PCIe PHY Date: Wed, 13 Aug 2025 13:46:56 -0500 Message-ID: <20250813184701.2444372-3-elder@riscstar.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250813184701.2444372-1-elder@riscstar.com> References: <20250813184701.2444372-1-elder@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250813_114711_890098_D7121CD4 X-CRM114-Status: GOOD ( 13.56 ) 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 --- .../bindings/phy/spacemit,k1-pcie-phy.yaml | 49 +++++++++++++++++++ 1 file changed, 49 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..b0cbd231d9378 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml @@ -0,0 +1,49 @@ +# 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. + + During normal operation, the PCIe port driver is responsible for + ensuring all 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 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + pcie1_phy: phy@c0c10000 { + compatible = "spacemit,k1-pcie-phy"; + reg = <0xc0c10000 0x1000>; + #phy-cells = <0>; + status = "disabled"; + }; -- 2.48.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3FEF2BEFF1 for ; Wed, 13 Aug 2025 18:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755110833; cv=none; b=oXV/9CF3uOWeK9xDl6rk7pKkdrARdPLYNJpWQtPPpfKW18tnkWSD1YO9vgLCInJoCugsvOrbsma1PF1WIIvGO5YbcvbvMAmuAEq39RWAj3tqilH7+O7Xv7CStVl8r0E3IaeDZll9BJ5l0q3gnrtvurO3k6htyxK7Vjd8HKrV0xk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755110833; c=relaxed/simple; bh=ObVTQfTP6WmVdXDTlQq2ihRv1LL2FrZFdRYiGHsi+L4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Kpu+OCIp2DhMjB1RU0CPnUYgtvkRXH1pztrzVV20SZ2ZpAcfIEfNdzYBid5rTATm1s3lZmmj8fBoC1CbSSoJOWdMkYd+5ozgj0OeNGka0NL/aLOBO2/DQYd9MevNobqqu/7lOpoRvPvhh4gCRV8iykPTRNT4Y1TsDgVHFXiPv+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=FWMSK2Cy; arc=none smtp.client-ip=209.85.166.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="FWMSK2Cy" Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-3e5700401b6so755955ab.2 for ; Wed, 13 Aug 2025 11:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1755110831; x=1755715631; darn=vger.kernel.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=3anfg9B6GDnUStv+H7P2Qqm8t3EB0LsOUKal4iU9hMY=; b=FWMSK2Cy5PZFYKRIX2oqmv8HveuMcFC+oKPObv24ikXTycDT8WC8k2XDkMco/yWOwF z24G/LCormMuwIosa5eoWni2yvj/dp+uXkvpjcjXtr8C3Nl69L1U1pe8jPlsvKKrDMSs VQBvItUTC1p1biZa2Ef9Y+ZeM5zAtKKzceYFmdzM0COWzZXmvD/1saTIIHOm5+Ujubmh VNmJqIpRZ3X4HgiVt3wDtF9MNAsc9RbdxJhhX+ssdKFbyqhZQpnz4Tm69n5tpzZabJvR NXt9A+XplZgWt+kqRLiLOcNK3kLbLoRGH7omBFe4BtjE0E2liu5F5A86IWATzA92XyS1 Nm9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755110831; x=1755715631; 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=3anfg9B6GDnUStv+H7P2Qqm8t3EB0LsOUKal4iU9hMY=; b=DdAsnh2J1je5fwh7R5hm4DDUN9bKuQhb4aoRsVS4HbTfThEsSyvLc8scEAvk2LNkV1 lIEZxoBY3+MAm49hscsChfFfQoYKfTXdMZTJLwadfg35IbmajwLvKK/7To99+5WmNyhR ozrGjaVQKyeIwFJGPGRgeHcewasdZou1oia8SnMmpdrRDPeJy6eIXPhzk4EmOIGjK9Er tPuqh9wzFV2xrl8XvYZpm2qWw6YslilP2tdnPCmFJ26s2za9v5PHQQ2MTdbIV6ORSfZO oIxZ3dG9Ysd7yNk8wjZ8yy/STThpVjvXDsw5y7mkdM22Li2SVAC6zWbWEG8nvy8doju2 ja5A== X-Forwarded-Encrypted: i=1; AJvYcCWxvneh/XZTmphuRIrt396FpV0q0Q8jiHXBOTviZ2APffPQaKgZ+L2JfxkioCAfZ6tOfCWYnOctCzI=@vger.kernel.org X-Gm-Message-State: AOJu0YyYzxLgmek5wpUDCO1q6gYM2lH8z7BvFRHcJ/5CVsxrstyYl1iG keCN1zAXAuYQY3A943wBysTP5i4607AtVo61uwjCzA+jsefRxDG2MmgraXDHTT4tDvY= X-Gm-Gg: ASbGncsuy1ZCxR6VpXRfcXxtX97BN+PmktzTekZlodOA84JmAltMPibfdTu3v31eRsR JQIryyWZxzOuVI+ypjtCKew8mdFdTa/qy7HEJCnVbUmBtTkIz6DNypCF4uihyN5BLChsCY9DPry Xamnc7d9kLR95qA/pVDWbx1g3MDbPIdlzcryMmO5OAAYfP36/mYwSngdQIib4kR64k4SOJEvY5Z 7VmutrmSSd9cG03Y8h77BkK+0avN6ryGg1wfnHR8bPynmzUrdKErcAD98XrkzxVYdcEVcHJCS6V eTzEwbF5XRwqgvw+kB03pqKul7T5zUdxgPE9ywUWiYr/xcniL99fc6sYP/NgI9f6IBuSOAsGwNk qhobqNKG3z7Xooj++z9Nrjt7qyAMEATPz/yjnFy+BFsGBGlRFnlcv8PHh2ofYWQc5eP5f5lVcQe w4 X-Google-Smtp-Source: AGHT+IHqcfmnRrUjdAlNWmje55A9T53WMKx9lEOXpWePQCsQDSmAhiGvxZUCa4A2bLPkAxx42qtLRg== X-Received: by 2002:a92:c24e:0:b0:3e5:4a4c:2ed0 with SMTP id e9e14a558f8ab-3e570964fa7mr4127025ab.24.1755110830847; Wed, 13 Aug 2025 11:47:10 -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-50ae9bd89d7sm3933104173.59.2025.08.13.11.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Aug 2025 11:47:10 -0700 (PDT) From: Alex Elder To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, bhelgaas@google.com, vkoul@kernel.org, kishon@kernel.org Cc: dlan@gentoo.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, p.zabel@pengutronix.de, tglx@linutronix.de, johan+linaro@kernel.org, thippeswamy.havalige@amd.com, namcao@linutronix.de, mayank.rana@oss.qualcomm.com, shradha.t@samsung.com, inochiama@gmail.com, quic_schintav@quicinc.com, fan.ni@samsung.com, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, spacemit@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: phy: spacemit: introduce PCIe PHY Date: Wed, 13 Aug 2025 13:46:56 -0500 Message-ID: <20250813184701.2444372-3-elder@riscstar.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250813184701.2444372-1-elder@riscstar.com> References: <20250813184701.2444372-1-elder@riscstar.com> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../bindings/phy/spacemit,k1-pcie-phy.yaml | 49 +++++++++++++++++++ 1 file changed, 49 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..b0cbd231d9378 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml @@ -0,0 +1,49 @@ +# 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. + + During normal operation, the PCIe port driver is responsible for + ensuring all 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 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + pcie1_phy: phy@c0c10000 { + compatible = "spacemit,k1-pcie-phy"; + reg = <0xc0c10000 0x1000>; + #phy-cells = <0>; + status = "disabled"; + }; -- 2.48.1 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 28F28C87FCF for ; Wed, 13 Aug 2025 19:46:00 +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=jv0d2Uw8WrG8upL1/8pkoMmnNSFAtqFEHiwMuldMHno=; b=cPSxpo8syJyKt/ nLHEVwNz4ek6V/H5PL+IWYyhY4ksXNWb9Tzl49easRM2jbk6ipuTVi4s1kHXgKks2u/3uMqMkAwRR i0BrYZ6XRcBo5r3Egn1f37rR9sbW6bjX5MHGKDlzWoDQLtqvv6Ngi5vMbx7+NW7K2o20IVmV/iOcs KVChlvqKLKAw1EsUUHZo7jUeHaIKlvJC+ErqakFhbG0ICLcNZzvfGN0DVwyX4pGg3jPSJXuSOQE5D 0qC31txoNgdDzo5w3rFPjuQcEEwfgPoIkMTAeHIU2hKOvsHNnurPUhy4mTxUDfKkIuf223DL1Brg0 6zDJAKHp8QJWAT9Aw+dA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1umHQ2-0000000ErgP-3KSD; Wed, 13 Aug 2025 19:45:54 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1umGVD-0000000EjKv-3ZVe for linux-riscv@lists.infradead.org; Wed, 13 Aug 2025 18:47:13 +0000 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-3e57056daecso504635ab.3 for ; Wed, 13 Aug 2025 11:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1755110831; x=1755715631; 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=3anfg9B6GDnUStv+H7P2Qqm8t3EB0LsOUKal4iU9hMY=; b=Ya/kmp+OvPAOt5a/+va/dgrFwMdzF233PKYiai6cxiXT+g7djMZ50zEpwOIMRDCucC SgdaZMq2EjIMCJwikg2rJXtpFUL0aeSUtRXoVECTxpwenwksO0cK0OTZ7mZXzciZZ0Vi 6+9PNh/odoOBd9UBVf1CYvO/T7W/eeVo9dW8m5txeb8I3LUi9srpR0V4QiUYrHlXOG3L LdMvjRRvZgqYgvWzq7tZdjqoVPutM0TDFMVvMurOsOxDFgg7khnyHgsCfVnMlDbUXv5a ne+PZl9TIqCUQDTeNH+q9VKfWpuho/eTDV+L1Rs6VT8iy/MHb480kkyXM1CTL/bGDVdi JkjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755110831; x=1755715631; 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=3anfg9B6GDnUStv+H7P2Qqm8t3EB0LsOUKal4iU9hMY=; b=MuWAac3jnukrGLV4s5S8Np9W31AfWpFot9lC3oQmbyLh9kk4NfQkTbaS8cbBnzpVlN dJLM6sCYIlowUaCAUbqffqLVyFV1iBT/q2TFVlKk9ABh56DsfOfnr+TUQx+IsrfXnaAY sASokRi2aUek1E6ugYGiM23DTg7rvEh/2mo+7u6IynSNGFCSXzy3ntizbbaKc9tUktrG +j0FPltjo4QvZYxuJTe9FL+y7aw23XfW06kMwWJwdeexjjfS8XUjfkTkNYxUdyh+cUSI L/pwVnYDQEitRh4SYcRuilPK3BskWFMWQtgHXHvosnBFlS/LrrWFf4VhAhuL6Iqjth34 WldA== X-Forwarded-Encrypted: i=1; AJvYcCUprxFMqpTDWHon2nqxgtPZvQ4mw/YEqr13Dpza0ITRlH4yVSpLzSKGb3lnqHSyG08Jq5tGARn74uMR1A==@lists.infradead.org X-Gm-Message-State: AOJu0Yxo+8PVndMYhsZ6+On52NZqyEgkKMduAL3fDgdt1uT65eU+KUdN rSrQ9IwEs8kRwIF0aEColb6OnsS42BKBW3kmkU0fkfZg1BBplAqd0mx4krOHwRqjw9Y= X-Gm-Gg: ASbGncsimxHMFHZisgpU6/Al6cOLeZgT87O6MBB/WBZJ+1VRQlFwsKqWxLo8f0JxfHF I8TQKE3S+fAhHrmcv2u3e4jV6Ij5sr/LicxIEhenylSwICUO7qQYpqJCJWYZE0Fzgw0dv03vLqS VnIzcoey+2s83l2k3/LPfhVgZ/KmsDqfpd4jKhVUHi3qeNUMDnk5/jgndQTYD5CaTYuAY4GjWUW SiNY3jyn8ykZKjJxdg8NGzEa73sKIdfAvACXQV7qhgz68cTsTdJPskj5OwPFJc5M4U+P3NsAx2e H5uv0gVL06wWGxldoiJqLpf4R6bf1+M4qi1tbOMBL0bQFprxmlV3J2itlBVkMXFO6VDrwnUKovN 6Co1xsGkCps99RHciv1u+kwtH+AFbuJp4Dg3xKNafoRSZBB04IGxerW3HgUD67hTKvmLH3MUw3f Rz X-Google-Smtp-Source: AGHT+IHqcfmnRrUjdAlNWmje55A9T53WMKx9lEOXpWePQCsQDSmAhiGvxZUCa4A2bLPkAxx42qtLRg== X-Received: by 2002:a92:c24e:0:b0:3e5:4a4c:2ed0 with SMTP id e9e14a558f8ab-3e570964fa7mr4127025ab.24.1755110830847; Wed, 13 Aug 2025 11:47:10 -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-50ae9bd89d7sm3933104173.59.2025.08.13.11.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Aug 2025 11:47:10 -0700 (PDT) From: Alex Elder To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org, bhelgaas@google.com, vkoul@kernel.org, kishon@kernel.org Cc: dlan@gentoo.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, p.zabel@pengutronix.de, tglx@linutronix.de, johan+linaro@kernel.org, thippeswamy.havalige@amd.com, namcao@linutronix.de, mayank.rana@oss.qualcomm.com, shradha.t@samsung.com, inochiama@gmail.com, quic_schintav@quicinc.com, fan.ni@samsung.com, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, spacemit@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: phy: spacemit: introduce PCIe PHY Date: Wed, 13 Aug 2025 13:46:56 -0500 Message-ID: <20250813184701.2444372-3-elder@riscstar.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250813184701.2444372-1-elder@riscstar.com> References: <20250813184701.2444372-1-elder@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250813_114711_888103_B1F47B39 X-CRM114-Status: GOOD ( 13.56 ) 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. Signed-off-by: Alex Elder --- .../bindings/phy/spacemit,k1-pcie-phy.yaml | 49 +++++++++++++++++++ 1 file changed, 49 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..b0cbd231d9378 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/spacemit,k1-pcie-phy.yaml @@ -0,0 +1,49 @@ +# 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. + + During normal operation, the PCIe port driver is responsible for + ensuring all 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 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + pcie1_phy: phy@c0c10000 { + compatible = "spacemit,k1-pcie-phy"; + reg = <0xc0c10000 0x1000>; + #phy-cells = <0>; + status = "disabled"; + }; -- 2.48.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv