Renesas Electronics SH EtherMAC

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,gether-r8a7740", "renesas,gether-r8a77980", "renesas,ether-r7s72100", "renesas,ether-r7s9210"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,ether-r8a7778", "renesas,ether-r8a7779"

Item 2

Allowed values (enum): "renesas,rcar-gen1-ether"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,ether-r8a7742", "renesas,ether-r8a7743", "renesas,ether-r8a7745", "renesas,ether-r8a7790", "renesas,ether-r8a7791", "renesas,ether-r8a7793", "renesas,ether-r8a7794"

Item 2

Allowed values (enum): "renesas,rcar-gen2-ether"

reg — required here #

Array item rules (items) #

Item 1

E-DMAC/feLic registers

Item 2

TSU registers

Minimum number of items (minItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

number of address cells for the MDIO bus

Exact value (const): 1

#size-cells — required here #

number of size cells on the MDIO bus

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

phy-mode — required here #

true — No constraints added by this property rule.

phy-handle — required here #

true — No constraints added by this property rule.

Value type (type): "boolean"

specify when a board does not provide a proper Ether LINK signal

Value type (type): "boolean"

specify when the Ether LINK signal is active-low instead of normal active-high

Properties matching a name pattern (patternProperties) #

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

Value type (type): "object"

Required in this object (required): "compatible", "reg", "interrupts", "phy-mode", "phy-handle", "#address-cells", "#size-cells", "clocks"

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

false

Not allowed by this rule.

Examples (examples) #

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

ethernet@ee700000 {
    compatible = "renesas,ether-r8a7790", "renesas,rcar-gen2-ether";
    reg = <0xee700000 0x400>;
    interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 813>;
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 813>;
    phy-mode = "rmii";
    phy-handle = <&phy1>;
    renesas,ether-link-active-low;
    #address-cells = <1>;
    #size-cells = <0>;

    phy1: ethernet-phy@1 {
        compatible = "ethernet-phy-id0022.1537",
                     "ethernet-phy-ieee802.3-c22";
        reg = <1>;
        interrupt-parent = <&irqc0>;
        interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
        reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 20: device is a part of R8A7740 SoC

Line 21: device is a part of R8A77980 SoC

Line 22: device is a part of R7S72100 SoC

Line 23: device is a part of R7S9210 SoC

Line 26: device is a part of R8A7778 SoC

Line 27: device is a part of R8A7779 SoC

Line 29: a generic R-Car Gen1 device

Line 32: device is a part of R8A7742 SoC

Line 33: device is a part of R8A7743 SoC

Line 34: device is a part of R8A7745 SoC

Line 35: device is a part of R8A7790 SoC

Line 36: device is a part of R8A7791 SoC

Line 37: device is a part of R8A7793 SoC

Line 38: device is a part of R8A7794 SoC

Line 40: a generic R-Car Gen2 or RZ/G1 device

Line 103: Lager board

Edit this page