Sheetal Tigadoli
7aae5929cb
drivers:nvpps:nvpps: support use of higher PPS freq
...
- support use of higher PPS freq in nvpps. The freq value
is read from primary mac interface's "nvidia,pps_op_ctrl"
field and vetted for valid values(0,1,2,4,5 & 8).
- To use higher PPS freq, nvpps needs to update K_INT and
REF_FREQ.INC value and also increase the freq of monitoring
thread.
Bug 5042311
Bug 4899241
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I87e9be5a0ba2156054aea380c730b087d274c223
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3286820
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vijay Mishra <vijaym@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2025-07-24 10:19:14 +00:00
Jon Hunter
f01227d4ea
drivers: Drop inline from driver remove wrapper
...
The driver remove function is a function pointer and therefore, it does
not make sense to define the function as an 'inline'. Update the
coccinelle script and drivers to remove the inline statement.
Bug 4749580
Change-Id: Ia03691b75c4edffe609f27468b911a92a5ddbd68
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3233980
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2025-07-24 10:19:08 +00:00
Sheetal Tigadoli
d5575a5915
drivers:nvpps:Add PTP-TSC HW Locking suport on T26X
...
Add PTP-TSC HW Locking suport on T26X based platforms.
Bug 4791366
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: Ib285ca3d945ca93ab3cc0e8473c9fe07f88d0589
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3219460
Reviewed-by: Vijay Mishra <vijaym@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2025-07-24 10:19:07 +00:00
Sheetal Tigadoli
f83d436f52
drivers:nvpps:add support for t26x support
...
add support for t26x support
Bug 4715145
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: Ide5dc1b0de05e0948bd604f4c709df260888470a
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3191794
(cherry picked from commit 97ce1021b4be9450cfbd325c29c0b7e2421f49fd)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3192841
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2024-08-13 23:42:33 -07:00
Sheetal Tigadoli
a20117f5c2
nvpps: read TSC timestamp from arm generic timer
...
read TSC timestamp from arm generic timer in
NVPPS_GETTIMESTAMP ioctl instead of using kernel
maintained software monotonic time. As there is
difference b/w timestamps provided by these methods
Bug 4640166
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I458dd97198fcf5e7677a6347956c21a1e2f10020
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3133646
(cherry picked from commit 2731b361a3b2380749e623f5d88107c12cf65c0b)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3188880
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2024-08-11 17:28:10 -07:00
Jon Hunter
951b2423a8
drivers: Fix platform_driver remove for Linux v6.11
...
In Linux v6.11, the 'platform_driver' structure 'remove' callback was
updated to return void instead of 'int'. Update all the impacted drivers
as necessary to fix this.
Bug 4749580
Change-Id: I3bb5c549777f7ccad0e3f870373fdd25726ad7ed
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3182878
Reviewed-by: Brad Griffis <bgriffis@nvidia.com >
Tested-by: Brad Griffis <bgriffis@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
2024-08-11 17:20:34 -07:00
Sheetal Tigadoli
d71b21ebb9
drivers:nvpps: clear TSC CAPTURE interrupt enable bit
...
Clear INTR_EN bit from TSC_CAPTURE_CONFIGURATION_PTX
register as part of PTP TSC sync initialization sequence
as nvpps does not use capture interrupts for PTP-TSC
functioning.
Bug 4640129
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Change-Id: I9f374d8cde49cabcbc57e9edaf92031c07b6ada1
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3177373
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Vijay Mishra <vijaym@nvidia.com >
2024-07-28 21:41:19 -07:00
Hiteshkumar Patel
e4f9759f61
nvidia-oot: nvpps: Replace dev_info with dev_dbg.
...
nvpps driver is printing debug info when TSC status is not locked.
Replace that status print for dev_info() to dev_dbg().
Bug 4566570
Change-Id: I6537e08204c35698bf11fd9c3ff4951a6167f8e9
Signed-off-by: Hiteshkumar Patel <hiteshkumarg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3101099
(cherry picked from e77e6c5aec )
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3104089
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2024-04-02 08:02:22 -07:00
Hiteshkumar Patel
f4720eda1d
nvpps: Add support for AGX Orin.
...
Enable nvpps driver so it can be tested.
- Removed passing of ethernet interface name in DT.
- Require to pass Tegra ethernet controller DT phandle, where PTP server
will run.
Bug 4489344
Bug 3826818
Change-Id: I943ddf4071a55fb409d589473fde0075ac9f7150
Signed-off-by: Hiteshkumar Patel <hiteshkumarg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3076494
(cherry pick from commit 90c8229157 )
Signed-off-by: Hiteshkumar Patel <hiteshkumarg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3097855
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2024-04-02 08:01:58 -07:00
Gautham Srinivasan
fdac8e7016
nvidia-oot: nvpps: Use HTE driver
...
Refactor NVPPS driver to use HTE APIs instead of GTE
Bug 3961133
Change-Id: I0a38fb6fd42217515410a610d1900cb036086cf5
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067331
Reviewed-by: Dipen Patel <dipenp@nvidia.com >
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3091088
2024-03-11 08:07:06 -07:00
Sheetal Tigadoli
3a40a01b9e
drivers:nvpps:Avoid freeing & re-request of PPS IRQ
...
Avoid freeing & re-requesting of PPS IRQ when
switching between nvpps operating modes
Bug 4007008
Bug 4079057
Change-Id: I193416b8cb37ed0d4fc5241e64d8109805bf330f
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2914267
(cherry picked from commit ab9551812254c359dd6e5fd094b23fcfa921f67b)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3003992
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-10-26 17:34:45 -07:00
Jon Hunter
ce678a37b1
drivers: Add conftest test for class_create
...
In Linux v6.4, the module pointer argument is removed from the
class_create() function. Add a test to the conftest script that checks
if this argument for the class_create() function has been removed and
use the definition created by conftest to select which version of the
function is used.
Bug 4183168
Bug 4221847
Change-Id: I440e4b318001886cd0319bb3499ba33178475e8c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2989020
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-10-05 17:54:05 -07:00
Jon Hunter
00e11cac47
nvpps: Always use of_get_named_gpio
...
The function of_get_named_gpio() was first added for Linux v3.1 and is
still supported for in the latest mainline kernel. Therefore, always use
of_get_named_gpio() and avoid the unnecessary kernel version check.
Bug 4119327
Change-Id: I95e2458fdf00404bf91aa3e31e33dd2911377f48
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2979476
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-09-19 15:31:25 -07:00
Shardar Mohammed
4be2dd36bb
nvidia-oot: remove module * from class_create()
...
Remove the module pointer from the class_create() based
on following change in core kernel
======
driver core: class: remove module * from class_create()
The module pointer in class_create() never actually did anything, and it
shouldn't have been requred to be set as a parameter even if it did
something. So just remove it and fix up all callers of the function in
the kernel tree at the same time.
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
=====
Bug 4276500
Change-Id: Ifa0a92a282151ce12dc4a48f4f4b5b9499d3fbd8
Signed-off-by: Shardar Mohammed <smohammed@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2976600
Tested-by: Laxman Dewangan <ldewangan@nvidia.com >
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-09-08 18:09:50 -07:00
Sheetal Tigadoli
514af0686d
drivers:nvpps: skip PTP_TSC sync config if disable in DT
...
skip PTP_TSC sync config if disable in DT.
Bug 4044583
Bug 3896607
Change-Id: I5eccb2d2cf14aefbca792c935aeec407716db5ba
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2877072
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-09-05 10:43:37 -07:00
Sheetal Tigadoli
182768fd7b
drivers:nvpps: Add nvpps k5.10 updates to k5.15
...
Add nvpps k5.10 updates to k5.15
Bug 3896607
Change-Id: Id9614ca9329804ae81d3d60e2f8647191208d2b6
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2877070
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-09-05 10:43:26 -07:00
Sheetal Tigadoli
1a3543c91c
drivers:nvpps:print warn msg in GETEVENT ioctl call
...
print ptp not running warning msg from NVPPS_GETEVENT
ioctl call
Existing print msg was coming even before boot completes
and hence was printing always.
Relocate these warn msgs to print once when NVPPS_GETEVENT
ioctl is called
Jira ESDP-20108
Change-Id: I41ea5133e3f7d3525e3529fd09058225661d66bb
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2915293
(cherry picked from commit 1ad9baad22516e8bc83116c8fc9d22b59c000d6a)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2936977
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-07-17 14:48:34 -07:00
Jon Hunter
c6f9d73c58
platform: tegra: nvpps: Move ptp-notifier source
...
Move the ptp-notifier.c source file under the 'nvpps' driver directory
because this is built into the NVPPS driver.
Bug 3918941
Change-Id: I4055422dac4f744f9978196ffcc54c20c666e95c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2851187
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-04-21 11:29:43 -07:00
Jon Hunter
31278e44e4
drivers: Enable MTTCAN and NVPPS for Linux v6.3
...
Building the MTTCAN and NVPPS for Linux v6.3 has been fixed and so
re-enable building these driver for Linux v6.3.
Bug 4014315
Change-Id: I643b0b0013fd42287dfc4e5cebfa0849bf12b146
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2876479
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-03-25 02:52:51 -07:00
Jon Hunter
fee7e399b9
drivers: Disable broken drivers for Linux v6.3
...
Several drivers fail to build with Linux v6.3 due to upstream changes in
the Linux kernel. Disable this drivers until a fix is in place.
Bug 4014315
Change-Id: Iddd2c1e552c92311a982ff91837cef6377a947d6
Signed-off-by: Jon Hunter <jonathanh@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867129
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Rohit Khanna <rokhanna@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-22 03:25:09 -07:00
Manish Bhardwaj
c6c0a19357
nvpps: fix kernel compilation issue
...
fix compilation issue when building mttcan driver
with 6.3-rc1 upstream kernel.
Bug 4014315
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: I196e7348df4adf863b8718667b972d537877256a
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2871356
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Sandeep Trasi <strasi@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-03-21 02:35:06 -07:00
Sheetal Tigadoli
68fd99fc2b
drivers: nvpps: initalize PTP TSC sync logic
...
initalize PTP TSC sync logic
Bug 3700875
Bug 3765552
Bug 3896607
Change-Id: Ic40f71872d2c2087db072c5aab21724ade37d7c4
Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2826921
(cherry picked from commit e738a9a88817a45947046065485b31a5008ca451)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2841961
(cherry picked from commit 9afd10c509f692fec4aa47dc6ead2f127d83028e)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2847682
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com >
2023-01-25 14:54:59 -08:00
Manish Bhardwaj
a2fdb986b0
nvidia-oot: add nvpps and ptp driver
...
Using this patch we are adding support for
ptp and nvpps driver in oot kernel.
JIRA ESLC-6885
Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com >
Change-Id: Id47ac5602d11ce417f9d421b4f672578922ca94f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2785318
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-by: David Tao <tehyut@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2022-10-03 21:31:01 -07:00