All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ptp: add PTP_PEROUT_REVERSE_POLARITY flag
@ 2021-12-20 12:08 Radu Pirea (NXP OSS)
  2021-12-20 12:08 ` [PATCH 2/3] phy: nxp-c45-tja11xx: add extts and perout support Radu Pirea (NXP OSS)
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Radu Pirea (NXP OSS) @ 2021-12-20 12:08 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: christian.herber, andrew, hkallweit1, linux, davem, kuba,
	Radu Pirea (NXP OSS)

Some ptp controllers may be able to reverse the polarity of the periodic
output signal. Using the PTP_PEROUT_REVERSE_POLARITY flag we can tell the
drivers to reverse the polarity of the signal.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
---
 include/uapi/linux/ptp_clock.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h
index 1d108d597f66..34bc4ff89341 100644
--- a/include/uapi/linux/ptp_clock.h
+++ b/include/uapi/linux/ptp_clock.h
@@ -56,13 +56,15 @@
 #define PTP_PEROUT_ONE_SHOT		(1<<0)
 #define PTP_PEROUT_DUTY_CYCLE		(1<<1)
 #define PTP_PEROUT_PHASE		(1<<2)
+#define PTP_PEROUT_REVERSE_POLARITY	(1<<3)
 
 /*
  * flag fields valid for the new PTP_PEROUT_REQUEST2 ioctl.
  */
 #define PTP_PEROUT_VALID_FLAGS		(PTP_PEROUT_ONE_SHOT | \
 					 PTP_PEROUT_DUTY_CYCLE | \
-					 PTP_PEROUT_PHASE)
+					 PTP_PEROUT_PHASE | \
+					 PTP_PEROUT_REVERSE_POLARITY)
 
 /*
  * No flags are valid for the original PTP_PEROUT_REQUEST ioctl
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-22  8:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 12:08 [PATCH 1/3] ptp: add PTP_PEROUT_REVERSE_POLARITY flag Radu Pirea (NXP OSS)
2021-12-20 12:08 ` [PATCH 2/3] phy: nxp-c45-tja11xx: add extts and perout support Radu Pirea (NXP OSS)
2021-12-20 12:08 ` [PATCH 3/3] phy: nxp-c45-tja11xx: read the tx timestamp without lock Radu Pirea (NXP OSS)
2021-12-20 15:10   ` Andrew Lunn
2021-12-22  8:19     ` Radu Nicolae Pirea (NXP OSS)
2021-12-20 15:04 ` [PATCH 1/3] ptp: add PTP_PEROUT_REVERSE_POLARITY flag Andrew Lunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.