From: George Cherian <hidden> Date: 2014-05-02 06:35:19
The series adds CPTS support for AM4372.
Patch 1 - DT changes w.r.t clock changes for AM33xx.
Patch 2 - CPTS clock name harcoding in the driver is removed.
Easier to pass the clock name from dt rather than hardcoding in driver.
Also in prepration for DRA7x CPTS support.
Patch 3 - Enable the CPTS support for both DRA7x and AM4372 in the driver.
Patch 4 - Enable the Annexe F for L2 PTP for AM437x and DRA7x.
Patch 5 - Change the default clocksource to dpll_core_m5
Patch 6 - DT changes for AM4372.
v1 -> v2
Patch 1 and 2 Re-ordering.
Seperate TS_BITS define for Hw version V2 and V3
George Cherian (6):
ARM: dts: am33xx: Add clock names for cpsw and cpts
drivers: net: cpts: Remove hardcoded clock name for CPTS
drivers: net: cpsw: Enable CPTS for DRA7xx and AM4372
drivers: net: cpsw: Enable Annexe F Time sync
ARM: AM43xx: clk: Change the cpts ref clock source to dpll_core_m5 clk
ARM: dts: am4372: Add clock names for cpsw and cpts
arch/arm/boot/dts/am33xx.dtsi | 2 ++
arch/arm/boot/dts/am4372.dtsi | 2 ++
drivers/clk/ti/clk-43xx.c | 16 ++++++++++++
drivers/net/ethernet/ti/cpsw.c | 56 +++++++++++++++++++++++++++++++-----------
drivers/net/ethernet/ti/cpts.c | 11 +++------
5 files changed, 66 insertions(+), 21 deletions(-)
--
1.8.3.1
From: George Cherian <hidden> Date: 2014-05-02 06:35:30
CPTS refclk name is hardcoded, which makes it fail in case of DRA7x
Remove the hardcoded clock name for CPTS refclk and get the same from DT.
Signed-off-by: George Cherian <redacted>
---
drivers/net/ethernet/ti/cpts.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
From: George Cherian <hidden> Date: 2014-05-02 06:35:33
Enable cpts hardware time stamping for Dra7xx and AM4372.
This enables PTPv2 for DRA7xx and AM4372.
Signed-off-by: George Cherian <redacted>
---
drivers/net/ethernet/ti/cpsw.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
From: George Cherian <hidden> Date: 2014-05-02 06:35:45
cpsw_cpts_rft_clk has got the choice of 3 clocksources
-dpll_core_m4_ck
-dpll_core_m5_ck
-dpll_disp_m2_ck
By default dpll_core_m4_ck is selected, witn this as clock
source the CPTS doesnot work properly. It gives clockcheck errors
while running PTP.
clockcheck: clock jumped backward or running slower than expected!
By selecting dpll_core_m5_ck as the clocksource fixes this issue.
In AM335x dpll_core_m5_ck is the default clocksource.
Signed-off-by: George Cherian <redacted>
---
drivers/clk/ti/clk-43xx.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
From: George Cherian <hidden> Date: 2014-05-02 06:35:54
Enable the Annex F Time Sync explicitly for DRA7x and AM4372.
With this enabled the L2 PTP is working.
while at that rename TS_BIT8 to TS_TTL_NONZERO
Signed-off-by: George Cherian <redacted>
---
drivers/net/ethernet/ti/cpsw.c | 49 +++++++++++++++++++++++++++++++-----------
1 file changed, 37 insertions(+), 12 deletions(-)
From: Richard Cochran <richardcochran@gmail.com> Date: 2014-05-04 16:24:44
On Fri, May 02, 2014 at 12:01:58PM +0530, George Cherian wrote:
The series adds CPTS support for AM4372.
Patch 1 - DT changes w.r.t clock changes for AM33xx.
Patch 2 - CPTS clock name harcoding in the driver is removed.
Easier to pass the clock name from dt rather than hardcoding in driver.
Also in prepration for DRA7x CPTS support.
Patch 3 - Enable the CPTS support for both DRA7x and AM4372 in the driver.
Patch 4 - Enable the Annexe F for L2 PTP for AM437x and DRA7x.
Patch 5 - Change the default clocksource to dpll_core_m5
Patch 6 - DT changes for AM4372.
v1 -> v2
Patch 1 and 2 Re-ordering.
Seperate TS_BITS define for Hw version V2 and V3
Acked-by: Richard Cochran <richardcochran@gmail.com>
From: Tero Kristo <hidden> Date: 2014-05-05 12:23:07
On 05/02/2014 09:32 AM, George Cherian wrote:
cpsw_cpts_rft_clk has got the choice of 3 clocksources
-dpll_core_m4_ck
-dpll_core_m5_ck
-dpll_disp_m2_ck
By default dpll_core_m4_ck is selected, witn this as clock
source the CPTS doesnot work properly. It gives clockcheck errors
while running PTP.
clockcheck: clock jumped backward or running slower than expected!
By selecting dpll_core_m5_ck as the clocksource fixes this issue.
In AM335x dpll_core_m5_ck is the default clocksource.
Signed-off-by: George Cherian <redacted>
From: Mugunthan V N <hidden> Date: 2014-05-05 14:23:45
On Friday 02 May 2014 12:01 PM, George Cherian wrote:
The series adds CPTS support for AM4372.
Patch 1 - DT changes w.r.t clock changes for AM33xx.
Patch 2 - CPTS clock name harcoding in the driver is removed.
Easier to pass the clock name from dt rather than hardcoding in driver.
Also in prepration for DRA7x CPTS support.
Patch 3 - Enable the CPTS support for both DRA7x and AM4372 in the driver.
Patch 4 - Enable the Annexe F for L2 PTP for AM437x and DRA7x.
Patch 5 - Change the default clocksource to dpll_core_m5
Patch 6 - DT changes for AM4372.
v1 -> v2
Patch 1 and 2 Re-ordering.
Seperate TS_BITS define for Hw version V2 and V3
George Cherian (6):
ARM: dts: am33xx: Add clock names for cpsw and cpts
drivers: net: cpts: Remove hardcoded clock name for CPTS
drivers: net: cpsw: Enable CPTS for DRA7xx and AM4372
drivers: net: cpsw: Enable Annexe F Time sync
ARM: AM43xx: clk: Change the cpts ref clock source to dpll_core_m5 clk
ARM: dts: am4372: Add clock names for cpsw and cpts
arch/arm/boot/dts/am33xx.dtsi | 2 ++
arch/arm/boot/dts/am4372.dtsi | 2 ++
drivers/clk/ti/clk-43xx.c | 16 ++++++++++++
drivers/net/ethernet/ti/cpsw.c | 56 +++++++++++++++++++++++++++++++-----------
drivers/net/ethernet/ti/cpts.c | 11 +++------
5 files changed, 66 insertions(+), 21 deletions(-)
Acked-by: Mugunthan V N <redacted>
Regards
Mugunthan V N
From: David Miller <davem@davemloft.net> Date: 2014-05-05 17:19:27
From: George Cherian <redacted>
Date: Fri, 2 May 2014 12:01:58 +0530
The series adds CPTS support for AM4372.
Patch 1 - DT changes w.r.t clock changes for AM33xx.
Patch 2 - CPTS clock name harcoding in the driver is removed.
Easier to pass the clock name from dt rather than hardcoding in driver.
Also in prepration for DRA7x CPTS support.
Patch 3 - Enable the CPTS support for both DRA7x and AM4372 in the driver.
Patch 4 - Enable the Annexe F for L2 PTP for AM437x and DRA7x.
Patch 5 - Change the default clocksource to dpll_core_m5
Patch 6 - DT changes for AM4372.
v1 -> v2
Patch 1 and 2 Re-ordering.
Seperate TS_BITS define for Hw version V2 and V3