Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Richard Cochran <richardcochran@gmail.com>
To: Jonathan Lemon <jonathan.lemon@gmail.com>
Cc: davem@davemloft.net, kuba@kernel.org, kernel-team@fb.com,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next v4] ptp: ocp: Expose various resources on the timecard.
Date: Wed, 4 Aug 2021 07:16:46 -0700	[thread overview]
Message-ID: <20210804141646.GA1645@hoboy.vegasvil.org> (raw)
In-Reply-To: <20210804033327.345759-1-jonathan.lemon@gmail.com>

On Tue, Aug 03, 2021 at 08:33:27PM -0700, Jonathan Lemon wrote:
> The OpenCompute timecard driver has additional functionality besides
> a clock.  Make the following resources available:
> 
>  - The external timestamp channels (ts0/ts1)
>  - devlink support for flashing and health reporting
>  - GPS and MAC serial ports
>  - board serial number (obtained from i2c device)
> 
> Also add watchdog functionality for when GNSS goes into holdover.
> 
> The resources are collected under a timecard class directory:
> 
>   [jlemon@timecard ~]$ ls -g /sys/class/timecard/ocp1/
>   total 0
>   -r--r--r--. 1 root 4096 Aug  3 19:49 available_clock_sources
>   -rw-r--r--. 1 root 4096 Aug  3 19:49 clock_source
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 device -> ../../../0000:04:00.0/
>   -r--r--r--. 1 root 4096 Aug  3 19:49 gps_sync
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 i2c -> ../../xiic-i2c.1024/i2c-2/
>   drwxr-xr-x. 2 root    0 Aug  3 19:49 power/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 pps ->
>   ../../../../../virtual/pps/pps1/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 ptp -> ../../ptp/ptp2/
>   -r--r--r--. 1 root 4096 Aug  3 19:49 serialnum
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 subsystem ->
>   ../../../../../../class/timecard/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 ttyGPS -> ../../tty/ttyS7/
>   lrwxrwxrwx. 1 root    0 Aug  3 19:49 ttyMAC -> ../../tty/ttyS8/
>   -rw-r--r--. 1 root 4096 Aug  3 19:39 uevent

I like this user friendly grouping.

Acked-by: Richard Cochran <richardcochran@gmail.com>

  reply	other threads:[~2021-08-04 14:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  3:33 Jonathan Lemon
2021-08-04 14:16 ` Richard Cochran [this message]
2021-08-04 21:09 ` Jakub Kicinski
2021-08-04 23:52   ` Jonathan Lemon
2021-08-05 13:03     ` Jakub Kicinski
2021-08-05 17:26       ` Jonathan Lemon
2021-08-05 18:55         ` Jakub Kicinski

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=20210804141646.GA1645@hoboy.vegasvil.org \
    --to=richardcochran@gmail.com \
    --cc=davem@davemloft.net \
    --cc=jonathan.lemon@gmail.com \
    --cc=kernel-team@fb.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --subject='Re: [PATCH net-next v4] ptp: ocp: Expose various resources on the timecard.' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).