From nobody Sun Feb 8 11:44:35 2026 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 E6C2134B413 for ; Thu, 18 Dec 2025 15:12:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766070766; cv=none; b=OiDcDddpX31lbCBZUG6T6+9psudvk3Nqiwqv8A7jZ5s/KX4iiuM/kx7BC1rKbEf44lQJQFYO3Nr5Qwh/ChQnWbrJxbwA4AnVyy8yP3r3v1OmEvXn2iJnqh30KcjuMJNBnpI6WXAQQC7vnH++/5s4dxZ8dIXMVbOHt5wDdS6OvHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766070766; c=relaxed/simple; bh=8LppfTqRL5l2SybiAnwAcKY+acsrML8ysTdBgNm1hLo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kAjiBh7tmLFabJmdoKdWAa0ztPe7yIckjfcWWyOEmK6D35kN1CsiCtJDZAJLBME/n0rduigRhlh6W/8OWDI892MSaA6aSSFoNrWGPgT/7i7yLxBVKyX8YCS5HyluBx1vDd0ij2o9x1NNw0UIep7VJP2j1aSZYxTJNvIMWNU0SUk= 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=2Ub2vX2C; arc=none smtp.client-ip=209.85.222.175 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="2Ub2vX2C" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-8be92e393f8so77366285a.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=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=oxyyAVz+sgzum76hhNZkaYgPP0OtOtVsykA+Y1mmKUg=; b=2Ub2vX2C5hh+zwL9v/hIZ5O/KDK0vFlYZc/EUa0pq/fTXksrjA4v3WO38rXE/fLr0j RmmOgTVBu21Q2m1AhIwVbuHGAG/cewbhqOf910WNcGaT/Y9nQiBfSB2pjWB109Z/CP7K jyYhUv9ibGvWoB6nmqbmU1qcy2YHJbN3tRn6TpLiETFFmBm3IjGqOvU7cqnswERPnDpC ioc1aVo04USvo8gVf56LB4qOrLvm76nwFa74PfVbhqe7xb3VliGQw3PFjq26oKujgtrp xe3Yjy+HImOjFRfDk3dkOvSC3DQ0UzLSu6XgeIhYODgKTsPVnPU60IdDWi7+5Eg0wNED kFSQ== 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=RoRWmixprw8vk8Gbbh6dzUyT8bzLBrtcMiOHR7fCEGCwmYGCYmX339pvlLwgHDcYC3 ou5tqNCh1KMYx/A9ENpt9q3nuiCPl4Z5ZqANqc6ZU6Tt1cRYrPfvz9pvrvHrqF7/W1yR 17+ApY+aGFdtJlQQsHPWAo5nzxdEfKd28UnjcKH/0mpkZahq6WX9Z2UCdPLntMBCzm/b f52DBjpFddk7BZAX2QIr9Yvr5za3wDUAv0VegxRRXloWJohyxyTVwkZxW140QHVxbSYT 9CzuMiOQIqHQXpXTbWWDy0lXTiQpCnyiDIjLFFRtbBG4+UgUF66Pv9h8JJ+l3PSmBB6m Md3w== X-Forwarded-Encrypted: i=1; AJvYcCUInXoXBfAPPUtJTdIr6zebdFuPNthnAA4YgD9gkuZWtliV9w7Vnw7IR57nTzy+/3i2p8KofOXgObvs9b0=@vger.kernel.org X-Gm-Message-State: AOJu0YxZV+09o80TrQM29c2Mc0OinAcXDfTWrKWwRqw2ateFz4GnwqqR NnW2STHncW++8Ji8S8VL+bOLcXej+oXHLOdhXi9ozyWYcPl7HsLfkaZv8s3a66JaSck= X-Gm-Gg: AY/fxX6ylEpU3bbBj+sC3R7nhoPclwAAqFv1zTixOVOPIKZ2yOwfoFfbJwBtGL5oekP gS3oQMlDZpKTgHbM+Pa5sE7UZ807SZJNMtckKcyHu9ZgoW8NVHTKdSJqeLugLcWv0XKeLAJY9gu aIzAmboehOTWTLJYZWojsYSHfV9suq8ycwd3UoswaTX6efIE1swhCw6KldrnbaWDZw4A2Syis0o D2R4rfCi4ZDmpjxEphyEgJ86R/1dqCALVNk1cRtlJhhE/JASO5fyhUo5LqsezJatny8UY9ZOWYH g4/aYcvvCUAP+DFImiCKehHHtg3fPeWP+lgqxObeQ5r/rxvjZh3vnHtWqCD/jXdYBPPF832CqFi XczrWEagynCcUDH71uiex+PIN6gN9RCfLoTLUqCRiW6J6OogGDyHpMAdz6ayoJ2BGexEm6UAHIO ZLf5tpPtHSGfgqtG+Y0W8uM0Qmg0qgf/VqooCupNHcrehLaX+BF8OP/Q== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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.yam= l 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 =3D "spacemit,k1-pcie-phy"; + reg =3D <0xc0c10000 0x1000>; + clocks =3D <&vctcxo_24m>; + clock-names =3D "refclk"; + resets =3D <&syscon_apmu RESET_PCIE1_GLOBAL>; + reset-names =3D "phy"; + #phy-cells =3D <0>; + }; --=20 2.48.1