GBETH glue layer for Renesas RZ/V2H(P) (and similar SoCs)
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,rzv2h-gbeth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a09g047-gbeth","renesas,r9a09g056-gbeth","renesas,r9a09g057-gbeth","renesas,r9a09g077-gbeth","renesas,r9a09g087-gbeth","renesas,rzv2h-gbeth"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a08g046-gbeth"Item 2
Exact value (
const):"snps,dwmac-5.30a"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g047-gbeth","renesas,r9a09g056-gbeth","renesas,r9a09g057-gbeth"Item 2
Exact value (
const):"renesas,rzv2h-gbeth"Item 3
Exact value (
const):"snps,dwmac-5.20"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g077-gbeth"Item 2
Exact value (
const):"snps,dwmac-5.20"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g087-gbeth"Item 2
Exact value (
const):"renesas,r9a09g077-gbeth"Item 3
Exact value (
const):"snps,dwmac-5.20"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
CSR/Register access clock
Item 2
AXI system/Main clock
Item 3
PTP clock
Item 4
TX clock
Item 5
RX clock
Item 6
TX clock phase-shifted by 180 degrees
Item 7
RX clock phase-shifted by 180 degrees
Item 8
RMII clock
Item 9
RMII TX clock
Item 10
RMII RX clock
Minimum number of items (
minItems):7
Rule 2
Array item rules (
items)Item 1
CSR clock
Item 2
AXI system clock
Item 3
TX clock
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"stmmaceth"Item 2
Exact value (
const):"pclk"Item 3
Exact value (
const):"ptp_ref"Item 4
Exact value (
const):"tx"Item 5
Exact value (
const):"rx"Item 6
Exact value (
const):"tx-180"Item 7
Exact value (
const):"rx-180"Item 8
Exact value (
const):"rmii"Item 9
Exact value (
const):"rmii_tx"Item 10
Exact value (
const):"rmii_rx"Minimum number of items (
minItems):7
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"stmmaceth"Item 2
Exact value (
const):"pclk"Item 3
Exact value (
const):"tx"
interrupt-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"macirq"Item 2
Exact value (
const):"eth_wake_irq"Item 3
Exact value (
const):"eth_lpi"Item 4
Exact value (
const):"rx-queue-0"Item 5
Exact value (
const):"rx-queue-1"Item 6
Exact value (
const):"rx-queue-2"Item 7
Exact value (
const):"rx-queue-3"Item 8
Exact value (
const):"tx-queue-0"Item 9
Exact value (
const):"tx-queue-1"Item 10
Exact value (
const):"tx-queue-2"Item 11
Exact value (
const):"tx-queue-3"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"macirq"Item 2
Exact value (
const):"eth_wake_irq"Item 3
Exact value (
const):"eth_lpi"Item 4
Exact value (
const):"rx-queue-0"Item 5
Exact value (
const):"rx-queue-1"Item 6
Exact value (
const):"rx-queue-2"Item 7
Exact value (
const):"rx-queue-3"Item 8
Exact value (
const):"tx-queue-0"Item 9
Exact value (
const):"tx-queue-1"Item 10
Exact value (
const):"tx-queue-2"Item 11
Exact value (
const):"tx-queue-3"Item 12
Exact value (
const):"ptp-pps-0"Item 13
Exact value (
const):"ptp-pps-1"Item 14
Exact value (
const):"ptp-pps-2"Item 15
Exact value (
const):"ptp-pps-3"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"macirq"Item 2
Exact value (
const):"eth_wake_irq"Item 3
Exact value (
const):"eth_lpi"Item 4
Exact value (
const):"rx-queue-0"Item 5
Exact value (
const):"rx-queue-1"Item 6
Exact value (
const):"rx-queue-2"Item 7
Exact value (
const):"rx-queue-3"Item 8
Exact value (
const):"rx-queue-4"Item 9
Exact value (
const):"rx-queue-5"Item 10
Exact value (
const):"rx-queue-6"Item 11
Exact value (
const):"rx-queue-7"Item 12
Exact value (
const):"tx-queue-0"Item 13
Exact value (
const):"tx-queue-1"Item 14
Exact value (
const):"tx-queue-2"Item 15
Exact value (
const):"tx-queue-3"Item 16
Exact value (
const):"tx-queue-4"Item 17
Exact value (
const):"tx-queue-5"Item 18
Exact value (
const):"tx-queue-6"Item 19
Exact value (
const):"tx-queue-7"
resets — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
AXI power-on system reset
Rule 2
Array item rules (
items)Item 1
AXI power-on system reset
Item 2
AHB reset
pcs-handle — not listed as required here #
phandle pointing to a PCS sub-node compatible with Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml# (Refer RZ/T2H portion in the DT-binding file)
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a08g046-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):10
clock-names— not listed as required hereMinimum number of items (
minItems):10
interrupts— not listed as required hereMinimum number of items (
minItems):15Maximum number of items (
maxItems):15
interrupt-names— not listed as required hereMinimum number of items (
minItems):15Maximum number of items (
maxItems):15
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g077-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereMaximum number of items (
maxItems):3
interrupts— not listed as required hereMinimum number of items (
minItems):19
interrupt-names— not listed as required hereMinimum number of items (
minItems):19
resets— not listed as required hereMinimum number of items (
minItems):2
reset-names— required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):1
pcs-handle— 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.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzv2h-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):7
clock-names— not listed as required hereMaximum number of items (
maxItems):7
interrupts— not listed as required hereMinimum number of items (
minItems):11Maximum number of items (
maxItems):11
interrupt-names— not listed as required hereMinimum number of items (
minItems):11Maximum number of items (
maxItems):11
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/renesas-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@15c30000 {
compatible = "renesas,r9a09g057-gbeth", "renesas,rzv2h-gbeth", "snps,dwmac-5.20";
reg = <0x15c30000 0x10000>;
clocks = <&cpg CPG_MOD 0xbd>, <&cpg CPG_MOD 0xbc>,
<&ptp_clock>, <&cpg CPG_MOD 0xb8>,
<&cpg CPG_MOD 0xb9>, <&cpg CPG_MOD 0xba>,
<&cpg CPG_MOD 0xbb>;
clock-names = "stmmaceth", "pclk", "ptp_ref",
"tx", "rx", "tx-180", "rx-180";
resets = <&cpg 0xb0>;
interrupts = <GIC_SPI 765 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 767 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 766 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 772 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 773 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 774 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 745 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 768 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 769 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 770 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 771 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi",
"rx-queue-0", "rx-queue-1", "rx-queue-2",
"rx-queue-3", "tx-queue-0", "tx-queue-1",
"tx-queue-2", "tx-queue-3";
phy-mode = "rgmii-id";
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
rx-fifo-depth = <8192>;
tx-fifo-depth = <8192>;
snps,fixed-burst;
snps,force_thresh_dma_mode;
snps,axi-config = <&stmmac_axi_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,txpbl = <32>;
snps,rxpbl = <32>;
phy-handle = <&phy0>;
stmmac_axi_setup: stmmac-axi-config {
snps,lpi_en;
snps,wr_osr_lmt = <0xf>;
snps,rd_osr_lmt = <0xf>;
snps,blen = <16 8 4 0 0 0 0>;
};
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <4>;
snps,rx-sched-sp;
queue0 {
snps,dcb-algorithm;
snps,priority = <0x1>;
snps,map-to-dma-channel = <0>;
};
queue1 {
snps,dcb-algorithm;
snps,priority = <0x2>;
snps,map-to-dma-channel = <1>;
};
queue2 {
snps,dcb-algorithm;
snps,priority = <0x4>;
snps,map-to-dma-channel = <2>;
};
queue3 {
snps,dcb-algorithm;
snps,priority = <0x8>;
snps,map-to-dma-channel = <3>;
};
};
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <4>;
queue0 {
snps,dcb-algorithm;
snps,priority = <0x1>;
};
queue1 {
snps,dcb-algorithm;
snps,priority = <0x2>;
};
queue2 {
snps,dcb-algorithm;
snps,priority = <0x4>;
};
queue3 {
snps,dcb-algorithm;
snps,priority = <0x1>;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 30: RZ/G3L
Line 34: RZ/G3E
Line 35: RZ/V2N
Line 36: RZ/V2H(P)
Line 40: RZ/T2H
Line 43: RZ/N2H