Renesas Ethernet AVB
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,etheravb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.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,etheravb-r8a7742","renesas,etheravb-r8a7743","renesas,etheravb-r8a7744","renesas,etheravb-r8a7745","renesas,etheravb-r8a77470","renesas,etheravb-r8a7790","renesas,etheravb-r8a7791","renesas,etheravb-r8a7792","renesas,etheravb-r8a7793","renesas,etheravb-r8a7794"Item 2
Exact value (
const):"renesas,etheravb-rcar-gen2"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,etheravb-r8a774a1","renesas,etheravb-r8a774b1","renesas,etheravb-r8a774c0","renesas,etheravb-r8a774e1","renesas,etheravb-r8a7795","renesas,etheravb-r8a7796","renesas,etheravb-r8a77961","renesas,etheravb-r8a77965","renesas,etheravb-r8a77970","renesas,etheravb-r8a77980","renesas,etheravb-r8a77990","renesas,etheravb-r8a77995"Item 2
Exact value (
const):"renesas,etheravb-rcar-gen3"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,etheravb-r8a779a0","renesas,etheravb-r8a779g0","renesas,etheravb-r8a779h0"Item 2
Exact value (
const):"renesas,etheravb-rcar-gen4"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,etheravb-rzv2m"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a07g043-gbeth","renesas,r9a07g044-gbeth","renesas,r9a07g054-gbeth","renesas,r9a08g045-gbeth"Item 2
Exact value (
const):"renesas,rzg2l-gbeth"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
MAC register block
Item 2
Stream buffer
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 29
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 29
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
iommus — not listed as 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 #
true — No constraints added by this property rule.
phy-handle — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Number of address cells for the MDIO bus.
Exact value (const): 1
Deprecated (deprecated): true
#size-cells — not listed as required here #
Number of size cells on the MDIO bus.
Exact value (const): 0
Deprecated (deprecated): true
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
renesas,no-ether-link — not listed as required here #
Value type (type): "boolean"
Specify when a board does not provide a proper AVB_LINK signal.
renesas,ether-link-active-low — not listed as required here #
Value type (type): "boolean"
Specify when the AVB_LINK signal is active-low instead of normal active-high.
rx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 1800
tx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
Properties matching a name pattern (patternProperties) #
@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains", "resets", "phy-mode", "phy-handle"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,etheravb-rcar-gen2","renesas,etheravb-r8a7795","renesas,etheravb-r8a7796","renesas,etheravb-r8a77961","renesas,etheravb-r8a77965"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,etheravb-rcar-gen2","renesas,rzg2l-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"mux"Item 2
Exact value (
const):"fil"Item 3
Exact value (
const):"arp_ns"
rx-internal-delay-ps— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-rzv2m"When the condition matches (
then)Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):29Maximum number of items (
maxItems):29
interrupt-names— required hereArray item rules (
items)String pattern (
pattern):"^(ch(1?)[0-9])|ch20|ch21|dia|dib|err_a|err_b|mgmt_a|mgmt_b|line3$"
rx-internal-delay-ps— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else)Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):25Maximum number of items (
maxItems):25
interrupt-names— required hereArray item rules (
items)String pattern (
pattern):"^ch[0-9]+$"Required in this object (
required):"interrupt-names","rx-internal-delay-ps"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,etheravb-r8a774a1","renesas,etheravb-r8a774b1","renesas,etheravb-r8a774e1","renesas,etheravb-r8a7795","renesas,etheravb-r8a7796","renesas,etheravb-r8a77961","renesas,etheravb-r8a77965","renesas,etheravb-r8a77970","renesas,etheravb-r8a77980","renesas,etheravb-rcar-gen4"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
tx-internal-delay-ps— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-r8a77995"When the condition matches (
then) #Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereExact value (
const):1800
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-r8a77980"When the condition matches (
then) #Properties and child nodes (
properties)
tx-internal-delay-ps— not listed as required hereExact value (
const):2000
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzg2l-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Main clock
Item 2
Register access clock
Item 3
Reference clock for RGMII
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"axi"Item 2
Exact value (
const):"chi"Item 3
Exact value (
const):"refclk"When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-rzv2m"When the condition matches (
then)Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Main clock
Item 2
Coherent Hub Interface clock
Item 3
gPTP reference clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"axi"Item 2
Exact value (
const):"chi"Item 3
Exact value (
const):"gptp"When the condition does not match (
else)Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
AVB functional clock
Item 2
Optional TXC reference clock
clock-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"fck"Item 2
Exact value (
const):"refclk"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>
#include <dt-bindings/gpio/gpio.h>
aliases {
ethernet0 = &avb;
};
avb: ethernet@e6800000 {
compatible = "renesas,etheravb-r8a7795",
"renesas,etheravb-rcar-gen3";
reg = <0xe6800000 0x800>, <0xe6a00000 0x10000>;
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6",
"ch7", "ch8", "ch9", "ch10", "ch11", "ch12",
"ch13", "ch14", "ch15", "ch16", "ch17", "ch18",
"ch19", "ch20", "ch21", "ch22", "ch23", "ch24";
clocks = <&cpg CPG_MOD 812>;
clock-names = "fck";
iommus = <&ipmmu_ds0 16>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 812>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <2000>;
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
compatible = "ethernet-phy-id0022.1622",
"ethernet-phy-ieee802.3-c22";
rxc-skew-ps = <1500>;
reg = <0>;
interrupt-parent = <&gpio2>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: RZ/G1H
Line 18: RZ/G1M
Line 19: RZ/G1N
Line 20: RZ/G1E
Line 21: RZ/G1C
Line 22: R-Car H2
Line 23: R-Car M2-W
Line 24: R-Car V2H
Line 25: R-Car M2-N
Line 26: R-Car E2
Line 27: R-Car Gen2 and RZ/G1
Line 31: RZ/G2M
Line 32: RZ/G2N
Line 33: RZ/G2E
Line 34: RZ/G2H
Line 35: R-Car H3
Line 36: R-Car M3-W
Line 37: R-Car M3-W+
Line 38: R-Car M3-N
Line 39: R-Car V3M
Line 40: R-Car V3H
Line 41: R-Car E3
Line 42: R-Car D3
Line 43: R-Car Gen3 and RZ/G2
Line 47: R-Car V3U
Line 48: R-Car V4H
Line 49: R-Car V4M
Line 50: R-Car Gen4
Line 54: RZ/V2M
Line 55: RZ/V2M compatible
Line 59: RZ/G2UL and RZ/Five
Line 60: RZ/G2{L,LC}
Line 61: RZ/V2L
Line 62: RZ/G3S
Line 63: RZ/{G2L,G2UL,V2L} family
Line 131: In older bindings there where no mdio child-node to describe the MDIO bus
Line 132: and the PHY. To not fail older bindings accept any node with an address. New
Line 133: users should describe the PHY inside the mdio child-node.