From: Chintan Vankar <c-vankar@ti.com>
To: Jason Reeder <jreeder@ti.com>, <vigneshr@ti.com>, <nm@ti.com>,
"Chintan Vankar" <c-vankar@ti.com>,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>,
"David S. Miller" <davem@davemloft.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Thomas Gleixner <tglx@linutronix.de>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<srk@ti.com>, <s-vadapalli@ti.com>, <danishanwar@ti.com>,
<m-malladi@ti.com>
Subject: [RFC PATCH 0/2] Add support for Timesync Interrupt Router
Date: Wed, 5 Feb 2025 21:31:17 +0530 [thread overview]
Message-ID: <20250205160119.136639-1-c-vankar@ti.com> (raw)
This series introduces the driver support for Timesync Interrupt Router,
I will appreciate feedback on the driver implementation.
Timesync Interrupt Router is an instantiation of the generic interrupt
router module. It provides a mechanism to mux M interrupt inputs to N
interrupt outputs, where all M inputs are selectable to be driven as per N
output. More details about interrupt router and timesync interrupt router
can be found in sections 9.3 and 11.3.2 of TRM:
https://www.ti.com/lit/ug/spruiu1d/spruiu1d.pdf
Timesync Interrupt Router's inputs are either from peripherals or from
Device sync events. This series adds support on how we can map output
of the Timesync Interrupt Router corresponding to the input received
from peripherals.
As an instance, one of the input for Timesync Interrupt Router is,
Generator function, which is an output from CPTS module. The CPTS hardware
doesn't support PPS signal generation. Using the GenFx (periodic signal
generator) function, it is possible to model a PPS signal followed by
routing it via the Timesync Interrupt router to the CPTS_HWy_TS_PUSH
(hardware time stamp) input, in order to generate timestamps at 1 second
intervals.
To provide PPS support to am65-cpts driver we need to configure timesync
interrupt router to route input received as GenFx output from CPTS module
back to HWy_TS_PUSH input of CPTS module.
AM62x is one of the SoCs which has Timesync Router and mapping for all its
output corresponding to its input can be found on SDK documentation of
TISCI at:
https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/interrupt_cfg.html#timesync-event-router0-interrupt-router-output-destinations
This series is based on linux-next tagged next-20250205.
Chintan Vankar (2):
irqchip: ti-tsir: Add support for Timesync Interrupt Router
net: ethernet: ti: am65-cpts: Add support to configure GenF signal for
CPTS
drivers/irqchip/Kconfig | 9 +++
drivers/irqchip/Makefile | 1 +
drivers/irqchip/ti-timesync-intr.c | 109 ++++++++++++++++++++++++++++
drivers/net/ethernet/ti/am65-cpts.c | 21 ++++++
4 files changed, 140 insertions(+)
create mode 100644 drivers/irqchip/ti-timesync-intr.c
--
2.34.1
next reply other threads:[~2025-02-05 16:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 16:01 Chintan Vankar [this message]
2025-02-05 16:01 ` [RFC PATCH 1/2] irqchip: ti-tsir: " Chintan Vankar
2025-02-06 17:39 ` Simon Horman
2025-02-06 21:28 ` Thomas Gleixner
2025-02-09 8:36 ` Vankar, Chintan
2025-02-10 20:03 ` Thomas Gleixner
2025-02-13 18:45 ` Vankar, Chintan
2025-02-13 22:43 ` Thomas Gleixner
2025-02-15 11:49 ` Chintan Vankar
2025-02-17 20:17 ` Thomas Gleixner
2025-02-19 19:35 ` Vankar, Chintan
2025-02-05 16:01 ` [RFC PATCH 2/2] net: ethernet: ti: am65-cpts: Add support to configure GenF signal for CPTS Chintan Vankar
2025-02-06 5:13 ` [RFC PATCH 0/2] Add support for Timesync Interrupt Router Vignesh Raghavendra
2025-02-06 6:18 ` Chintan Vankar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250205160119.136639-1-c-vankar@ti.com \
--to=c-vankar@ti.com \
--cc=andrew+netdev@lunn.ch \
--cc=danishanwar@ti.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jreeder@ti.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m-malladi@ti.com \
--cc=netdev@vger.kernel.org \
--cc=nm@ti.com \
--cc=pabeni@redhat.com \
--cc=s-vadapalli@ti.com \
--cc=srk@ti.com \
--cc=tglx@linutronix.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®