Renesas Ethernet TSN End-station

Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,ethertsn.yaml#"

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

Maintainers (maintainers): "Niklas Söderlund <niklas.soderlund@ragnatech.se>"

The RTSN device provides Ethernet network using a 10 Mbps, 100 Mbps, or 1 Gbps full-duplex link via MII/GMII/RMII/RGMII. Depending on the connected PHY.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): ethernet-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r8a779g0-ethertsn"

Item 2

Exact value (const): "renesas,rcar-gen4-ethertsn"

reg — required here #

Array item rules (items) #

Item 1

TSN End Station target

Item 2

generalized Precision Time Protocol target

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tsnes"

Item 2

Exact value (const): "gptp"

interrupts — required here #

Array item rules (items) #

Item 1

TX data interrupt

Item 2

RX data interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

phy-mode — required here #

Rule for matching array elements (contains) #

Allowed values (enum): "mii", "rgmii"

phy-handle — required here #

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

Specifies a reference to a node representing a PHY device.

rx-internal-delay-ps — not listed as required here #

Allowed values (enum): 0, 1800

Default value (default): 0

tx-internal-delay-ps — not listed as required here #

Allowed values (enum): 0, 2000

Default value (default): 0

mdio — required here #

Shared schema rule ($ref): /schemas/net/mdio.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "power-domains", "resets", "phy-mode", "phy-handle", "mdio"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a779g0-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a779g0-sysc.h>
#include <dt-bindings/gpio/gpio.h>

tsn0: ethernet@e6460000 {
    compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn";
    reg = <0xe6460000 0x7000>,
          <0xe6449000 0x500>;
    reg-names = "tsnes", "gptp";
    interrupts = <GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "tx", "rx";
    clocks = <&cpg CPG_MOD 2723>;
    power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
    resets = <&cpg 2723>;

    phy-mode = "rgmii";
    tx-internal-delay-ps = <2000>;
    phy-handle = <&phy3>;

    mdio {
        #address-cells = <1>;
        #size-cells = <0>;

        reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
        reset-post-delay-us = <4000>;

        phy3: ethernet-phy@0 {
            compatible = "ethernet-phy-ieee802.3-c45";
            reg = <0>;
            interrupt-parent = <&gpio4>;
            interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 23: R-Car V4H

Edit this page