Sophgo CV1800B DWMAC glue layer

Schema identifier ($id): "http://devicetree.org/schemas/net/sophgo,cv1800b-dwmac.yaml#"

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

Maintainers (maintainers): "Inochi Amaoto <inochiama@gmail.com>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "sophgo,cv1800b-dwmac"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "sophgo,cv1800b-dwmac"

Item 2

Exact value (const): "snps,dwmac-3.70a"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

GMAC main clock

Item 2

PTP clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "stmmaceth"

Item 2

Exact value (const): "ptp_ref"

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "stmmaceth"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets", "reset-names"

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

ethernet@4070000 {
  compatible = "sophgo,cv1800b-dwmac", "snps,dwmac-3.70a";
  reg = <0x04070000 0x10000>;
  clocks = <&clk 35>, <&clk 36>;
  clock-names = "stmmaceth", "ptp_ref";
  interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "macirq";
  phy-handle = <&internal_ephy>;
  phy-mode = "internal";
  resets = <&rst 12>;
  reset-names = "stmmaceth";
  rx-fifo-depth = <8192>;
  tx-fifo-depth = <8192>;
  snps,multicast-filter-bins = <0>;
  snps,perfect-filter-entries = <1>;
  snps,aal;
  snps,txpbl = <8>;
  snps,rxpbl = <8>;
  snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
  snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
  snps,axi-config = <&gmac0_stmmac_axi_setup>;

  mdio {
    compatible = "snps,dwmac-mdio";
    #address-cells = <1>;
    #size-cells = <0>;
  };

  gmac0_mtl_rx_setup: rx-queues-config {
    snps,rx-queues-to-use = <1>;
    queue0 {};
  };

  gmac0_mtl_tx_setup: tx-queues-config {
    snps,tx-queues-to-use = <1>;
    queue0 {};
  };

  gmac0_stmmac_axi_setup: stmmac-axi-config {
    snps,blen = <16 8 4 0 0 0 0>;
    snps,rd_osr_lmt = <2>;
    snps,wr_osr_lmt = <1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page