Cadence Sierra PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/phy-cadence-sierra.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes the Cadence Sierra PHY. Sierra PHY supports multilink multiprotocol combinations including protocols such as PCIe, USB etc.
Maintainers (maintainers): "Swapnil Jakhade <sjakhade@cadence.com>", "Yuti Amonkar <yamonkar@cadence.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cdns,sierra-phy-t0", "ti,sierra-phy-t0"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#clock-cells — not listed as required here #
Exact value (const): 1
resets — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Sierra PHY reset.
Item 2
Sierra APB reset. This is optional.
reset-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"sierra_reset"
Item 2
Exact value (
const):"sierra_apb"
reg — required here #
Maximum number of items (maxItems): 1
Offset of the Sierra PHY configuration registers.
reg-names — not listed as required here #
Exact value (const): "serdes"
clocks — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
clock-names — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"cmn_refclk_dig_div"
Item 2
Exact value (
const):"cmn_refclk1_dig_div"
Item 3
Exact value (
const):"pll0_refclk"
Item 4
Exact value (
const):"pll1_refclk"
cdns,autoconf — not listed as required here #
Value type (type): "boolean"
A boolean property whose presence indicates that the PHY registers will be configured by hardware. If not present, all sub-node optional properties must be provided.
Properties matching a name pattern (patternProperties) #
^phy@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Each group of PHY lanes with a single master lane should be represented as a sub-node. Note that the actual configuration of each lane is determined by hardware strapping, and must match the configuration specified here.
Properties and child nodes (properties) #
reg — required here
The master lane number. This is the lowest numbered lane in the lane group.
Minimum value (minimum): 0
Maximum value (maximum): 15
resets — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Contains list of resets, one per lane, to get all the link lanes out of reset.
#phy-cells — required here
Exact value (const): 0
cdns,phy-type — not listed as required here
Specifies the type of PHY for which the group of PHY lanes is used. Refer include/dt-bindings/phy/phy.h. Constants from the header should be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 2, 4, 8, 9
cdns,num-lanes — not listed as required here
Number of lanes in this group. The group is made up of consecutive lanes.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 16
cdns,ssc-mode — not listed as required here
Specifies the Spread Spectrum Clocking mode used. It can be NO_SSC, EXTERNAL_SSC or INTERNAL_SSC. Refer include/dt-bindings/phy/phy-cadence.h for the constants to be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 1
Required in this object (required): "reg", "resets", "#phy-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "#address-cells", "#size-cells", "reg", "resets", "reset-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/phy/phy.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
sierra-phy@fd240000 {
compatible = "cdns,sierra-phy-t0";
reg = <0x0 0xfd240000 0x0 0x40000>;
resets = <&phyrst 0>, <&phyrst 1>;
reset-names = "sierra_reset", "sierra_apb";
clocks = <&cmn_refclk_dig_div>, <&cmn_refclk1_dig_div>;
clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div";
#address-cells = <1>;
#size-cells = <0>;
pcie0_phy0: phy@0 {
reg = <0>;
resets = <&phyrst 2>;
cdns,num-lanes = <2>;
#phy-cells = <0>;
cdns,phy-type = <PHY_TYPE_PCIE>;
};
pcie0_phy1: phy@2 {
reg = <2>;
resets = <&phyrst 4>;
cdns,num-lanes = <1>;
#phy-cells = <0>;
cdns,phy-type = <PHY_TYPE_PCIE>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)