1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/loongson,ls1b-gmac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson-1B Gigabit Ethernet MAC Controller
10 - Keguang Zhang <keguang.zhang@gmail.com>
13 Loongson-1B Gigabit Ethernet MAC Controller is based on
14 Synopsys DesignWare MAC (version 3.50a).
17 - Dual 10/100/1000Mbps GMAC controllers
18 - Full-duplex operation (IEEE 802.3x flow control automatic transmission)
19 - Half-duplex operation (CSMA/CD Protocol and back-pressure support)
21 - TX Checksum insertion
39 - const: snps,dwmac-3.50a
59 $ref: /schemas/types.yaml#/definitions/phandle
61 Phandle to the syscon containing some extra configurations
62 including PHY interface mode.
79 - $ref: snps,dwmac.yaml#
81 unevaluatedProperties: false
85 #include <dt-bindings/clock/loongson,ls1x-clk.h>
86 #include <dt-bindings/interrupt-controller/irq.h>
88 gmac0: ethernet@1fe10000 {
89 compatible = "loongson,ls1b-gmac", "snps,dwmac-3.50a";
90 reg = <0x1fe10000 0x10000>;
92 clocks = <&clkc LS1X_CLKID_AHB>;
93 clock-names = "stmmaceth";
95 interrupt-parent = <&intc1>;
96 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
97 interrupt-names = "macirq";
99 loongson,ls1-syscon = <&syscon>;
101 phy-handle = <&phy0>;
106 #address-cells = <1>;
108 compatible = "snps,dwmac-mdio";
110 phy0: ethernet-phy@0 {