Cadence Torrent SD0801 PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/phy-cadence-torrent.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes the Cadence SD0801 PHY (also known as Torrent PHY) hardware included with the Cadence MHDP DisplayPort controller. Torrent PHY also supports multilink multiprotocol combinations including protocols such as PCIe, USB, SGMII, QSGMII 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,torrent-phy", "ti,j7200-serdes-10g", "ti,j721e-serdes-10g"
#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
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
PHY input reference clocks - refclk (for PLL0) & pll1_refclk (for PLL1). pll1_refclk is optional and used for multi-protocol configurations requiring separate reference clock for each protocol. Same refclk is used for both PLL0 and PLL1 if no separate pll1_refclk is used. Optional parent clock (phy_en_refclk) to enable a reference clock output feature on some platforms to output either derived or received reference clock.
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"refclk"
Item 2
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Offset of the Torrent PHY configuration registers.
Item 2
Offset of the DPTX PHY configuration registers.
reg-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"torrent_phy"
Item 2
Exact value (
const):"dptx_phy"
resets — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Torrent PHY reset.
Item 2
Torrent APB reset. This is optional.
reset-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"torrent_reset"
Item 2
Exact value (
const):"torrent_apb"
Properties matching a name pattern (patternProperties) #
^phy@[0-3]$ — 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.
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): 3
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 — 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): 1, 2, 3, 4, 5, 6, 7, 8, 9, 12
cdns,num-lanes — required here
Number of lanes.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3, 4
Default value (default): 4
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): 0
cdns,max-bit-rate — not listed as required here
Maximum DisplayPort link bit rate to use, in Mbps
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 2160, 2430, 2700, 3240, 4320, 5400, 8100
Default value (default): 8100
Required in this object (required): "reg", "resets", "#phy-cells", "cdns,phy-type", "cdns,num-lanes"
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", "clocks", "clock-names", "reg", "reg-names", "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>;
torrent-phy@f0fb500000 {
compatible = "cdns,torrent-phy";
reg = <0xf0 0xfb500000 0x0 0x00100000>,
<0xf0 0xfb030a00 0x0 0x00000040>;
reg-names = "torrent_phy", "dptx_phy";
resets = <&phyrst 0>;
reset-names = "torrent_reset";
clocks = <&ref_clk>;
clock-names = "refclk";
#address-cells = <1>;
#size-cells = <0>;
phy@0 {
reg = <0>;
resets = <&phyrst 1>, <&phyrst 2>,
<&phyrst 3>, <&phyrst 4>;
#phy-cells = <0>;
cdns,phy-type = <PHY_TYPE_DP>;
cdns,num-lanes = <4>;
cdns,max-bit-rate = <8100>;
};
};
};
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/phy/phy-cadence.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
torrent-phy@f0fb500000 {
compatible = "cdns,torrent-phy";
reg = <0xf0 0xfb500000 0x0 0x00100000>;
reg-names = "torrent_phy";
resets = <&phyrst 0>, <&phyrst 1>;
reset-names = "torrent_reset", "torrent_apb";
clocks = <&ref_clk>;
clock-names = "refclk";
#address-cells = <1>;
#size-cells = <0>;
phy@0 {
reg = <0>;
resets = <&phyrst 2>, <&phyrst 3>;
#phy-cells = <0>;
cdns,phy-type = <PHY_TYPE_PCIE>;
cdns,num-lanes = <2>;
cdns,ssc-mode = <CDNS_SERDES_NO_SSC>;
};
phy@2 {
reg = <2>;
resets = <&phyrst 4>;
#phy-cells = <0>;
cdns,phy-type = <PHY_TYPE_SGMII>;
cdns,num-lanes = <1>;
cdns,ssc-mode = <CDNS_SERDES_NO_SSC>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)