OSDN Git Service

phy: nxp-c45-tja11xx: add extts and perout support
authorRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Mon, 3 Jan 2022 16:01:25 +0000 (18:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jan 2022 12:14:19 +0000 (12:14 +0000)
commit7a71c8aa0a75c8bb53de50042ff86ba047969c69
tree3148d750a1e9161ed8ef6064df3162c0879d0d0c
parentdfb55f9984f53eb2fd2b6df64196e6eb0edf0b65
phy: nxp-c45-tja11xx: add extts and perout support

Add support for external timestamp and periodic signal output.
TJA1103 have one periodic signal and one external time stamp signal that
can be multiplexed on all 11 gpio pins.

The periodic signal can be only enabled or disabled. Have no start time
and if is enabled will be generated with a period of one second in sync
with the LTC seconds counter. The phase change is possible only with a
half of a second.

The external timestamp signal has no interrupt and no valid bit and
that's why the timestamps are handled by polling in .do_aux_work.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/nxp-c45-tja11xx.c