1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson-1C Ethernet MAC Controller
10 - Keguang Zhang <keguang.zhang@gmail.com>
13 Loongson-1C Ethernet MAC Controller is based on
14 Synopsys DesignWare MAC (version 3.50a).
18 - Full-duplex operation (IEEE 802.3x flow control automatic transmission)
19 - Half-duplex operation (CSMA/CD Protocol and back-pressure support)
20 - IEEE 802.1Q VLAN tag detection for reception frames
38 - const: snps,dwmac-3.50a
58 $ref: /schemas/types.yaml#/definitions/phandle
60 Phandle to the syscon containing some extra configurations
61 including PHY interface mode.
78 - $ref: snps,dwmac.yaml#
80 unevaluatedProperties: false
84 #include <dt-bindings/clock/loongson,ls1x-clk.h>
85 #include <dt-bindings/interrupt-controller/irq.h>
87 emac: ethernet@1fe10000 {
88 compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a";
89 reg = <0x1fe10000 0x10000>;
91 clocks = <&clkc LS1X_CLKID_AHB>;
92 clock-names = "stmmaceth";
94 interrupt-parent = <&intc1>;
95 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
96 interrupt-names = "macirq";
98 loongson,ls1-syscon = <&syscon>;
100 phy-handle = <&phy0>;
105 #address-cells = <1>;
107 compatible = "snps,dwmac-mdio";
109 phy0: ethernet-phy@13 {