Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp220775lqo; Tue, 7 May 2024 18:52:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqJrKMeCNyoGwIVskoNuxrZjhYXT7ZfuYKUbPKc16AJ1IGOCj6w/IBLTsiHg2XlWjgjxKSlOkCAQxA5C1DdYLkxOR0DxowsRQj26/prA== X-Google-Smtp-Source: AGHT+IHLxvUkV7/MZSBKn1jhRu//lvwFiut/amuy70Srf7vhwh00b/iMCkxjpRKAz/JFM4G84wAs X-Received: by 2002:a05:6a21:272f:b0:1af:6541:8a08 with SMTP id adf61e73a8af0-1afc8d3d455mr1563467637.20.1715133159493; Tue, 07 May 2024 18:52:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715133159; cv=pass; d=google.com; s=arc-20160816; b=CPJSH9OmC5e7OhO5KJFIaqaF/O/fVzBxYyrIkW3S8gIncpRncakHrF98BVZ2Rs98Bh L1BwTbRycOGVwykElQ8YEwdhDBxcNKuRmTqQiQ05vKAEI78QE2Fu/oDmpgvA/Ud8aD6O gw2fd8krwvb3ci65SQ8Zz/NhxXht7rBAhx5DBV6z1Zze94XRnp4p6F2rUMFPTfIFcra1 0bUn7w2q9nNzc8Q7WuA6v3qgHgCFc5k/c/gPc4K6/gg38SOyWyzAPWq0j7/PBr6VmAME RQ4N1wPwK2JKwlEQtY0KRGuwSISfREmL5GSpaz9NCXgkvBI3KcVIxxLsO2VJQFkR1vXP C1uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=mI+mlKCTeaIo8cDU5awpjfrsbBEG0F37ujmJyccwavs=; fh=BZXfy3Npr7aauppUhbfajh+a+3jGnO1Ftl+ZjLEZvcw=; b=U/n+q7hnCBK4DTFmx8dWmXpdhfYGh9yawPoBXprSgQhAzkEjWSYg0F/+2QugetsHUw sWbP12uHfhqVP3zovgVQMMaItJ7WZjnjDVz5UClxhDBjlkypsXoruqBkT7XBzH6p+xpq vYagPFat012Rd/4kcBiCO1JSlBV07e7rLcD4b0NNlPI4HChWHWuyxt9Tfg7oEv8Eh/3z K+qGsF+OHAf9YdOoiKyHmE71E4kyleVpiPjvKeZXAxx90M55RWXmcwQm0u4TST/sVTrg hDZGriYeCLHBdZw7IS450lB/O/1E4MrO6B4OGGYUq4b+Hlk/QOC3DlrYY4oOygO5ExF2 6tvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDN9fIC6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-172612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lk11-20020a17090308cb00b001eb78a963fasi9261301plb.636.2024.05.07.18.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 18:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDN9fIC6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-172612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3109A283C41 for ; Wed, 8 May 2024 01:52:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33E2A9454; Wed, 8 May 2024 01:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bDN9fIC6" Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0A4E1A2C2C; Wed, 8 May 2024 01:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715133151; cv=none; b=FFe4tT2/hlWiiMkA0oat4L5LAb7dbGQi+EiZc63Tr6uh0BmQEtp7cU42q4XP4vzuYZKNA25mRATlbvsiZav/y7QWasP+JzJZ0NczadiJ3cQnYYlgxBINrIjNhPrzX/4NLC0dWDvIGbs6alTm2/LAqzkxK01qW3fxO/1P3L4vktQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715133151; c=relaxed/simple; bh=ugJZMfnWp1tZ+Efw8vGTidZeEWR3MbrG1EGUAcX/GwQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=pd8IFr0a1O6CqZNh3YFoDitmHT0kbN/W1U5EGQoJv7Usndm/guP+5aiKgRaZA0lhAxafzDgDknqe4V1V/7bL/XRfAfuyGgNtEd74WyczouJNzLn/PllO/e/x82+AoEi7BKVufQocjjHQAdWPZJ/njdcxUp8lW0M5qS4RlwTEVqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bDN9fIC6; arc=none smtp.client-ip=209.85.167.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3c96c096a32so1653280b6e.1; Tue, 07 May 2024 18:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715133149; x=1715737949; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=mI+mlKCTeaIo8cDU5awpjfrsbBEG0F37ujmJyccwavs=; b=bDN9fIC6ypWa/HCq4NowkoLqEy8UJ+eElJa3LZal0AA55yINiDVG51vNmIBPFEGepX vv50TQPcENibdnco58KLYCzGy4Isp8rEKorU31cMUkdhDn0VHuLjXBZie43gWG1vShCp op++a+UafBLmdQVy4RTVpexHAGtVMUcEtmJsZ4m1aoqSWYMwxSNd/WWAi9ZK8n1Nz5wJ l/3Y0x2jVzf4P+bcj+VnpQr2wiSLiu9/cCftheazI9+fYvbiu/rRggw5qr5KR4iuZtk9 GffhN6/JUsb+CGCgRNKk6oEC7Jbx+p5vWEpLiJ2WkTZyH8Hc1KD1vMBW7P9YrM4A9vjk xc+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715133149; x=1715737949; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mI+mlKCTeaIo8cDU5awpjfrsbBEG0F37ujmJyccwavs=; b=GAZBU00Lmw6HcSiXfJvKoE4IEnQskIZj1s4Pbx/N1iKoWExSS0brngPR5Ss8h4YTcQ rqmGtNt2bnTyKPf0kAnbh943LFXnY0MPm9vWYP4JBzlug224eaTcDgoxfNlU7emATy2a 7/pYlLrYSPtMxLAUV1v20hyqi5jjWf4lMDA8pGlf1M4T0hBQEuLZj+TuyMa7iA4iLO5J N57WN4/QmuUGwSY+7kqp2kIjK26w+PJGCUHZiYyp7uQxaobmmxm5BGO4EoCztqfsC16/ 2qqa05ZK/QaySGmf1OchJvHg+gO3z4PP7xlgkSV71gQBrTVFDRyl8hjRd6VKdSAwFLId Kxiw== X-Forwarded-Encrypted: i=1; AJvYcCUPiZmjY/uLZhfAaYfANQee3rRnLzKwxphbIk+u+HmOpz4tc5r3cRpR1OiHV9GaVMsfFFbYwJ/mbBBBLtQbFQBz7XHlGAAwD4vsYG+h X-Gm-Message-State: AOJu0YzwIaHBR+o9VaHRmrjbokfzvaarZ1DG3HEboLx4Cu3o5e9+NgVw S4XcOhl7BOf8I4lSQGaP5m9GKfOH84g0JKraalPlTC3xWPGMEP1roYlscg== X-Received: by 2002:a05:6808:8da:b0:3c9:7810:faf0 with SMTP id 5614622812f47-3c9852bda11mr1292898b6e.20.1715133148934; Tue, 07 May 2024 18:52:28 -0700 (PDT) Received: from archie.me ([103.124.138.155]) by smtp.gmail.com with ESMTPSA id fh21-20020a056a00391500b006e6c16179dbsm10037041pfb.24.2024.05.07.18.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 18:52:28 -0700 (PDT) Received: by archie.me (Postfix, from userid 1000) id 1DC5218462DC1; Wed, 08 May 2024 08:52:24 +0700 (WIB) Date: Wed, 8 May 2024 08:52:24 +0700 From: Bagas Sanjaya To: Greg Kroah-Hartman , Rob Herring , Jiri Slaby Cc: Linux Kernel Mailing List , Linux Serial , Elvis Subject: Fwd: Add method to allow switching kernel level PPS signal from DCD to CTS serial pin Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ceDjgLgiBjV9uhOH" Content-Disposition: inline --ceDjgLgiBjV9uhOH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Greg, hi maintainers, On Bugzilla, Elvis requested a new RJ45 UART feature [1]: > BACKGROUND >=20 > There are appliances that do not have a full DE9 RS-232 port and only RJ4= 5 COM ports, which do not include the DCD pin required for PPS signal detec= tion. =20 >=20 > 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. =20 >=20 > https://man.freebsd.org/cgi/man.cgi?query=3Duart >=20 > FreeBSD allows switching from DCD to CTS pin on the fly using a system tu= nable in a loader.conf file. Example: dev.uart.0.pps_mode=3D"1" >=20 > This allow one to connect a serial GPS receiver with PPS output to a RJ45= COM port for a Stratum 0 GPS+PPS source. =20 >=20 > https://github.com/elvisimprsntr/pfsense-ntp-gps?tab=3Dreadme-ov-file >=20 > KERNAL PATCH HACKS >=20 > Some kernel patches have demonstrated receiving PPS on the CTS pin, but r= equires hacking up the kernel and will will not persist on kernel update to= new installations. =20 >=20 > https://github.com/not1337/pps-stuff >=20 > FEATURE REQUEST >=20 > Add a tunable option to allow the end user to switch between PPS on DCD t= o 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=3D218813 --=20 An old man doll... just what I always wanted! - Clara --ceDjgLgiBjV9uhOH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZjra0QAKCRD2uYlJVVFO o/iyAQDHM8NvcDtZ8zMGlWMT2semUK8Jnc39VvUKdDj0DgrBvAEA66gysRM5CVqY hSTSD2PPhC+SKhMd1bUEpl6tZOM1MA8= =RSX+ -----END PGP SIGNATURE----- --ceDjgLgiBjV9uhOH--