Skip to content

Commit 46492d1

Browse files
floatiousvinodkoul
authored andcommitted
dt-bindings: phy: rockchip,pcie3-phy: add rockchip,rx-common-refclk-mode
>From the RK3588 Technical Reference Manual, Part1, section 6.19 PCIe3PHY_GRF Register Description: "rxX_cmn_refclk_mode" RX common reference clock mode for lane X. This mode should be enabled only when the far-end and near-end devices are running with a common reference clock. The hardware reset value for this field is 0x1 (enabled). Note that this register field is only available on RK3588, not on RK3568. The link training either fails or is highly unstable (link state will jump continuously between L0 and recovery) when this mode is enabled while using an endpoint running in Separate Reference Clock with No SSC (SRNS) mode or Separate Reference Clock with SSC (SRIS) mode. (Which is usually the case when using a real SoC as endpoint, e.g. the RK3588 PCIe controller can run in both Root Complex and Endpoint mode.) Add a rockchip specific property to enable/disable the rxX_cmn_refclk_mode per lane. (Since this PHY supports bifurcation.) Signed-off-by: Niklas Cassel <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 2f70bbd commit 46492d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ properties:
5454
$ref: /schemas/types.yaml#/definitions/phandle
5555
description: phandle to the syscon managing the pipe "general register files"
5656

57+
rockchip,rx-common-refclk-mode:
58+
description: which lanes (by position) should be configured to run in
59+
RX common reference clock mode. 0 means disabled, 1 means enabled.
60+
$ref: /schemas/types.yaml#/definitions/uint32-array
61+
minItems: 1
62+
maxItems: 16
63+
items:
64+
minimum: 0
65+
maximum: 1
66+
5767
required:
5868
- compatible
5969
- reg

0 commit comments

Comments
 (0)