Both PHYs can use an alternate reference differential clock, add the clocks
to the DT bindings
Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
---
.../devicetree/bindings/phy/rockchip,pcie3-phy.yaml | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml b/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml
index d7de8b527c5c..b747930b18f1 100644
--- a/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml
@@ -20,11 +20,11 @@ properties:
clocks:
minItems: 1
- maxItems: 3
+ maxItems: 5
clock-names:
minItems: 1
- maxItems: 3
+ maxItems: 5
data-lanes:
description: which lanes (by position) should be mapped to which
@@ -82,10 +82,15 @@ allOf:
then:
properties:
clocks:
- maxItems: 1
+ minItems: 1
+ maxItems: 5
clock-names:
items:
- const: pclk
+ - const: phy0_ref_alt_p
+ - const: phy0_ref_alt_m
+ - const: phy1_ref_alt_p
+ - const: phy1_ref_alt_m
else:
properties:
clocks:
--
2.25.1
On Wed, Aug 06, 2025 at 03:38:21PM +0200, Rick Wertenbroek wrote: > Both PHYs can use an alternate reference differential clock, add the clocks I do not see any changes in rockchip,rk3588-pcie3-phy, so your "both" is either incorrect or ambiguous. ... > to the DT bindings > > data-lanes: > description: which lanes (by position) should be mapped to which > @@ -82,10 +82,15 @@ allOf: > then: > properties: > clocks: > - maxItems: 1 > + minItems: 1 > + maxItems: 5 > clock-names: > items: > - const: pclk > + - const: phy0_ref_alt_p > + - const: phy0_ref_alt_m > + - const: phy1_ref_alt_p > + - const: phy1_ref_alt_m These are different clock inputs? > else: > properties: > clocks: You need to update the example as well. > -- > 2.25.1 >
On 07/08/2025 09:42, Krzysztof Kozlowski wrote: > On Wed, Aug 06, 2025 at 03:38:21PM +0200, Rick Wertenbroek wrote: >> Both PHYs can use an alternate reference differential clock, add the clocks > > I do not see any changes in rockchip,rk3588-pcie3-phy, so your "both" is I meant 3568, the other one. > either incorrect or ambiguous. > > ... > >> to the DT bindings >> Best regards, Krzysztof
On Thu, Aug 7, 2025 at 9:44 AM Krzysztof Kozlowski <krzk@kernel.org> wrote: > > On 07/08/2025 09:42, Krzysztof Kozlowski wrote: > > On Wed, Aug 06, 2025 at 03:38:21PM +0200, Rick Wertenbroek wrote: > >> Both PHYs can use an alternate reference differential clock, add the clocks > > > > I do not see any changes in rockchip,rk3588-pcie3-phy, so your "both" is > > I meant 3568, the other one. > By "both" I meant both PHYs of the RK3588 as the rk3588-pcie-phy is actually a dual PHY (PHY0 and PHY1 which both can use independent clocks). The RK3588 PHY is a dual PHY with two independent PCIe 3.0 x2 interfaces (that can be combined into an x4 or used independently). The RK3568 PHY is a single PHY with one PCIe 3.0 x2 interface. The RK3568 already has the bindings for the extra differential clock for its PHY, but the RK3588 did not, so I added them. I should maybe rephrase this to make it clearer it applies only to the RK3588 and that by both PHYs I mean RK3588 PHY0 and PHY1 > > either incorrect or ambiguous. > > > > ... > > > >> to the DT bindings > >> > > Best regards, > Krzysztof
© 2016 - 2025 Red Hat, Inc.