FSD Ethernet Quality of Service

Schema identifier ($id): "http://devicetree.org/schemas/net/tesla,fsd-ethqos.yaml#"

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

Maintainers (maintainers): "Swathi K S <swathi.ks@samsung.com>"

Tesla ethernet devices based on dwmmac support Gigabit ethernet.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): snps,dwmac.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "tesla,fsd-ethqos"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "macirq"

clocks — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

PTP clock

Item 2

Master bus clock

Item 3

Slave bus clock

Item 4

MAC TX clock

Item 5

MAC RX clock

Item 6

Master2 bus clock

Item 7

Slave2 bus clock

Item 8

RX MUX clock

Item 9

PHY RX clock

Item 10

PERIC RGMII clock

clock-names — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

Exact value (const): "ptp_ref"

Item 2

Exact value (const): "master_bus"

Item 3

Exact value (const): "slave_bus"

Item 4

Exact value (const): "tx"

Item 5

Exact value (const): "rx"

Item 6

Exact value (const): "master2_bus"

Item 7

Exact value (const): "slave2_bus"

Item 8

Exact value (const): "eqos_rxclk_mux"

Item 9

Exact value (const): "eqos_phyrxclk"

Item 10

Exact value (const): "dout_peric_rgmii_clk"

iommus — required here #

Maximum number of items (maxItems): 1

phy-mode — required here #

Allowed values (enum): "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "iommus", "phy-mode"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/fsd-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
    #address-cells = <2>;
    #size-cells = <2>;
    ethernet1: ethernet@14300000 {
        compatible = "tesla,fsd-ethqos";
        reg = <0x0 0x14300000 0x0 0x10000>;
        interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "macirq";
        clocks = <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_PTP_REF_I>,
                 <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_ACLK_I>,
                 <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_HCLK_I>,
                 <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_RGMII_CLK_I>,
                 <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_RX_I>,
                 <&clock_peric PERIC_BUS_D_PERIC_IPCLKPORT_EQOSCLK>,
                 <&clock_peric PERIC_BUS_P_PERIC_IPCLKPORT_EQOSCLK>,
                 <&clock_peric PERIC_EQOS_PHYRXCLK_MUX>,
                 <&clock_peric PERIC_EQOS_PHYRXCLK>,
                 <&clock_peric PERIC_DOUT_RGMII_CLK>;
        clock-names = "ptp_ref", "master_bus", "slave_bus","tx",
                      "rx", "master2_bus", "slave2_bus", "eqos_rxclk_mux",
                      "eqos_phyrxclk","dout_peric_rgmii_clk";
        assigned-clocks = <&clock_peric PERIC_EQOS_PHYRXCLK_MUX>,
                          <&clock_peric PERIC_EQOS_PHYRXCLK>;
        assigned-clock-parents = <&clock_peric PERIC_EQOS_PHYRXCLK>;
        pinctrl-names = "default";
        pinctrl-0 = <&eth1_tx_clk>, <&eth1_tx_data>, <&eth1_tx_ctrl>,
                    <&eth1_phy_intr>, <&eth1_rx_clk>, <&eth1_rx_data>,
                    <&eth1_rx_ctrl>, <&eth1_mdio>;
        iommus = <&smmu_peric 0x0 0x1>;
        phy-mode = "rgmii-id";
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page