From: Min Li
Remove write phase mode 5 second setup delay, not needed.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 22 --
drivers/ptp/ptp_clockmatrix.h | 1 -
2 files changed, 23 deletions(-)
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clock
From: Min Li
Add deprecated flag to indicate < v4.8.7.
Fix idtcm_enable_tod() call correct settime().
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 69 ---
drivers/ptp/ptp_clockmatrix.h | 11 +++
2 files changed, 45 insertions(+), 35 dele
From: Min Li
SM_RESET device only when loading full configuration and check
for BOOT_STATUS. Also remove polling for write trigger done in
_idtcm_settime().
Changes since v1:
-Correct warnings from strict checkpatch
Signed-off-by: Min Li
---
drivers/ptp/idt8a340_reg.h| 1 +
drivers/ptp/
From: Min Li
Fix non-zero phase_adj is lost after snap. Use ktime_sub
to do ktime_t subtraction.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 109 ++
drivers/ptp/ptp_clockmatrix.h | 5 +-
2 files changed, 90 insertions(+), 24 deletions(-)
From: Min Li
SM_RESET device only when loading full configuration and check
for BOOT_STATUS. Also remove polling for write trigger done in
_idtcm_settime().
Signed-off-by: Min Li
---
drivers/ptp/idt8a340_reg.h| 1 +
drivers/ptp/ptp_clockmatrix.c | 152
From: Min Li
Add deprecated flag to indicate < v4.8.7.
Fix idtcm_enable_tod() call correct settime().
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 69 ---
drivers/ptp/ptp_clockmatrix.h | 11 +++
2 files changed, 45 insertions(+), 35 dele
From: Min Li
Remove write phase mode 5 second setup delay, not needed.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 22 --
drivers/ptp/ptp_clockmatrix.h | 1 -
2 files changed, 23 deletions(-)
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clock
From: Min Li
Fix non-zero phase_adj is lost after snap. Use ktime_sub
to do ktime_t subtraction.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 109 ++
drivers/ptp/ptp_clockmatrix.h | 5 +-
2 files changed, 90 insertions(+), 24 deletions(-)
From: Min Li
Feed kstrtou8 with NULL terminated string.
Changes since v1:
-Use sscanf to get rid of adhoc string parse.
Changes since v2:
-Check if sscanf returns 3.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 49 ++-
1 file changed, 16 in
From: Min Li
Feed kstrtou8 with NULL terminated string.
Changes since v1:
-Use sscanf to get rid of adhoc string parse.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 53 +++
1 file changed, 18 insertions(+), 35 deletions(-)
diff --git a/dri
From: Min Li
Feed kstrtou8 with NULL terminated string.
Changes since v1:
-Use strscpy instead of strncpy for safety.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 60 ++-
tools/bpf/example | 12 +
tools/bpf/novlan
From: Min Li
Feed kstrtou8 with NULL terminated string.
Changes since v1:
-Only strcpy 15 characters to leave 1 space for '\0'
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 52 +++
1 file changed, 38 insertions(+), 14 deletions(-)
diff --gi
From: Min Li
Remove write phase mode 5 second setup delay, not needed.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 22 --
drivers/ptp/ptp_clockmatrix.h | 1 -
2 files changed, 23 deletions(-)
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clock
From: Min Li
This patch series is aiming at submitting the latest bug fixes and code
improvements of PHC driver for Renesas CLOCKMATRIX timing card. The code
has been thouroughly tested in both customer labs and Renesas internal
lab using the latest linuxptp program on Xilinx ZCU102 platform.
Ch
From: Min Li
Fix non-zero phase_adj is lost after snap. Use ktime_sub
to do ktime_t subtraction.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 210 +-
drivers/ptp/ptp_clockmatrix.h | 5 +-
2 files changed, 190 insertions(+), 25 deletions(-)
From: Min Li
Add deprecated flag to indicate < v4.8.7.
Fix idtcm_enable_tod() call correct settime().
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 69 ---
drivers/ptp/ptp_clockmatrix.h | 11 +++
2 files changed, 45 insertions(+), 35 dele
From: Min Li
SM_RESET device only when loading full configuration and check
for BOOT_STATUS. Also remove polling for write trigger done in
_idtcm_settime().
Signed-off-by: Min Li
---
drivers/ptp/idt8a340_reg.h| 1 +
drivers/ptp/ptp_clockmatrix.c | 152
From: Min Li
Feed kstrtou8 with NULL terminated string.
Changes since v1:
-Only strcpy 15 characters to leave 1 space for '\0'
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 52 +++
1 file changed, 38 insertions(+), 14 deletions(-)
diff --gi
From: Min Li
SM_RESET device only when loading full configuration and check
for BOOT_STATUS. Also remove polling for write trigger done in
_idtcm_settime().
Signed-off-by: Min Li
---
drivers/ptp/idt8a340_reg.h| 1 +
drivers/ptp/ptp_clockmatrix.c | 152
From: Min Li
Remove write phase mode 5 second setup delay, not needed.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 22 --
drivers/ptp/ptp_clockmatrix.h | 1 -
2 files changed, 23 deletions(-)
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clock
From: Min Li
Add deprecated flag to indicate < v4.8.7.
Fix idtcm_enable_tod() call correct settime().
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 69 ---
drivers/ptp/ptp_clockmatrix.h | 11 +++
2 files changed, 45 insertions(+), 35 dele
From: Min Li
Feed kstrtou8 with NULL terminated string.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 52 +++
1 file changed, 38 insertions(+), 14 deletions(-)
diff --git a/drivers/ptp/ptp_clockmatrix.c b/drivers/ptp/ptp_clockmatrix.c
index
From: Min Li
Fix non-zero phase_adj is lost after snap. Use ktime_sub
to do ktime_t subtraction.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 210 +-
drivers/ptp/ptp_clockmatrix.h | 5 +-
2 files changed, 190 insertions(+), 25 deletions(-)
From: Min Li
Use div_s64 so that the neg_adj is not needed.
Signed-off-by: Min Li
Acked-by: Richard Cochran
---
drivers/ptp/ptp_idt82p33.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
index 223bc11..c1c9
From: Min Li
Add idt82p33_adjphase() to support PHC write phase mode.
Changes since v1:
-Fix broken build
Changes since v2:
-Fix trailing space
Changes since v3:
-Improvements suggested by Jakub
Signed-off-by: Min Li
Acked-by: Richard Cochran
---
drivers/ptp/ptp_idt82p33.c | 217 +
From: Min Li
Refactor idt82p33_xfer and use i2c_master_send for write operation.
Because some I2C controllers are only working with single-burst write
transaction.
Changes since v1:
- Fix broken build.
Signed-off-by: Min Li
Acked-by: Richard Cochran
---
drivers/ptp/ptp_idt82p33.c | 47 +
From: Min Li
Use div_s64 so that the neg_adj is not needed.
Signed-off-by: Min Li
Acked-by: Richard Cochran
---
drivers/ptp/ptp_idt82p33.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
index b1528a0..e970
From: Min Li
Add idt82p33_adjphase() to support PHC write phase mode.
Changes since v1:
-Fix broken build
Changes since v2:
-Fix trailing space
Signed-off-by: Min Li
Acked-by: Richard Cochran
---
drivers/ptp/ptp_idt82p33.c | 222 -
drivers/ptp/pt
From: Min Li
Refactor idt82p33_xfer and use i2c_master_send for write operation.
Because some I2C controllers are only working with single-burst write
transaction.
Changes since v1:
- Fix broken build.
Signed-off-by: Min Li
Acked-by: Richard Cochran
---
drivers/ptp/ptp_idt82p33.c | 50 +
From: Min Li
Use div_s64 so that the neg_adj is not needed.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
index b1528a0..e970379d 100644
--- a/drivers/pt
From: Min Li
Refactor idt82p33_xfer and use i2c_master_send for write operation.
Because some I2C controllers are only working with single-burst write
transaction.
Changes since v1:
- Fix broken build.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 52 +
From: Min Li
Add idt82p33_adjphase() to support PHC write phase mode.
Changes since v1:
-Fix broken build
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 224 -
drivers/ptp/ptp_idt82p33.h | 2 +
2 files changed, 163 insertions(+), 63 deleti
From: Min Li
Use div_s64 so that the neg_adj is not needed.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
index b1528a0..e970379d 100644
--- a/drivers/pt
From: Min Li
Add idt82p33_adjphase() to support PHC write phase mode.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 226 -
drivers/ptp/ptp_idt82p33.h | 2 +
2 files changed, 164 insertions(+), 64 deletions(-)
diff --git a/drivers/ptp/ptp_
From: Min Li
Refactor idt82p33_xfer and use i2c_master_send for write operation.
Because some I2C controllers are only working with single-burst write
transaction.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 52 +-
drivers/ptp/ptp_idt82p33
From: Min Li
Add idt82p33_adjwritephase() to support PHC write phase mode.
Changes since v1:
- Fix broken build on 32 bit machine due to 64 bit division.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 317 ++---
drivers/ptp/ptp_idt82p33.h | 3
From: Min Li
Add idt82p33_adjwritephase() to support PHC write phase mode.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 307 +++--
drivers/ptp/ptp_idt82p33.h | 3 +
2 files changed, 243 insertions(+), 67 deletions(-)
diff --git a/drivers/ptp
From: Min Li
The old code for i2c write would break on some controllers, which fails
at handling Repeated Start Condition. So we will just use i2c_master_send
to handle write in one transanction.
Changes since v1:
- Remove indentation change
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatr
From: Min Li
The old code for i2c write would break on some controllers, which fails
at handling Repeated Start Condition. So we will just use i2c_master_send
to handle write in one transanction.
Signed-off-by: Min Li
---
drivers/ptp/ptp_clockmatrix.c | 56 +
From: Min Li
Add adjphase support for idt82p33xxx synchronization management unit.
Also fix n_per_out to the actual number of outputs.
Changes since v1:
- Break into small changes
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 48 +-
1 file
From: Min Li
Enable/disable individual output by index instead of by output_mask
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 62 ++
drivers/ptp/ptp_idt82p33.h | 2 ++
2 files changed, 48 insertions(+), 16 deletions(-)
diff --git a/driver
From: Min Li
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 88 +-
1 file changed, 79 insertions(+), 9 deletions(-)
diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
index bd1fbcd..189bb81 100644
--- a/drivers/ptp/ptp_idt82
From: Min Li
Instead of declaring its own delay_work, use ptp_clock provided do_aux_work
to configure sync_tod.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 24
drivers/ptp/ptp_idt82p33.h | 2 --
2 files changed, 12 insertions(+), 14 deletions(-)
diff --git
From: Min Li
This update includes adjphase support, more debug logs, firmware name
parameter, correct PTP_CLK_REQ_PEROUT support and use do_aux_work to
do delay work.
Signed-off-by: Min Li
---
drivers/ptp/ptp_idt82p33.c | 233 +
drivers/ptp/ptp_idt82
From: Min Li
With 4.8.7 firmware, adjtime can change delta instead of absolute time,
which greately increases snap accuracy. PPS alignment doesn't have to
be set for every single TOD change. Other minor changes includes:
adding more debug logs, increasing snap accuracy for pre 4.8.7 firmware
and
From: Min Li
Add below to “Ancillary clock features” section
- Low Pass Filter (LPF) access from user space
Add below to list of “Supported hardware” section
+ Renesas (IDT) ClockMatrix™
Signed-off-by: Min Li
---
Documentation/driver-api/ptp.rst | 12
1 file changed, 12 inser
From: Min Li
This patch is to add debugfs support for ptp_clockmatrix and ptp_idt82p33.
It will create a debugfs directory called idtptp{x} and x is the ptp index.
Three inerfaces are present, which are cmd, help and regs. help is read
only and will display a brief help message. regs is read only
47 matches
Mail list logo