Freescale i.MX8QM SoC series High Speed IO(HSIO) SERDES PHY

Schema identifier ($id): "http://devicetree.org/schemas/phy/fsl,imx8qm-hsio.yaml#"

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

Maintainers (maintainers): "Richard Zhu <hongxing.zhu@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8qm-hsio", "fsl,imx8qxp-hsio"

reg — required here #

Array item rules (items) #

Item 1

Base address and length of the PHY block

Item 2

HSIO control and status registers(CSR) of the PHY

Item 3

HSIO CSR of the controller bound to the PHY

Item 4

HSIO CSR for MISC

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "phy"

Item 3

Exact value (const): "ctrl"

Item 4

Exact value (const): "misc"

#phy-cells — required here #

Exact value (const): 3

The first defines lane index. The second defines the type of the PHY refer to the include phy.h. The third defines the controller index, indicated which controller is bound to the lane.

clocks — required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 14

clock-names — required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 14

fsl,hsio-cfg — required here #

Specifies the use case of the HSIO module in the hardware design. Regarding the design of i.MX8QM HSIO subsystem, HSIO module can be confiured as following three use cases. +---------------------------------------+ | | i.MX8QM | |------------------|--------------------| | | Lane0| Lane1| Lane2| |------------------|------|------|------| | pciea-x2-sata | PCIEA| PCIEA| SATA | |------------------|------|------|------| | pciea-x2-pcieb | PCIEA| PCIEA| PCIEB| |------------------|------|------|------| | pciea-pcieb-sata | PCIEA| PCIEB| SATA | +---------------------------------------+

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

Allowed values (enum): "pciea-x2-sata", "pciea-x2-pcieb", "pciea-pcieb-sata"

Default value (default): "pciea-pcieb-sata"

fsl,refclk-pad-mode — not listed as required here #

Specifies the mode of the refclk pad used. INPUT(PHY refclock is provided externally via the refclk pad) or OUTPUT(PHY refclock is derived from SoC internal source and provided on the refclk pad). This property not exists means unused(PHY refclock is derived from SoC internal source).

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

Allowed values (enum): "input", "output", "unused"

Default value (default): "unused"

power-domains — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "reg", "reg-names", "#phy-cells", "clocks", "clock-names", "fsl,hsio-cfg"

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)

Allowed values (enum): "fsl,imx8qxp-hsio"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk0"

Item 2

Exact value (const): "apb_pclk0"

Item 3

Exact value (const): "phy0_crr"

Item 4

Exact value (const): "ctl0_crr"

Item 5

Exact value (const): "misc_crr"

power-domains — not listed as required here

Maximum number of items (maxItems): 1

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-hsio"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk0"

Item 2

Exact value (const): "pclk1"

Item 3

Exact value (const): "apb_pclk0"

Item 4

Exact value (const): "apb_pclk1"

Item 5

Exact value (const): "pclk2"

Item 6

Exact value (const): "epcs_tx"

Item 7

Exact value (const): "epcs_rx"

Item 8

Exact value (const): "apb_pclk2"

Item 9

Exact value (const): "phy0_crr"

Item 10

Exact value (const): "phy1_crr"

Item 11

Exact value (const): "ctl0_crr"

Item 12

Exact value (const): "ctl1_crr"

Item 13

Exact value (const): "ctl2_crr"

Item 14

Exact value (const): "misc_crr"

power-domains — not listed as required here

Minimum number of items (minItems): 2

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx8-clock.h>
#include <dt-bindings/clock/imx8-lpcg.h>
#include <dt-bindings/firmware/imx/rsrc.h>
#include <dt-bindings/phy/phy-imx8-pcie.h>

phy@5f1a0000 {
    compatible = "fsl,imx8qxp-hsio";
    reg = <0x5f1a0000 0x10000>,
          <0x5f120000 0x10000>,
          <0x5f140000 0x10000>,
          <0x5f160000 0x10000>;
    reg-names = "reg", "phy", "ctrl", "misc";
    clocks = <&phyx1_lpcg IMX_LPCG_CLK_0>,
             <&phyx1_lpcg IMX_LPCG_CLK_4>,
             <&phyx1_crr1_lpcg IMX_LPCG_CLK_4>,
             <&pcieb_crr3_lpcg IMX_LPCG_CLK_4>,
             <&misc_crr5_lpcg IMX_LPCG_CLK_4>;
    clock-names = "pclk0", "apb_pclk0", "phy0_crr", "ctl0_crr", "misc_crr";
    power-domains = <&pd IMX_SC_R_SERDES_1>;
    #phy-cells = <3>;
    fsl,hsio-cfg = "pciea-pcieb-sata";
    fsl,refclk-pad-mode = "input";
};

Source notes #

Annotations retained from the schema source

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

Edit this page