Rockchip PCIe v3 phy
Schema identifier ($id): "http://devicetree.org/schemas/phy/rockchip,pcie3-phy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rockchip,rk3568-pcie3-phy", "rockchip,rk3588-pcie3-phy"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
data-lanes — not listed as required here #
which lanes (by position) should be mapped to which controller (value). 0 means lane disabled, higher value means used. (controller-number +1 )
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 16
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):16
#phy-cells — required here #
Exact value (const): 0
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "phy"
phy-supply — not listed as required here #
Single PHY regulator
rockchip,phy-grf — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the syscon managing the phy "general register files"
rockchip,pipe-grf — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the syscon managing the pipe "general register files"
rockchip,rx-common-refclk-mode — not listed as required here #
which lanes (by position) should be configured to run in RX common reference clock mode. 0 means disabled, 1 means enabled.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):1
Required in this object (required): "compatible", "reg", "rockchip,phy-grf", "#phy-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pclk"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"refclk_m"Item 2
Exact value (
const):"refclk_n"Item 3
Exact value (
const):"pclk"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3568-cru.h>
pcie30phy: phy@fe8c0000 {
compatible = "rockchip,rk3568-pcie3-phy";
reg = <0xfe8c0000 0x20000>;
#phy-cells = <0>;
clocks = <&pmucru CLK_PCIE30PHY_REF_M>,
<&pmucru CLK_PCIE30PHY_REF_N>,
<&cru PCLK_PCIE30PHY>;
clock-names = "refclk_m", "refclk_n", "pclk";
resets = <&cru SRST_PCIE30PHY>;
reset-names = "phy";
rockchip,phy-grf = <&pcie30_phy_grf>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)