Renesas Ethernet Switch

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

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

Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "renesas,r8a779f0-ether-switch"

reg — required here #

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "base"

Item 2

Exact value (const): "secure_base"

interrupts — required here #

Maximum number of items (maxItems): 47

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mfwd_error"

Item 2

Exact value (const): "race_error"

Item 3

Exact value (const): "coma_error"

Item 4

Exact value (const): "gwca0_error"

Item 5

Exact value (const): "gwca1_error"

Item 6

Exact value (const): "etha0_error"

Item 7

Exact value (const): "etha1_error"

Item 8

Exact value (const): "etha2_error"

Item 9

Exact value (const): "gptp0_status"

Item 10

Exact value (const): "gptp1_status"

Item 11

Exact value (const): "mfwd_status"

Item 12

Exact value (const): "race_status"

Item 13

Exact value (const): "coma_status"

Item 14

Exact value (const): "gwca0_status"

Item 15

Exact value (const): "gwca1_status"

Item 16

Exact value (const): "etha0_status"

Item 17

Exact value (const): "etha1_status"

Item 18

Exact value (const): "etha2_status"

Item 19

Exact value (const): "rmac0_status"

Item 20

Exact value (const): "rmac1_status"

Item 21

Exact value (const): "rmac2_status"

Item 22

Exact value (const): "gwca0_rxtx0"

Item 23

Exact value (const): "gwca0_rxtx1"

Item 24

Exact value (const): "gwca0_rxtx2"

Item 25

Exact value (const): "gwca0_rxtx3"

Item 26

Exact value (const): "gwca0_rxtx4"

Item 27

Exact value (const): "gwca0_rxtx5"

Item 28

Exact value (const): "gwca0_rxtx6"

Item 29

Exact value (const): "gwca0_rxtx7"

Item 30

Exact value (const): "gwca1_rxtx0"

Item 31

Exact value (const): "gwca1_rxtx1"

Item 32

Exact value (const): "gwca1_rxtx2"

Item 33

Exact value (const): "gwca1_rxtx3"

Item 34

Exact value (const): "gwca1_rxtx4"

Item 35

Exact value (const): "gwca1_rxtx5"

Item 36

Exact value (const): "gwca1_rxtx6"

Item 37

Exact value (const): "gwca1_rxtx7"

Item 38

Exact value (const): "gwca0_rxts0"

Item 39

Exact value (const): "gwca0_rxts1"

Item 40

Exact value (const): "gwca1_rxts0"

Item 41

Exact value (const): "gwca1_rxts1"

Item 42

Exact value (const): "rmac0_mdio"

Item 43

Exact value (const): "rmac1_mdio"

Item 44

Exact value (const): "rmac2_mdio"

Item 45

Exact value (const): "rmac0_phy"

Item 46

Exact value (const): "rmac1_phy"

Item 47

Exact value (const): "rmac2_phy"

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 16

power-domains — required here #

Maximum number of items (maxItems): 1

ethernet-ports — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Port number of ETHA (TSNA).

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^port@[0-9a-f]+$ — name matches this regular expression

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

Maximum number of items (maxItems): 1

Port number of ETHA (TSNA).

phys — required here

Maximum number of items (maxItems): 1

Phandle of an Ethernet SERDES.

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): "reg", "phy-handle", "phy-mode", "phys", "mdio"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "resets", "power-domains", "ethernet-ports"

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

false

Not allowed by this rule.

Examples (examples) #

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

ethernet@e6880000 {
    compatible = "renesas,r8a779f0-ether-switch";
    reg = <0xe6880000 0x20000>, <0xe68c0000 0x20000>;
    reg-names = "base", "secure_base";
    interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 291 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 295 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 296 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 297 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 298 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 301 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "mfwd_error", "race_error",
                      "coma_error", "gwca0_error",
                      "gwca1_error", "etha0_error",
                      "etha1_error", "etha2_error",
                      "gptp0_status", "gptp1_status",
                      "mfwd_status", "race_status",
                      "coma_status", "gwca0_status",
                      "gwca1_status", "etha0_status",
                      "etha1_status", "etha2_status",
                      "rmac0_status", "rmac1_status",
                      "rmac2_status",
                      "gwca0_rxtx0", "gwca0_rxtx1",
                      "gwca0_rxtx2", "gwca0_rxtx3",
                      "gwca0_rxtx4", "gwca0_rxtx5",
                      "gwca0_rxtx6", "gwca0_rxtx7",
                      "gwca1_rxtx0", "gwca1_rxtx1",
                      "gwca1_rxtx2", "gwca1_rxtx3",
                      "gwca1_rxtx4", "gwca1_rxtx5",
                      "gwca1_rxtx6", "gwca1_rxtx7",
                      "gwca0_rxts0", "gwca0_rxts1",
                      "gwca1_rxts0", "gwca1_rxts1",
                      "rmac0_mdio", "rmac1_mdio",
                      "rmac2_mdio",
                      "rmac0_phy", "rmac1_phy",
                      "rmac2_phy";
    clocks = <&cpg CPG_MOD 1505>;
    power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
    resets = <&cpg 1505>;

    ethernet-ports {
        #address-cells = <1>;
        #size-cells = <0>;
        port@0 {
            reg = <0>;
            phy-handle = <&eth_phy0>;
            phy-mode = "sgmii";
            phys = <&eth_serdes 0>;
            mdio {
                #address-cells = <1>;
                #size-cells = <0>;
            };
        };
        port@1 {
            reg = <1>;
            phy-handle = <&eth_phy1>;
            phy-mode = "sgmii";
            phys = <&eth_serdes 1>;
            mdio {
                #address-cells = <1>;
                #size-cells = <0>;
            };
        };
        port@2 {
            reg = <2>;
            phy-handle = <&eth_phy2>;
            phy-mode = "sgmii";
            phys = <&eth_serdes 2>;
            mdio {
                #address-cells = <1>;
                #size-cells = <0>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page