SpacemiT K1 PCIe PHY

Schema identifier ($id): "http://devicetree.org/schemas/phy/spacemit,k1-pcie-phy.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alex Elder <elder@riscstar.com>"

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 and child nodes (properties) #

compatible — required here #

Exact value (const): "spacemit,k1-pcie-phy"

reg — required here #

Array item rules (items) #

Item 1

PHY control registers

clocks — required here #

Array item rules (items) #

Item 1

External oscillator used by the PHY PLL

clock-names — required here #

Exact value (const): "refclk"

resets — required here #

Array item rules (items) #

Item 1

PHY reset; remains deasserted after initialization

reset-names — required here #

Exact value (const): "phy"

#phy-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "#phy-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/spacemit,k1-syscon.h>
phy@c0c10000 {
    compatible = "spacemit,k1-pcie-phy";
    reg = <0xc0c10000 0x1000>;
    clocks = <&vctcxo_24m>;
    clock-names = "refclk";
    resets = <&syscon_apmu RESET_PCIE1_GLOBAL>;
    reset-names = "phy";
    #phy-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page