Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/dts: Add and fix 1588 timer node for eTSEC

Add 1588 timer node in files:
arch/powerpc/boot/dts/bsc9131rdb.dtsi
arch/powerpc/boot/dts/bsc9132qds.dtsi
arch/powerpc/boot/dts/p1010rdb.dtsi
arch/powerpc/boot/dts/p1020rdb-pd.dts
arch/powerpc/boot/dts/p1021rdb-pc.dtsi
arch/powerpc/boot/dts/p1022ds.dtsi
arch/powerpc/boot/dts/p1025twr.dtsi
For P2020RDB-PC, registers' values should be calculated
based on default 1588 reference clock(300MHz) not 250MHz,
and fix this in file:
arch/powerpc/boot/dts/p2020rdb-pc.dtsi

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>

authored by

Yangbo Lu and committed by
Scott Wood
07e9117e 881ea7d3

+90 -6
+12
arch/powerpc/boot/dts/bsc9131rdb.dtsi
··· 80 80 status = "disabled"; 81 81 }; 82 82 83 + ptp_clock@b0e00 { 84 + compatible = "fsl,etsec-ptp"; 85 + reg = <0xb0e00 0xb0>; 86 + interrupts = <68 2 0 0 69 2 0 0>; 87 + fsl,tclk-period = <5>; 88 + fsl,tmr-prsc = <2>; 89 + fsl,tmr-add = <0xcccccccd>; 90 + fsl,tmr-fiper1 = <999999995>; 91 + fsl,tmr-fiper2 = <99990>; 92 + fsl,max-adj = <249999999>; 93 + }; 94 + 83 95 enet0: ethernet@b0000 { 84 96 phy-handle = <&phy0>; 85 97 phy-connection-type = "rgmii-id";
+12
arch/powerpc/boot/dts/bsc9132qds.dtsi
··· 87 87 }; 88 88 }; 89 89 90 + ptp_clock@b0e00 { 91 + compatible = "fsl,etsec-ptp"; 92 + reg = <0xb0e00 0xb0>; 93 + interrupts = <68 2 0 0 69 2 0 0>; 94 + fsl,tclk-period = <5>; 95 + fsl,tmr-prsc = <2>; 96 + fsl,tmr-add = <0xcccccccd>; 97 + fsl,tmr-fiper1 = <999999995>; 98 + fsl,tmr-fiper2 = <99990>; 99 + fsl,max-adj = <249999999>; 100 + }; 101 + 90 102 enet0: ethernet@b0000 { 91 103 phy-handle = <&phy0>; 92 104 tbi-handle = <&tbi0>;
+12
arch/powerpc/boot/dts/p1010rdb.dtsi
··· 186 186 }; 187 187 }; 188 188 189 + ptp_clock@b0e00 { 190 + compatible = "fsl,etsec-ptp"; 191 + reg = <0xb0e00 0xb0>; 192 + interrupts = <68 2 0 0 69 2 0 0>; 193 + fsl,tclk-period = <10>; 194 + fsl,tmr-prsc = <2>; 195 + fsl,tmr-add = <0x80000016>; 196 + fsl,tmr-fiper1 = <999999990>; 197 + fsl,tmr-fiper2 = <99990>; 198 + fsl,max-adj = <199999999>; 199 + }; 200 + 189 201 enet0: ethernet@b0000 { 190 202 phy-handle = <&phy0>; 191 203 phy-connection-type = "rgmii-id";
+12
arch/powerpc/boot/dts/p1020rdb-pd.dts
··· 225 225 }; 226 226 }; 227 227 228 + ptp_clock@b0e00 { 229 + compatible = "fsl,etsec-ptp"; 230 + reg = <0xb0e00 0xb0>; 231 + interrupts = <68 2 0 0 69 2 0 0>; 232 + fsl,tclk-period = <10>; 233 + fsl,tmr-prsc = <2>; 234 + fsl,tmr-add = <0x80000016>; 235 + fsl,tmr-fiper1 = <999999990>; 236 + fsl,tmr-fiper2 = <99990>; 237 + fsl,max-adj = <199999999>; 238 + }; 239 + 228 240 enet0: ethernet@b0000 { 229 241 fixed-link = <1 1 1000 0 0>; 230 242 phy-connection-type = "rgmii-id";
+12
arch/powerpc/boot/dts/p1021rdb-pc.dtsi
··· 224 224 }; 225 225 }; 226 226 227 + ptp_clock@b0e00 { 228 + compatible = "fsl,etsec-ptp"; 229 + reg = <0xb0e00 0xb0>; 230 + interrupts = <68 2 0 0 69 2 0 0>; 231 + fsl,tclk-period = <10>; 232 + fsl,tmr-prsc = <2>; 233 + fsl,tmr-add = <0x80000016>; 234 + fsl,tmr-fiper1 = <999999990>; 235 + fsl,tmr-fiper2 = <99990>; 236 + fsl,max-adj = <199999999>; 237 + }; 238 + 227 239 enet0: ethernet@b0000 { 228 240 fixed-link = <1 1 1000 0 0>; 229 241 phy-connection-type = "rgmii-id";
+12
arch/powerpc/boot/dts/p1022ds.dtsi
··· 215 215 }; 216 216 }; 217 217 218 + ptp_clock@b0e00 { 219 + compatible = "fsl,etsec-ptp"; 220 + reg = <0xb0e00 0xb0>; 221 + interrupts = <68 2 0 0 69 2 0 0>; 222 + fsl,tclk-period = <5>; 223 + fsl,tmr-prsc = <2>; 224 + fsl,tmr-add = <0xc01ebd3d>; 225 + fsl,tmr-fiper1 = <999999995>; 226 + fsl,tmr-fiper2 = <99990>; 227 + fsl,max-adj = <266499999>; 228 + }; 229 + 218 230 ethernet@b0000 { 219 231 phy-handle = <&phy0>; 220 232 phy-connection-type = "rgmii-id";
+12
arch/powerpc/boot/dts/p1025twr.dtsi
··· 138 138 }; 139 139 }; 140 140 141 + ptp_clock@b0e00 { 142 + compatible = "fsl,etsec-ptp"; 143 + reg = <0xb0e00 0xb0>; 144 + interrupts = <68 2 0 0 69 2 0 0>; 145 + fsl,tclk-period = <10>; 146 + fsl,tmr-prsc = <2>; 147 + fsl,tmr-add = <0xc0000021>; 148 + fsl,tmr-fiper1 = <999999990>; 149 + fsl,tmr-fiper2 = <99990>; 150 + fsl,max-adj = <133333332>; 151 + }; 152 + 141 153 enet0: ethernet@b0000 { 142 154 phy-handle = <&phy0>; 143 155 phy-connection-type = "rgmii-id";
+6 -6
arch/powerpc/boot/dts/p2020rdb-pc.dtsi
··· 215 215 }; 216 216 217 217 ptp_clock@24e00 { 218 - fsl,tclk-period = <5>; 219 - fsl,tmr-prsc = <200>; 220 - fsl,tmr-add = <0xCCCCCCCD>; 221 - fsl,tmr-fiper1 = <0x3B9AC9FB>; 222 - fsl,tmr-fiper2 = <0x0001869B>; 223 - fsl,max-adj = <249999999>; 218 + fsl,tclk-period = <5>; 219 + fsl,tmr-prsc = <2>; 220 + fsl,tmr-add = <0xaaaaaaab>; 221 + fsl,tmr-fiper1 = <999999995>; 222 + fsl,tmr-fiper2 = <99990>; 223 + fsl,max-adj = <299999999>; 224 224 }; 225 225 226 226 enet0: ethernet@24000 {