Renesas RZ/N1, RZ/N2H and RZ/T2H MII converter

Schema identifier ($id): "http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml#"

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

Maintainers (maintainers): "Clément Léger <clement.leger@bootlin.com>", "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"

This MII converter is present on the Renesas RZ/N1, RZ/N2H and RZ/T2H SoC families. It is responsible to do MII passthrough or convert it to RMII/RGMII.

Properties and child nodes (properties) #

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a06g032-miic"

Item 2

Exact value (const): "renesas,rzn1-miic"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a09g077-miic"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a09g087-miic"

Item 2

Exact value (const): "renesas,r9a09g077-miic"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

MII reference clock

Item 2

RGMII reference clock

Item 3

RMII reference clock

Item 4

AHB clock used for the MII converter register interface

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mii_ref"

Item 2

Exact value (const): "rgmii_ref"

Item 3

Exact value (const): "rmii_ref"

Item 4

Exact value (const): "hclk"

resets — not listed as required here #

Array item rules (items) #

Item 1

Converter register reset

Item 2

Converter reset

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rst"

Item 2

Exact value (const): "crst"

renesas,miic-switch-portin — not listed as required here #

MII Switch PORTIN configuration. This value should use one of the values defined in dt-bindings/net/pcs-rzn1-miic.h for RZ/N1 SoC and include/dt-bindings/net/renesas,r9a09g077-pcs-miic.h for RZ/N2H, RZ/T2H SoCs.

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

Allowed values (enum): 0, 1, 2

power-domains — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^mii-conv@[0-5]$ — name matches this regular expression #

Value type (type): "object"

MII converter port

Properties and child nodes (properties) #

reg — required here

MII Converter port number.

Allowed values (enum): 0, 1, 2, 3, 4, 5

renesas,miic-input — required here

Converter input port configuration. This value should use one of the values defined in dt-bindings/net/pcs-rzn1-miic.h for RZ/N1 SoC and include/dt-bindings/net/renesas,r9a09g077-pcs-miic.h for RZ/N2H, RZ/T2H SoCs.

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

renesas,miic-phy-link-active-low — not listed as required here

Value type (type): "boolean"

Indicates that the PHY-link signal provided by the Ethernet switch, EtherCAT, or SERCOS3 interface is active low. When present, this property sets the corresponding signal polarity to active low. When omitted, the signal defaults to active high.

Required in this object (required): "reg", "renesas,miic-input"

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

false

Not allowed by this rule.

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): "renesas,rzn1-miic"

When the condition matches (then) #

Properties and child nodes (properties)

renesas,miic-switch-portin — not listed as required here

Allowed values (enum): 1, 2

resets — not listed as required here

false — Not permitted by this property rule.

reset-names — not listed as required here

false — Not permitted by this property rule.

Properties matching a name pattern (patternProperties)

^mii-conv@[0-5]$ — name matches this regular expression

Properties and child nodes (properties)

reg — not listed as required here

Allowed values (enum): 1, 2, 3, 4, 5

All of these rules must match (allOf)

Rule 1

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 1

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Exact value (const): 0

Rule 2

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 2

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 1, 11

Rule 3

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 3

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 7, 10

Rule 4

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 4

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 4, 6, 9, 13

Rule 5

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 5

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 3, 5, 8, 12

When the condition does not match (else) #

Properties and child nodes (properties)

renesas,miic-switch-portin — not listed as required here

Exact value (const): 0

Required in this object (required): "resets", "reset-names"

Properties matching a name pattern (patternProperties)

^mii-conv@[0-5]$ — name matches this regular expression

Properties and child nodes (properties)

reg — not listed as required here

Allowed values (enum): 0, 1, 2, 3

All of these rules must match (allOf)

Rule 1

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 0

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 0, 3, 6

Rule 2

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 1

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 1, 4, 7

Rule 3

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 2

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Allowed values (enum): 2, 5, 8

Rule 4

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Exact value (const): 3

When the condition matches (then)

Properties and child nodes (properties)

renesas,miic-input — not listed as required here

Exact value (const): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/net/pcs-rzn1-miic.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>

eth-miic@44030000 {
  #address-cells = <1>;
  #size-cells = <0>;
  compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic";
  reg = <0x44030000 0x10000>;
  clocks = <&sysctrl R9A06G032_CLK_MII_REF>,
          <&sysctrl R9A06G032_CLK_RGMII_REF>,
          <&sysctrl R9A06G032_CLK_RMII_REF>,
          <&sysctrl R9A06G032_HCLK_SWITCH_RG>;
  clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
  renesas,miic-switch-portin = <MIIC_GMAC2_PORT>;
  power-domains = <&sysctrl>;

  mii_conv1: mii-conv@1 {
    renesas,miic-input = <MIIC_GMAC1_PORT>;
    reg = <1>;
  };

  mii_conv2: mii-conv@2 {
    renesas,miic-input = <MIIC_SWITCH_PORTD>;
    reg = <2>;
  };

  mii_conv3: mii-conv@3 {
    renesas,miic-input = <MIIC_SWITCH_PORTC>;
    reg = <3>;
  };

  mii_conv4: mii-conv@4 {
    renesas,miic-input = <MIIC_SWITCH_PORTB>;
    reg = <4>;
  };

  mii_conv5: mii-conv@5 {
    renesas,miic-input = <MIIC_SWITCH_PORTA>;
    reg = <5>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 31: RZ/T2H

Line 33: RZ/N2H

Edit this page