diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt index c3a7be6615c5..a874e9173f37 100644 --- a/Documentation/devicetree/bindings/net/stmmac.txt +++ b/Documentation/devicetree/bindings/net/stmmac.txt @@ -35,6 +35,8 @@ Optional properties: this clock is used for programming the Timestamp Addend Register. If not passed then the system clock will be used and this is fine on some platforms. +- snps,ptp-ref-clk-rate: PTP reference clock rate. +- snps,ptp-req-clk-rate: PTP clock rate for required accuracy. - tx-fifo-depth: See ethernet.txt file in the same directory - rx-fifo-depth: See ethernet.txt file in the same directory - snps,pbl Programmable Burst Length (tx and rx) diff --git a/arch/arm64/boot/dts/qcom/sdxprairie.dtsi b/arch/arm64/boot/dts/qcom/sdxprairie.dtsi index b9dae236a73e..dae543e90ea3 100644 --- a/arch/arm64/boot/dts/qcom/sdxprairie.dtsi +++ b/arch/arm64/boot/dts/qcom/sdxprairie.dtsi @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. +/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -1414,26 +1414,25 @@ snps,dcb-algorithm; snps,map-to-dma-channel = <0x0>; snps,route-up; - snps,route-ptp; - snps,route-dcbcp; + snps,priority = <0x1>; }; queue1 { snps,dcb-algorithm; snps,map-to-dma-channel = <0x1>; - snps,route-avcp; - snps,route-multi-broad; + snps,route-ptp; }; queue2 { snps,avb-algorithm; snps,map-to-dma-channel = <0x2>; + snps,route-avcp; }; queue3 { snps,avb-algorithm; snps,map-to-dma-channel = <0x3>; - snps,priority = <0x0C>; + snps,priority = <0xC>; }; }; @@ -1477,6 +1476,8 @@ <&clock_gcc GCC_ETH_PTP_CLK>, <&clock_gcc GCC_ETH_RGMII_CLK>; clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii"; + snps,ptp-ref-clk-rate = <230400000>; + snps,ptp-req-clk-rate = <57600000>; interrupts-extended = <&pdc 0 62 4>, <&pdc 0 60 4>, <&tlmm 90 2>, <&pdc 0 290 1>, <&pdc 0 291 1>; interrupt-names = "macirq", "eth_lpi",