Commit Graph

70 Commits

Author SHA1 Message Date
Bitan Biswas
d233093af7 scripts: add kernel checkpatch
Add kernel checkpatch.pl sourced from v5.15
source tree

bug 3730227

Change-Id: I6e98c3a7455523056ca35dce40f6d26a82d074bd
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2752076
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
2022-07-29 00:15:24 -07:00
Shubhi Garg
2f9478c1eb rtc: add VRS10 PSEQ RTC driver
Adding RTC driver support for Nvidia based Voltage Regulator Power
Sequencer. Driver depends on CONFIG_MFD_NVVRS_PSEQ to get enabled which
is a parent driver for RTC. Following are the VRS RTC functionalies:
1. RTC executes alarm function to wake system from suspend/shutdown state.
2. RTC has 32bit time counter register which increments each second.
3. RTC triggers interrupt when the set alarm time becomes equal to the time
read from TIME registers.

Bug 200669555

Change-Id: I7890c084e5a1ec075823fee3ae5171fe7a89c6e0
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2748752
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-29 00:09:21 -07:00
Shubhi Garg
87feab86a2 mfd: return from probe for vrs chip rev < 0x40
VRS Power Sequencer has silicon issues for chip revision < 0x40.
Thus making probe failed and driver will exit if we read revision < 0x40.

Bug 3366934

Change-Id: I8ce7ddc1c6b76e6cced5349798a5d42878605441
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2728938
(cherry picked from commit 67df4ac93fb2f8e6285407a8fdcea186479cbaa1)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2704054
(cherry picked from commit 2e3764ac0dddd3d7d96d29f6a9b49655c16027bc)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2748742
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-28 18:06:11 -07:00
Manikanta Maddireddy
2db1b1e964 PCI: EPF: Use latest MSI accessors and iterator functions
MSI accessors and iterator functions are updated in Linux 5.16 version.
Use these function to fix build error.

Bug 3604749

Change-Id: Ibda5372ee743d5e224d0eef898c4cfc665107367
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2742830
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
2022-07-13 16:40:29 -07:00
Nagarjuna Kristam
750f3ebecd net: ethernet: nvidia: add pcie vnet driver
Add PCIe virtual network driver from Nvidai repo

Bug 3583632

Change-Id: I8449e507978dbbdf0d4a66e53739b532c8df264d
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736263
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-05 14:32:20 -07:00
Nagarjuna Kristam
c18482299d PCI: controller: Add VF driver support
Add tegra PCIe VF driver support from Nvidia repo

Bug 3583632

Change-Id: I323ae5a7aaa20647bfd80404bc354a5a52097cce
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736248
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-05 14:32:15 -07:00
Nagarjuna Kristam
4489bd305a misc: Add pcie dma test client driver
Add PCIe DMA test client driver from Nvidia repo

Bug 3583632

Change-Id: I68393ccc6d8d79ffa8e29b8596d1d5174299a940
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736249
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-05 14:32:11 -07:00
Nagarjuna Kristam
87f4a51862 pci: epf: Add dma test function driver
Add DMA test function driver from Nvidia repro

Bug 3583632

Change-Id: I603d16f74cba2b4752ab31af59b12e7c784f042e
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736247
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-05 14:32:06 -07:00
Nagarjuna Kristam
0d83600487 PCI: tegra194: Add PCIe EDMA and its RP drivers
Add PCI EDMA drivers from nvidia repo.

Bug 3583632

Change-Id: Id54bec8d70424d56d4b91f781568edbfa27c5a82
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2736242
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-05 14:32:02 -07:00
Mikko Perttunen
5b33382ce2 gpu: Add host1x-fence driver
Add driver for implementing an UAPI for conversion between
SYNC_FILE FDs and raw syncpoint ID / value pairs.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: I54e30877f782e3e67ca91e09589d0c4862a257cd
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2729238
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-05 14:30:11 -07:00
Laxman Dewangan
a7fc1600d8 script: Add Makefile rule and library
Make the copy of Makefile.build and Makefile.lib from
kernel to modify them as per OOT DTBs compilation requirements.
This copy is done to avoid any change in the kernel repo.

bug 3680329

Change-Id: I782c6aae67c85b7d5363177014468b3b3744bfbb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2734084
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-06-24 04:36:14 -07:00
Laxman Dewangan
6297198ef4 spi: aurix: get rid of usage of do_exit()
The function do_exit() is exiting from the thread so
it is more appropriate to use the function complete_and_exit().
This function is also chnaged to more appropriate name as
kthread_complete_and_exit() for the K5.17 and beyond.

Use appropriate function name based on the kernel version.

Bug 3604749

Change-Id: I3e72d99a414317b782da2170163519eb2f1cfff3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2730029
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
2022-06-23 18:13:47 -07:00
Laxman Dewangan
6ccce37d83 video/tegra: Build pva as OOT module
Build PVA as OOT module. Add necessary files for PVA module
to copy to the destination folder for build.

Bug 3674466

Change-Id: Id7a327596fcea15ceb4e69f71ac707143b80a70d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2726250
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-06-16 15:54:20 -07:00
Laxman Dewangan
b2a93e8e3b devfreq: Build governor pod scaling as OOT module
Make pod scaling governor as the OOT module.

Bug 3674466

Change-Id: Id99a72f508889d0b9c416ba908f8a2de62c594d1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2726249
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-06-08 21:46:31 -07:00
Laxman Dewangan
a88a06c213 fsicom: Import dma buffer apis with namespace
fsicom driver uses the  dma buffer which were exported
as EXPORT_SYMBOL_GPL() till K5.15. From k5.16, it is exported
with namespace i.e. EXPORT_SYMBOL_NS_GPL(). This change
needs to import namespace in fsicom driver for K5.16 onwards.

Add support for this.

Change-Id: I11a2dbe871c36dd467041866dce51cc0936331c4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2719735
Reviewed-by: Rahul Bedarkar <rabedarkar@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-30 12:50:20 -07:00
Laxman Dewangan
32987b224a nvgpu: Copy source file from kernel/nvgpu to build nvgpu module
Copy the sources of nvgpu module from kernel/nvgpu to
kernel/nvidia-oot to build nvgpu as OOT module.

Files get copied at build time.

Change-Id: I4053685edd5e3f8cec6e16aefb183a13c6210d0e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2718331
GVS: Gerrit_Virtual_Submit
2022-05-28 18:05:29 -07:00
Laxman Dewangan
53115452ad drm: Copy source file from kernel/nvidia to build drm module
Copy the sources of drm module from kernel/nvidia to
kernel/nvidia-oot to build drm as OOT module.

Files get copied at build time.

Bug 3583645

Change-Id: I1f63c834368f178b36e9935a5bd5d8db77d10c60
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2718332
GVS: Gerrit_Virtual_Submit
2022-05-27 15:49:33 -07:00
Laxman Dewangan
bde39f44e5 nvdla: Copy source file from kernel/nvidia to build nvdla module
Copy the sources of nvdla module from kernel/nvidia to
kernel/nvidia-oot to build nvdla as OOT module.

Files get copied at build time.

Bug 3583604

Change-Id: Ieb7169ada0f18e42cdb0883fdef92bba12e161d2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715741
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-25 05:01:51 -07:00
Laxman Dewangan
b2bf35ce6d host1x-nvhost: Copy source file from kernel/nvidia to build host1x-nvhost module
Copy the sources of host1x-nvhost module from kernel/nvidia to
kernel/nvidia-oot to build host1x-nvhost as OOT module.

Files get copied at build time.

Change-Id: I86a8757d9beb3e760fbaef85ccf46974d1bbc303
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715739
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-25 05:01:46 -07:00
Laxman Dewangan
f77fc4cdef host1x: Copy source file from kernel/nvidia to build host1x module
Copy the sources of host1x module from kernel/nvidia to
kernel/nvidia-oot to build host1x as OOT module.

Files get copied at build time.

Change-Id: Iecd491630b8296f1da8f543003b26c2be8f62db5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715738
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-25 05:01:42 -07:00
Laxman Dewangan
5197b374cb cvnas: Copy source file from kernel/nvidia to build cvnas module
Copy the sources of cvnas module from kernel/nvidia to
kernel/nvidia-oot to build cvnas as OOT module.

Files get copied at build time.

Bug 3583599

Change-Id: Ib0e4599872230dfc9fb0dc25c383d3da6ee74ecb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715736
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-25 05:01:38 -07:00
Laxman Dewangan
b193d11dae nvmap: Copy source file from kernel/nvidia to build nvmap module
Copy the sources of nvmap module from kernel/nvidia to
kernel/nvidia-oot to build nvmap as OOT module.

Files get copied at build time.

Bug 3583631

Change-Id: I97668e37d14b2dbfcda97a21b48508d0791f870f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715732
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-24 04:49:56 -07:00
Laxman Dewangan
995c108438 nvsciipc: Add support to build as module with OOT kernel
Add support to build the nvsciipc driver as module with
OOT kernel.

The source file and makefile for building the nvsccipc driver
as module is copied from kernel/nvidia in build time.

Bug 3583631

Change-Id: I70f16496948c69bc8cd4c96155f00d1ed03390e7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2713487
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-20 00:09:04 -07:00
Laxman Dewangan
4edf906c26 nvmap: Add empty Makefiles for enabling nvmap build
Add empty makefile and its path for building nvmap.

The source code and makefile with proper entries are
copied from the kernel/nvidia to out folder during build.

This will help to build the module for OOT from the source
code available in the kernel/nvidia which supports multiple
versions of kernel and avoid duplication of code.

Bug 3583631

Change-Id: I4ded3c1e49fc60e58d205a0b5e646e7bb616d8c8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2712957
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-16 17:47:29 -07:00
Rahul Bedarkar
26a2a22e85 Documentation: Add DT binding for tegra-epl driver
Add DT binding for tegra-epl driver

Bug 3583609

Change-Id: Idcbc693689ce8516d32956655ac23e6c0401168a
Signed-off-by: Rahul Bedarkar <rabedarkar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2710278
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-13 14:56:23 -07:00
Rahul Bedarkar
6f854558c1 drivers/platform/tegra: Add tegra-epl driver
Add tegra-epl driver. It is used to report software detected errors via
HSP mailbox or MISC-EC registers to safety service module running on
the Functional Safety Island (FSI)

Bug 3583609

Change-Id: I5bd3e4bd261d00a353743b01c83ed8df6f00e90a
Signed-off-by: Rahul Bedarkar <rabedarkar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2710277
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-13 14:56:18 -07:00
Laxman Dewangan
a767295929 soc/tegra: fuse: Remove unused function
Remove unused function tegra_fuse_calculate_parity() to avoid
build warning.

Change-Id: Id5a85d3517c5c56564985a1c520f6f51288e6379
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2710217
GVS: Gerrit_Virtual_Submit
2022-05-11 04:22:27 -07:00
Laxman Dewangan
a01851131c tegra/platform: Add driver for firmware class and inventory
Add driver for common utility API for firmware class and
dumping the inventory for all firmware.

Bug 3583607

Change-Id: I259bc7f80b8842cea090f67b067f63e5f85cb79c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2708890
GVS: Gerrit_Virtual_Submit
2022-05-07 15:21:39 -07:00
Laxman Dewangan
66d1a0786d Documentation: Add DT binding doc for Tegra SPI Aurix communciation
Add DT binding document for NVIDIA Tegra SPI Aurix communication.

bug 3583584

Change-Id: I6e9f949add8503b018e58e68347922359e559474
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2708697
GVS: Gerrit_Virtual_Submit
2022-05-07 15:20:48 -07:00
Laxman Dewangan
7772ebe04f spi: Add driver for Tegra SPI Aurix driver
Add SPI Aurix protocol driver which communicates to the Aurix based on
SPI communication.

Currently, the hv_pm_ctrl APIs are implemented as dummy till
virtual HV driver is available.

Bug 3583584

Change-Id: I5b786b566cbf77f5627d518f8c98cb1fdd55dfa8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2708696
GVS: Gerrit_Virtual_Submit
2022-05-07 15:20:44 -07:00
Laxman Dewangan
09f314e429 soc/tegra: fuse-burn: Remove unused function
Remove unused static function to avoid the build
warning.

Change-Id: I4d60420f50903c4a6dc3ba669ac31900f0fab997
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2708668
GVS: Gerrit_Virtual_Submit
2022-05-06 22:28:21 -07:00
Laxman Dewangan
7c00563944 platform/tegra: Add bootloader debug driver
Add bootloader debug driver which provides debug functionality
from user space.

bug 3583607

Change-Id: I8bdd2712e755b370b3e157bcdcd3329122729fea
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2708549
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2022-05-06 05:22:34 -07:00
Rahul Bedarkar
0ae00f25ca Documentation: Add DT binding for tegra-fsicom
Add DT binding for tegra-fsicom driver

Bug 3583609

Change-Id: I748530e2ce4fcbc5e71ac817d8131a1f65297c0c
Signed-off-by: Rahul Bedarkar <rabedarkar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2707055
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-05 15:38:07 -07:00
Rahul Bedarkar
b41ef0cf5e drivers/platform/tegra: add tegra-fsicom driver
Add tegra-fsicom driver. It provides interface to communicate with
Functional Safety Island (FSI).

Bug 3583609

Change-Id: I0cc45de69ca73092e13ee17fec4abd3f9c9e0468
Signed-off-by: Rahul Bedarkar <rabedarkar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2707054
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-05 15:38:03 -07:00
Laxman Dewangan
6e66abaff3 Documentation: Add DT binding doc for Tegra fuse-burn
Add DT binding document for NVIDIA Tegra fuse burn controller.

Bug 3631213

Change-Id: I02b40f4b23d84b81d1fd7e870596a82a4f3fd96f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2707661
Reviewed-by: Kartik . <kkartik@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-05 11:10:01 -07:00
Laxman Dewangan
8319a997d3 soc/tegra: Add Tegra fuse burn driver
Add NVIDIA Tegra fuse burn driver to fusing the
Tegra SOC.

bug 3631213

Change-Id: Ibe474763582e4a34e6151373e7c8fd42e8972ecf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2707660
Reviewed-by: Kartik . <kkartik@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-05 11:09:56 -07:00
Laxman Dewangan
cd924ab2b2 Documentation: Add DT binding doc for Tegra i2c-slave
Add DT binding document for NVIDIA Tegra I2C slave controller.

Bug 3631219

Change-Id: Iec8f9f9cd6ce7ab443f2751bb141e03ed9b448ba
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705959
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-05-02 23:17:00 -07:00
Laxman Dewangan
d7cfbd7ad1 i2c: busses: Add I2C tegra slave driver in byte mode
Add I2C slave driver for NVIDIA Tegra which works
in byte mode of data transfer i.e. rx/tx interrupts
per byte.

Bug 3631219

Change-Id: Ic40b868a3d195495550148a89d41f9d5d799d7ac
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705958
GVS: Gerrit_Virtual_Submit
2022-05-02 23:16:55 -07:00
Laxman Dewangan
e37c28218e platform/tegra: Add common central actmon implementation
Add central actmon common functionality for actomon
driver implementation instead of dummy implementation.

Bug 3583573

Change-Id: Iff1512e62fc01431899515c78717d5afdae8d910
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705646
GVS: Gerrit_Virtual_Submit
2022-05-01 12:43:29 -07:00
Laxman Dewangan
2bf79d8c1a documentation: Add DT binding document for Tegra KFuse
Add Device Tree binding document for the Tegra KFuse

Bug 3625675

Change-Id: I8bc4fd3b1353d4ae8ca253e9aeed9d0116d8af93
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705642
GVS: Gerrit_Virtual_Submit
2022-05-01 12:43:25 -07:00
Laxman Dewangan
1c042c10b4 soc/tegra: Add Kfuse driver
Add kfuse driver. The kfuse block stores downstream
and upstream HDCP keys for use by the HDMI module.

Bug 3625675

Change-Id: Ie4b23c161035439266ec7dda54b61e84799a6d5a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705641
GVS: Gerrit_Virtual_Submit
2022-05-01 12:43:20 -07:00
Laxman Dewangan
6d96357ebe documentation: Add DT binding document for ARM64 RAS
Add Device Tree binding document for the ARM64 RAS.

Bug 3625675

Change-Id: If992f72a67e6269ae8e9b63863cf485c05cecff4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705398
GVS: Gerrit_Virtual_Submit
2022-05-01 09:26:46 -07:00
Laxman Dewangan
857718b2ad documentation: Add DT binding document for central activity monitor
Add Device Tree binding document for the NVIDIA Tegra central
activity monitor device.

Bug 3625675

Change-Id: I85dc848b561802dd749f59c0a57654264f83f082
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705397
GVS: Gerrit_Virtual_Submit
2022-05-01 09:26:41 -07:00
Laxman Dewangan
3637fb99cb arm64: Add RAS driver for ARM64-RAS
RAS are three aspects of the dependability of a system:
   Reliability: continuity of correct service
   Availability: readiness for correct service
   Serviceability: ability to undergo modifications and repairs

ARMv8.2 provides RAS extensions to achieve the above features in a system.

arm64_ras driver allows you to handle Correctable errors using per core
Fault Handling Interrupt (or FHI). Un-correactable errors are handled by
raising SError exception to kernel or Trusted Firmware(EL3) on CCLEX.

The driver provides an API for CPU specific RAS drivers to
register callbacks in case of FHI. When FHI occurs, the FHI
ISR goes through the list of registered callbacks and executes
them. Similarly, the driver allows registering SError callbacks
for Un-correctable errors within Core, Core-Cluster & CCPLEX.
When SError is reported, then those callbacks are scanned to
find and report error in a Core, Cluster or CCPLEX

Bug 3625675

Change-Id: I6dba7178fa7bbcf55bfa083be1b077874f4865c9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705396
GVS: Gerrit_Virtual_Submit
2022-05-01 09:26:37 -07:00
Laxman Dewangan
527743a5c3 platform/tegra: Add Tegra Central Activity Monitor driver
Actmon is a hardware block that can be used to track the activity of
certain hardware units. It can boost EMC clock depending
on the memory traffic among various client. It is called central actmon
as it monitors central activity for example MC activity.

Add central activity monitor driver.

Bug 3625675

Change-Id: I1a5918e7d84bc247f694f53f965c28888b773c91
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705395
GVS: Gerrit_Virtual_Submit
2022-05-01 09:26:33 -07:00
Laxman Dewangan
d75309658f platform/tegra: Add bad driver for memory access check
Add bad driver which check the memory access more than
allocated size.

Bug 3625675

Change-Id: Iad248a00f3c0f6b71ea060a9e5475123cd893bc2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705394
GVS: Gerrit_Virtual_Submit
2022-05-01 09:26:28 -07:00
Laxman Dewangan
7435d5749a documentation: Add DT binding document for Tegra234 pinmux controller
Add Device Tree binding document for the NVIDIA Tegra234 pinmux controller.

Bug 3621816

Change-Id: Ide78ac3bccbce341afe1e648d901e4f0ffb27bdf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2704710
GVS: Gerrit_Virtual_Submit
2022-04-30 06:18:11 -07:00
Laxman Dewangan
c2bf51b5fe documentation: Add DT binding document for Tegra PEX pad controller
Add Device Tree binding document for the NVIDIA Tegra PEX pad
controller.

Bug 3621816

Change-Id: I6df186f88c5ea48242472a2c30288d9d0942e679
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2704360
GVS: Gerrit_Virtual_Submit
2022-04-30 06:18:06 -07:00
Laxman Dewangan
8fdd97797e pinctrl: Add pinctrl drivers for Nvidia Tegra234
Add pinctrl driver for NVIDIA Tegra234 for providing the
pin mux functionality of SoC pins.

Bug 3621816

Change-Id: Ibc1c334ee21c26f1ef57c7e626f8e16cb5833e53
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2704712
GVS: Gerrit_Virtual_Submit
2022-04-30 06:18:02 -07:00
Laxman Dewangan
4a80517c10 pinctrl: Add drivers internal headers as driver-privates
Pinctrl drivers have few headers which are in driver folders
and it has declaration of exported APIs which are needed for
developing the device specific pinctrl driver.

Add such drivers in driver-private in out-of-tree includes
so that out-of-tree module can be developed.

bug 3621816

Change-Id: Iaf596873cd96a4af0ee551dc7b749c4bb758a86e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2704711
GVS: Gerrit_Virtual_Submit
2022-04-30 06:17:58 -07:00