TI J721E WIZ (SERDES Wrapper)

Schema identifier ($id): "http://devicetree.org/schemas/phy/ti,phy-j721e-wiz.yaml#"

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

Maintainers (maintainers): "Kishon Vijay Abraham I <kishon@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,j721e-wiz-16g", "ti,j721e-wiz-10g", "ti,j721s2-wiz-10g", "ti,am64-wiz-10g", "ti,j7200-wiz-10g", "ti,j784s4-wiz-10g"

power-domains — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

clock-specifier to represent input to the WIZ

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "core_ref_clk"

Item 3

Exact value (const): "ext_ref_clk"

Item 4

Exact value (const): "core_ref1_clk"

num-lanes — required here #

Minimum value (minimum): 1

Maximum value (maximum): 4

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

#reset-cells — required here #

Exact value (const): 1

#clock-cells — not listed as required here #

Exact value (const): 1

ranges — required here #

true — No constraints added by this property rule.

typec-dir-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO to signal Type-C cable orientation for lane swap. If GPIO is active, lane 0 and lane 1 of SERDES will be swapped to achieve the functionality of an external type-C plug flip mux.

typec-dir-debounce-ms — not listed as required here #

Minimum value (minimum): 100

Maximum value (maximum): 1000

Default value (default): 100

Number of milliseconds to wait before sampling typec-dir-gpio. If not specified, the default debounce of 100ms will be used. Type-C spec states minimum CC pin debounce of 100 ms and maximum of 200 ms. However, some solutions might need more than 200 ms.

refclk-dig — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

WIZ node should have subnode for refclk_dig to select the reference clock source for the reference clock used in the PHY and PMA digital logic.

Deprecated (deprecated): true

Properties and child nodes (properties) #

clocks — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Phandle to two (Torrent) or four (Sierra) clock nodes representing the inputs to refclk_dig

#clock-cells — required here

Exact value (const): 0

clock-output-names — not listed as required here

Maximum number of items (maxItems): 1

assigned-clocks — required here

Maximum number of items (maxItems): 1

assigned-clock-parents — required here

Maximum number of items (maxItems): 1

Required in this object (required): "clocks", "#clock-cells", "assigned-clocks", "assigned-clock-parents"

ti,scm — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to System Control Module for syscon regmap access.

Properties matching a name pattern (patternProperties) #

^pll[0|1]-refclk$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

WIZ node should have subnodes for each of the PLLs present in the SERDES.

Deprecated (deprecated): true

Properties and child nodes (properties) #

clocks — required here

Maximum number of items (maxItems): 2

Phandle to clock nodes representing the two inputs to PLL.

#clock-cells — required here

Exact value (const): 0

clock-output-names — not listed as required here

Maximum number of items (maxItems): 1

assigned-clocks — required here

Maximum number of items (maxItems): 1

assigned-clock-parents — required here

Maximum number of items (maxItems): 1

Required in this object (required): "clocks", "#clock-cells", "assigned-clocks", "assigned-clock-parents"

^cmn-refclk1?-dig-div$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

WIZ node should have subnodes for each of the PMA common refclock provided by the SERDES.

Deprecated (deprecated): true

Properties and child nodes (properties) #

clocks — required here

Maximum number of items (maxItems): 1

Phandle to the clock node representing the input to the divider clock.

#clock-cells — required here

Exact value (const): 0

clock-output-names — not listed as required here

Maximum number of items (maxItems): 1

Required in this object (required): "clocks", "#clock-cells"

^serdes@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

WIZ node should have '1' subnode for the SERDES. It could be either Sierra SERDES or Torrent SERDES. Sierra SERDES should follow the bindings specified in Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml Torrent SERDES should follow the bindings specified in Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml

Required in this object (required): "compatible", "power-domains", "clocks", "clock-names", "num-lanes", "#address-cells", "#size-cells", "#reset-cells", "ranges"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,j7200-wiz-10g"

When the condition matches (then) #

Required in this object (required): "ti,scm"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/ti,sci_pm_domain.h>

wiz@5000000 {
       compatible = "ti,j721e-wiz-16g";
       #address-cells = <1>;
       #size-cells = <1>;
       power-domains = <&k3_pds 292 TI_SCI_PD_EXCLUSIVE>;
       clocks = <&k3_clks 292 5>, <&k3_clks 292 11>, <&dummy_cmn_refclk>;
       clock-names = "fck", "core_ref_clk", "ext_ref_clk";
       assigned-clocks = <&k3_clks 292 11>, <&k3_clks 292 0>;
       assigned-clock-parents = <&k3_clks 292 15>, <&k3_clks 292 4>;
       num-lanes = <2>;
       #reset-cells = <1>;
       ranges = <0x5000000 0x5000000 0x10000>;

       pll0-refclk {
              clocks = <&k3_clks 293 13>, <&dummy_cmn_refclk>;
              #clock-cells = <0>;
              assigned-clocks = <&wiz1_pll0_refclk>;
              assigned-clock-parents = <&k3_clks 293 13>;
       };

       pll1-refclk {
              clocks = <&k3_clks 293 0>, <&dummy_cmn_refclk1>;
              #clock-cells = <0>;
              assigned-clocks = <&wiz1_pll1_refclk>;
              assigned-clock-parents = <&k3_clks 293 0>;
       };

       cmn-refclk-dig-div {
              clocks = <&wiz1_refclk_dig>;
              #clock-cells = <0>;
       };

       cmn-refclk1-dig-div {
              clocks = <&wiz1_pll1_refclk>;
              #clock-cells = <0>;
       };

       refclk-dig {
              clocks = <&k3_clks 292 11>, <&k3_clks 292 0>,
                      <&dummy_cmn_refclk>, <&dummy_cmn_refclk1>;
              #clock-cells = <0>;
              assigned-clocks = <&wiz0_refclk_dig>;
              assigned-clock-parents = <&k3_clks 292 11>;
       };

       serdes@5000000 {
              compatible = "ti,sierra-phy-t0";
              reg-names = "serdes";
              reg = <0x5000000 0x10000>;
              #address-cells = <1>;
              #size-cells = <0>;
              resets = <&serdes_wiz0 0>;
              reset-names = "sierra_reset";
              clocks = <&wiz0_cmn_refclk_dig_div>, <&wiz0_cmn_refclk1_dig_div>;
              clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div";
       };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/

Edit this page