Linux-Serial Archive mirror
 help / color / mirror / Atom feed
From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh@kernel.org>, Jiri Slaby <jirislaby@kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Serial <linux-serial@vger.kernel.org>,
	Elvis <elvisimprsntr@gmail.com>
Subject: Fwd: Add method to allow switching kernel level PPS signal from DCD to CTS serial pin
Date: Wed, 8 May 2024 08:52:24 +0700	[thread overview]
Message-ID: <Zjra2GZIDC7BPoZx@archie.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

Hi Greg, hi maintainers,

On Bugzilla, Elvis <elvisimprsntr@gmail.com> requested a new RJ45 UART
feature [1]:

> BACKGROUND
> 
> There are appliances that do not have a full DE9 RS-232 port and only RJ45 COM ports, which do not include the DCD pin required for PPS signal detection.  
> 
> RJ45 COM port do include the CTS input pin #8, which can be used for PPS signal detection.  This is a feature that has been available in FreeBSD for some time.  
> 
> https://man.freebsd.org/cgi/man.cgi?query=uart
> 
> FreeBSD allows switching from DCD to CTS pin on the fly using a system tunable in a loader.conf file.  Example: dev.uart.0.pps_mode="1"
> 
> This allow one to connect a serial GPS receiver with PPS output to a RJ45 COM port for a Stratum 0 GPS+PPS source.  
> 
> https://github.com/elvisimprsntr/pfsense-ntp-gps?tab=readme-ov-file
> 
> KERNAL PATCH HACKS
> 
> Some kernel patches have demonstrated receiving PPS on the CTS pin, but requires hacking up the kernel and will will not persist on kernel update to new installations.  
> 
> https://github.com/not1337/pps-stuff
> 
> FEATURE REQUEST
> 
> Add a tunable option to allow the end user to switch between PPS on DCD to CTS pin, similar to the way FreeBSD does.

What do you think about above feature request?

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=218813

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

             reply	other threads:[~2024-05-08  1:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-08  1:52 Bagas Sanjaya [this message]
2024-05-08 18:28 ` Fwd: Add method to allow switching kernel level PPS signal from DCD to CTS serial pin Greg Kroah-Hartman
2024-05-09  6:24   ` Theodore Ts'o
2024-05-09 10:41     ` Bagas Sanjaya

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=Zjra2GZIDC7BPoZx@archie.me \
    --to=bagasdotme@gmail.com \
    --cc=elvisimprsntr@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=robh@kernel.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).