Renesas RZ/N1 Advanced 5 ports ethernet switch
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/renesas,rzn1-a5psw.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Clément Léger <clement.leger@bootlin.com>"
The advanced 5 ports switch is present on the Renesas RZ/N1 SoC family and handles 4 ports + 1 CPU management port.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"renesas,rzn1-a5psw"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Array item rules (items) #
Item 1
Device Level Ring (DLR) interrupt
Item 2
Switch interrupt
Item 3
Parallel Redundancy Protocol (PRP) interrupt
Item 4
Integrated HUB module interrupt
Item 5
Receive Pattern Match interrupt
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dlr"
Item 2
Exact value (
const):"switch"
Item 3
Exact value (
const):"prp"
Item 4
Exact value (
const):"hub"
Item 5
Exact value (
const):"ptrn"
power-domains — required here #
Maximum number of items (maxItems): 1
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.
clocks — required here #
Array item rules (items) #
Item 1
AHB clock used for the switch register interface
Item 2
Switch system clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hclk"
Item 2
Exact value (
const):"clk"
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-4]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
true
Allowed by this rule.
Properties and child nodes (properties)
pcs-handle — not listed as required here
Maximum number of items (maxItems): 1
phandle pointing to a PCS sub-node compatible with renesas,rzn1-miic.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
switch@44050000 {
compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw";
reg = <0x44050000 0x10000>;
clocks = <&sysctrl R9A06G032_HCLK_SWITCH>, <&sysctrl R9A06G032_CLK_SWITCH>;
clock-names = "hclk", "clk";
power-domains = <&sysctrl>;
interrupts = <GIC_SPI 40 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>;
interrupt-names = "dlr", "switch", "prp", "hub", "ptrn";
dsa,member = <0 0>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan0";
phy-handle = <&switch0phy3>;
pcs-handle = <&mii_conv4>;
};
port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&switch0phy1>;
pcs-handle = <&mii_conv3>;
};
port@4 {
reg = <4>;
ethernet = <&gmac2>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
reset-gpios = <&gpio0a 2 GPIO_ACTIVE_HIGH>;
reset-delay-us = <15>;
clock-frequency = <2500000>;
switch0phy1: ethernet-phy@1{
reg = <1>;
};
switch0phy3: ethernet-phy@3{
reg = <3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)