1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/intel,dwmac-plat.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Intel DWMAC glue layer Device Tree Bindings
10 - Vineetha G. Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com>
22 - $ref: "snps,dwmac.yaml#"
30 - const: snps,dwmac-4.10a
34 - description: GMAC main clock
35 - description: PTP reference clock
36 - description: Tx clock
49 unevaluatedProperties: false
52 # FIXME: Remove defines and include the correct header file
53 # once it is available in mainline.
55 #include <dt-bindings/interrupt-controller/arm-gic.h>
56 #include <dt-bindings/interrupt-controller/irq.h>
57 #define MOVISOC_KMB_PSS_GBE
58 #define MOVISOC_KMB_PSS_AUX_GBE_PTP
59 #define MOVISOC_KMB_PSS_AUX_GBE_TX
61 stmmac_axi_setup: stmmac-axi-config {
63 snps,wr_osr_lmt = <0x0>;
64 snps,rd_osr_lmt = <0x2>;
65 snps,blen = <0 0 0 0 16 8 4>;
68 mtl_rx_setup: rx-queues-config {
69 snps,rx-queues-to-use = <2>;
73 snps,map-to-dma-channel = <0x0>;
74 snps,priority = <0x0>;
79 snps,map-to-dma-channel = <0x1>;
80 snps,priority = <0x1>;
84 mtl_tx_setup: tx-queues-config {
85 snps,tx-queues-to-use = <2>;
90 snps,priority = <0x0>;
96 snps,priority = <0x1>;
100 gmac0: ethernet@3a000000 {
101 compatible = "intel,keembay-dwmac", "snps,dwmac-4.10a";
102 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
103 interrupt-names = "macirq";
104 reg = <0x3a000000 0x8000>;
105 snps,perfect-filter-entries = <128>;
106 phy-handle = <ð_phy0>;
108 rx-fifo-depth = <4096>;
109 tx-fifo-depth = <4096>;
110 clock-names = "stmmaceth", "ptp_ref", "tx_clk";
111 clocks = <&scmi_clk MOVISOC_KMB_PSS_GBE>,
112 <&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_PTP>,
113 <&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_TX>;
115 snps,axi-config = <&stmmac_axi_setup>;
116 snps,mtl-rx-config = <&mtl_rx_setup>;
117 snps,mtl-tx-config = <&mtl_tx_setup>;
122 #address-cells = <1>;
124 compatible = "snps,dwmac-mdio";