提交 b49de2df 编写于 作者: N Niklas Cassel 提交者: Arnd Bergmann

ARM: dts: artpec: migrate ethernet to stmmac binding

The snps,dwc-qos-ethernet binding is still supported as a glue layer
in the stmmac driver.
However, since the snps,dwc-qos-ethernet binding is now deprecated,
migrate to stmmac's native binding.

At the same time, enable features supported by the stmmac driver,
such as PTP, LPI, and an additional tx queue.
Signed-off-by: NNiklas Cassel <niklas.cassel@axis.com>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 60bed798
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
mdio { mdio {
#address-cells = <0x1>; #address-cells = <0x1>;
#size-cells = <0x0>; #size-cells = <0x0>;
compatible = "snps,dwmac-mdio";
phy1: phy@0 { phy1: phy@0 {
compatible = "ethernet-phy-ieee802.3-c22"; compatible = "ethernet-phy-ieee802.3-c22";
device_type = "ethernet-phy"; device_type = "ethernet-phy";
......
...@@ -188,19 +188,47 @@ ...@@ -188,19 +188,47 @@
dma-ranges; dma-ranges;
ethernet: ethernet@f8010000 { ethernet: ethernet@f8010000 {
clock-names = "phy_ref_clk", "apb_pclk"; clock-names = "stmmaceth", "ptp_ref";
clocks = <&eth_phy_ref_clk>, clocks = <&clkctrl ARTPEC6_CLK_ETH_ACLK>,
<&clkctrl ARTPEC6_CLK_ETH_ACLK>; <&clkctrl ARTPEC6_CLK_PTP_REF>;
compatible = "snps,dwc-qos-ethernet-4.10"; compatible = "snps,dwmac-4.10a", "snps,dwmac";
interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi";
reg = <0xf8010000 0x4000>; reg = <0xf8010000 0x4000>;
snps,write-requests = <2>; snps,axi-config = <&stmmac_axi_setup>;
snps,read-requests = <16>; snps,mtl-rx-config = <&mtl_rx_setup>;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,txpbl = <8>; snps,txpbl = <8>;
snps,rxpbl = <2>; snps,rxpbl = <2>;
snps,aal;
snps,tso;
status = "disabled"; status = "disabled";
stmmac_axi_setup: stmmac-axi-config {
snps,wr_osr_lmt = <1>;
snps,rd_osr_lmt = <15>;
/* If FB is disabled, the AXI master chooses
* a burst length of any value less than the
* maximum enabled burst length
* (all lesser burst length enables are redundant).
*/
snps,blen = <0 0 0 0 16 0 0>;
};
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <1>;
queue0 {};
};
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <2>;
queue0 {};
queue1 {};
};
}; };
uart0: serial@f8036000 { uart0: serial@f8036000 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册