Eswin EIC7700 SOC Eth Controller
Schema identifier ($id): "http://devicetree.org/schemas/net/eswin,eic7700-eth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shuang Liang <liangshuang@eswincomputing.com>", "Zhi Li <lizhi2@eswincomputing.com>", "Shangjuan Wei <weishangjuan@eswincomputing.com>"
Platform glue layer implementation for STMMAC Ethernet driver.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"eswin,eic7700-qos-eth"
Item 2
Exact value (
const):"snps,dwmac-5.20"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
clocks — required here #
Array item rules (items) #
Item 1
AXI clock
Item 2
Configuration clock
Item 3
GMAC main clock
Item 4
Tx clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"cfg"
Item 3
Exact value (
const):"stmmaceth"
Item 4
Exact value (
const):"tx"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
rx-internal-delay-ps — required here #
Allowed values (enum): 0, 200, 600, 1200, 1600, 1800, 2000, 2200, 2400
tx-internal-delay-ps — required here #
Allowed values (enum): 0, 200, 600, 1200, 1600, 1800, 2000, 2200, 2400
eswin,hsp-sp-csr — required here #
HSP CSR is to control and get status of different high-speed peripherals (such as Ethernet, USB, SATA, etc.) via register, which can tune board-level's parameters of PHY, etc.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
Phandle to HSP(High-Speed Peripheral) device
Item 2
Offset of phy control register for internal or external clock selection
Item 3
Offset of AXI clock controller Low-Power request register
Item 4
Offset of register controlling TX/RX clock delay
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "phy-mode", "resets", "reset-names", "rx-internal-delay-ps", "tx-internal-delay-ps", "eswin,hsp-sp-csr"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@50400000 {
compatible = "eswin,eic7700-qos-eth", "snps,dwmac-5.20";
reg = <0x50400000 0x10000>;
clocks = <&d0_clock 186>, <&d0_clock 171>, <&d0_clock 40>,
<&d0_clock 193>;
clock-names = "axi", "cfg", "stmmaceth", "tx";
interrupt-parent = <&plic>;
interrupts = <61>;
interrupt-names = "macirq";
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
resets = <&reset 95>;
reset-names = "stmmaceth";
rx-internal-delay-ps = <200>;
tx-internal-delay-ps = <200>;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x118>;
snps,axi-config = <&stmmac_axi_setup>;
snps,aal;
snps,fixed-burst;
snps,tso;
stmmac_axi_setup: stmmac-axi-config {
snps,blen = <0 0 0 0 16 8 4>;
snps,rd_osr_lmt = <2>;
snps,wr_osr_lmt = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)