]> 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)
commit42c42571bde6c30bcbda1613f47f883c03bc0fb0
tree3148d750a1e9161ed8ef6064df3162c0879d0d0c
parent3ba3e8d34ab3076e8f7d6adbf3f02bfeb9e5c2cc
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