Linux CAN drivers development
 help / color / mirror / Atom feed
* [PATCH v1 0/1] can: ctucanfd: Update CTU CAN FD IP core registers to match version 3.x.
@ 2022-07-18  9:55 Pavel Pisa
  2022-07-18  9:55 ` [PATCH v1 1/1] " Pavel Pisa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pavel Pisa @ 2022-07-18  9:55 UTC (permalink / raw)
  To: linux-can, Marc Kleine-Budde, Matej Vasilevski
  Cc: Oliver Hartkopp, David Miller, Carsten Emde, Marin Jerabek,
	Ondrej Ille, Jiri Novak, Pavel Pisa

The 3.x CTU CAN FD IP core version provides informative fields
with number of Tx registers count and most significant active
(toggling) timestamp base bit.

The fields are read as zero for older 2.x IP core version.
The 4 Tx buffers and bit 63 MSB can be considered in such
case and compatibility with 2.x core version is preserved.

This change allows to update Matej Vasilevski's patch series

  [RFC] can: ctucanfd: RX timestamping implementation

to work with the platform bus and PCIe core integration
without need of additional mandatory parameters.

Only optional one for timestamp clock frequency can be
used when bitrate base clock and timestamp clocks differ.

  ts-frequency:
    description: |
      Frequency of the timestamping counter. Set this if you want to get
      timestamps, but you didn't set the timestamping clock in clocks property.

The information about clocks frequencies on PCIe integration
has to be provided by other means but we expect that it can
be directly deduced from Vendor and Device IDs and corresponding
device table.

Pavel Pisa (1):
  can: ctucanfd: Update CTU CAN FD IP core registers to match version
    3.x.

This patch is intended for 5.20 kernel version but possible postpone
to 5.21 is not big problem.

It would be ideal to include even ctucanfd timestamping in 5.20
but timing for updates and reviews is probably quite tight.

 drivers/net/can/ctucanfd/ctucanfd_kregs.h | 32 ++++++++++++++++++++---
 1 file changed, 28 insertions(+), 4 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2022-07-18 10:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18  9:55 [PATCH v1 0/1] can: ctucanfd: Update CTU CAN FD IP core registers to match version 3.x Pavel Pisa
2022-07-18  9:55 ` [PATCH v1 1/1] " Pavel Pisa
2022-07-18 10:02   ` Marc Kleine-Budde
2022-07-18 10:00 ` [PATCH v1 0/1] " Marc Kleine-Budde
2022-07-18 10:26 ` [PATCH v2 1/1] " Pavel Pisa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox