]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea1034761bd015da44a7cc1b9e7d61968059ec8c
tree3148d750a1e9161ed8ef6064df3162c0879d0d0c
parentf5b601568fec9bee39eaed529ae872054b9d5f0f
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