summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings
Commit message (Collapse)AuthorAge
* dt-bindings: PCI: tegra: Add slot supplies enable entry for EP modeVidya Sagar2021-07-09
| | | | | | | | | | | | | | | | Add optional binding "nvidia,enable-slot-supplies" to instruct the platform driver to enable the slot supplies even if the controller is operating in the endpoint mode. Bug 200614753 Change-Id: I5162c414a8bc81c1b76a3f8dfc956e9bef0de951 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2555250 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* dt-bindings: PCI: tegra: Add SRNS configuration entryVidya Sagar2021-07-09
| | | | | | | | | | | | | | | | Add optional binding "nvidia,enable-srns" to describe a controller's configuration in a platform that implements SRNS (Separate Reference clocks with No Spread-spectrum clocking) scheme. Bug 200614753 Change-Id: Icd10672c7a67b297d61d1b319505e7259f9f29a1 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2555161 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* eqos: use phy reset low power mode from DTSushil Singh2021-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: Some ethernet PHY consume low power only when they are put in reset mode otherwise power consumption is high. Fix: Add DT flag which can be set for the PHYs which consume low power when they are in reset. Driver puts those phy chip to reset mode for low power consumption state if the corresponding dt flag is set, else use supported low power mode operation for the selected phy. Default operation is to use phy reset mode for low power consumption. Bug 200627703 Change-Id: If86c37b43c8f737c332c46188ab2e91ae9c72343 Signed-off-by: Sushil Singh <sushilkumars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2447746 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Nagaraj Annaiah <nannaiah@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Aaron Tian <atian@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* pwm: fan: Add support for always on fanMantravadi Karthik2020-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | Why? In case of continuous governor, the fan-poweron pwm value is assumed to be at index 1 of pwm values. In case of tmargin the pwm table would be reversed (high to low) and hence the assumption is invalid. How? While calculating the pwm value in the case of continuous governor, add a check if the cooling device is always on fan. If true, for all values of temp, pwm should be calculated instead of assigning 0. Bug 200646929 Change-Id: Ibed572fa2af9f8bd36a4a4cbb472029e21aeb442 Signed-off-by: Mantravadi Karthik <mkarthik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2448826 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* thermal: pwm-fan: Add support for tmarginMantravadi Karthik2020-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | Why? Tmargin feature uses reverse pwm mapping in DT. The current rru/rrd calculation logic assumes that the pwm table is in ascending order. In the case of tmargin, the pwm table is given in descending order. How? pwm fan dt node should have a "use_tmargin" identifier similar to therm_fan_est dt node. This dt entry switches the logic in rru/rrd calculation Bug 200646929 Change-Id: I2042aaff5347553202212c6b69f707511bb9b7dd Signed-off-by: Mantravadi Karthik <mkarthik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2460881 Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* therm-fan-est: Add support for Tmargin to drive fanmkarthik2020-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why? Tmargin method of fan control allows multiple groups of therma-fan-est devices temperatures to be considered for the fan control algorithm/fan curve. The limitation of the existing max temp algorithm in therm-fan-est driver is that devices with different fan curves cannot be accomodated in the driver. In case, there are multple fan curves, the device which has the steepest curve wins the algoritm. Hence, taking the temperatures as a reference from their respective critical temperatures and using that value to drive the fan will help in accomodating both the devices' fan curves. How? * Calculate the effective crit temp of all the thermal zones during probe. * In the polling cycles, calculate the effective temperatures of the individual groups and use the tmargin formula to calculate the current temperature. * Since the Tmargin temp trip values are in reverse order, we need to use the reverse order in the pwm-fan dt profile. * The hysterysis is subtracted from the temp in cooling scenario to avoid frequent switching at trip temps. Since the tmargin trip values are taken in the decending order, hysterysis temps in dt should be given as negative values. Bug 200627962 Change-Id: Ideba4bfdb3d3306d1b4aff15093bcfac13d7bb86 Signed-off-by: Mantravadi Karthik <mkarthik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2362354 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* thermal: pwm-fan: Add tach feedback supportmkarthik2020-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Why? The current implementation of the pwm-fan driver only writes a pwm value to the HW when requested. There is no tachometer rpm read back to check if the thermal performance is as expected. This change aims to add the rpm offsets necessary to maintain the desired fan rpm. How? A new work queue is added which gets the pwm fan rpm and checks the same for a rpm diff tolerance value. In case the tolerance value is exceeded, the next pwm corresponding to the next rpm ramp index is written to the pwm controller. Bug 200646929 Change-Id: Iff780a7edf98ca457ace10079149925adf06189d Signed-off-by: Mantravadi Karthik <mkarthik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2369412 Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Sandipan Patra <spatra@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* thermal: fix cpu throttling for floorswept partsSrikar Srimath Tirumala2020-08-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make CPU throttling use cpufreq policy instead of querying the CCF. As CPU clocks are not supported by CCF on T194, querying max and min CPU frequencies from CCF is not guaranteed to work. Secondly, clocks for floorswept CPUs are not available and this results in a pesky warning about failing to get a clock. While it is not required to get all the CPU clocks for throttling to work, the first reason requires a change. Fix this by using the values stored in the policy struct instead. Also defer the registration of the cooling devices if cpufreq has not already been registered. Update the binding doc to reflect this change and clarify per CPU throttling is not supported. Bug 2928679 Change-Id: I71c5c9b58e1f01550cbe088a5222b593114bcc54 Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com> (cherry picked from commit c6ebee8c2f723277b0966657867c9bb2104a7acb) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2393741 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* eqos: put tegra pads to tristate at cable unplugSushil Singh2020-07-03
| | | | | | | | | | | | | | | | | | | | | | Issue: Power consumption was high even after LAN cable unplug. The tegra padctl registers was not put to tristate(tx/rx both) after cable unplug event Fix: Put tegra pads to tristate state for cable unplug event at PHY layer. Bug 200536930 Change-Id: I80d1ec57f1f7aafedc431e06336a1942f2c52ed9 Signed-off-by: Sushil Singh <sushilkumars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2306241 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ashutosh Jha <ajha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* dt-bindings: carmel PMU: add supported events, examplesRich Wiley2020-02-28
| | | | | | | | | | | | | | | | Bug 200498583 Change-Id: Ic6e67f2af290a3a5c3e9ecbc1ba1f5ec6cfda168 Signed-off-by: Rich Wiley <rwiley@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2260342 Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> (cherry picked from commit fb0c6d815db7a880fa9265086e9aaf8959c6d376) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2301930 Tested-by: Sumit Gupta <sumitg@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com>
* Documentation: devicetree: tegra_gte: Add DT binding detailsDipen Patel2020-02-24
| | | | | | | | | | | | | | | Adds text file detailing GTE kernel driver Bug 2757864 Change-Id: I9a28933cf7c08b10c5b92bf5b30789aff2fc5d12 Signed-off-by: Dipen Patel <dipenp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2287748 Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
* watchdog: tegra: bring wdt timeout to 1 secShubhi Garg2019-12-18
| | | | | | | | | | | | | | | | | | With the current watchdog driver implementation, minimum timeout can be set to 3 secs while we can provide till 1 sec in timeout-sec dt property. This change will bring down timeout to minimum 1 sec irrespective of number of expiry levels. Bug 200576640 Change-Id: I1cc795b4c27fb3b3a8b02d368e6501b98c640f0f Signed-off-by: Shubhi Garg <shgarg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2261784 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* dt-bindings: carmel PMU: add Carmel uncore PMU driver docsRich Wiley2019-11-29
| | | | | | | | | | | | | | | bug 2622963 Change-Id: I436a86d887bcc570acb36b8536d3f42a232423a7 Signed-off-by: Rich Wiley <rwiley@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2248223 Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> (cherry picked from commit c7c18a5d72142e78264ab36b19d218ccbdde791e) Reviewed-on: https://git-master.nvidia.com/r/2251016 Tested-by: Sumit Gupta <sumitg@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com>
* dt: bindings: Add documentation for pwm-fanSandipan patra2019-11-18
| | | | | | | | | | | | | | | | Device tree properties used in pwm-fan is Documented in Documentation/devicetree/bindings to understand how are the properties used in driver. Bug 200563459 Change-Id: I08bd23fc6c19410924c7007c2cc2a6542c0f5499 Signed-off-by: Sandipan patra <spatra@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2239766 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Tested-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* drivers:wdt: Add driver to handle guest WDT expiryHardik Tushar Shah2019-09-04
| | | | | | | | | | | | | | | | | | | | | | | This driver handles notification from watchdog server monitor for any of the guest WDT expiry. It propagates notification to the user through character driver user interface. Application can take appropriate action on the notification and update the driver on the action. Since this driver is running on privilege guest, it doesn't handle WDT expiry of the privilege guest. WDT expiry of the privilege guest needs to be handled outside Tegra. Bug 2565917 Change-Id: Ie32fc8aeaf0e723b3616f5efbd6bdb272aed5c62 Signed-off-by: Hardik Tushar Shah <hardikts@nvidia.com> (cherry picked from commit 3c6681b534068ce3d2d51c587927e68ba6678b48) Reviewed-on: https://git-master.nvidia.com/r/2146288 Reviewed-on: https://git-master.nvidia.com/r/2142725 GVS: Gerrit_Virtual_Submit Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* pinctrl: update DT binding doc for DPAUXVishwaroop2019-02-12
| | | | | | | | | | | | | | | | | | | | | | | Updated DT binding doc for dpaux pincontrol with t194 properties and removed the pinctrl nodes as dependency of nvhost has been removed from the driver. Bug 200447013 Change-Id: Iea6dbf11fd3884dbd0683c7fc442589b6ad7d2dd Signed-off-by: Vishwaroop <va@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1828064 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Yong Goo Yi <yyi@nvidia.com> Reviewed-by: Kwangwoo Lee <kwangwool@nvidia.com> Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: Timo Alho <talho@nvidia.com> (cherry picked from commit ea8d105abf4f75c7fadacb70c4de8b2ee447497a) Reviewed-on: https://git-master.nvidia.com/r/2016970 GVS: Gerrit_Virtual_Submit Tested-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Enable endpoint mode supportVidya Sagar2018-12-12
| | | | | | | | | | | | | | | | | | Enables endpoint mode support adhering to K-4.14 endpoint mode framework Bug 2312059 Change-Id: I7869de4cb2bc27a901203d25dc82868717d3ef16 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1811201 (cherry picked from commit 8a5c307a9ac051e0f5a1f311e3cd0a8686f03473 in dev-kernel) Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1967123 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: use upstream name for num-lanesVidya Sagar2018-09-22
| | | | | | | | | | | | | | | | replaces "nvidia,num-lanes" with "num-lanes" to be in line with upstream implementation Bug 2312059 Change-Id: I810b35f78af86e02e06a5215781d4ac1b2278832 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1834791 GVS: Gerrit_Virtual_Submit Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra_hv_pm_ctl: Add documentation for wait-for-guestsSang-Hun Lee2018-09-20
| | | | | | | | | | | | JIRA STR-575 Change-Id: If0afeb056fcc759b15468706f1d62f42641daf25 Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1831527 Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Enable safety config based on DTVidya Sagar2018-09-19
| | | | | | | | | | | | | | | | | Enables configuration of monitor clocks based on 'nvidia,enable-fmon' entry in device tree Bug 200407108 Change-Id: Ib65d5369f8b26a00545f7fed2057cce1befc2b1f Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1820046 Reviewed-by: Shaibal Ghosh <shaibalg@nvidia.com> Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* Documentation: ufs: enable scramble bitSri Sai Ram Tangirala2018-09-18
| | | | | | | | | | | | | | | | Add details for the dt property 'nvidia,enable-scramble' which enables the scrambling functionality for ufs. Bug 200385100 Change-Id: I4eb43fbb1e294d083d3ec20d0f442f2723ea8fe7 Signed-off-by: Sri Sai Ram Tangirala <stangirala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1739116 Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* dt-bindings: eqos: update EQOS DT bindingsBhadram Varka2018-09-11
| | | | | | | | | | | | | Bug 200432954 Change-Id: I848ce0e1462433bb2d487bdae14d64b0f48361e1 Signed-off-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1808851 Reviewed-by: Narayan Reddy <narayanr@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: eqos: update EQOS DT bindingsPoojan Shah2018-08-28
| | | | | | | | | | | | | | | | | | Add binding for nvidia,rx_riwt property. This property is used to define the number of usec to wait before triggering an Rx interrupt. The field is used to program the RIWT field in the ethernet controller. ESQC-3325 Change-Id: If076125f26d18fb36361fd3fb11b299df7bcaa7b Signed-off-by: Poojan Shah <poojans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1807684 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Disable DMA test code by defaultVidya Sagar2018-07-20
| | | | | | | | | | | | | | | | | | Moves root port integrated DMA test code under a separate config option and the option is disabled by default Bug 200411612 Change-Id: I11eb3287e64adc2d94b67075dfc764f9879a5dd9 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1730762 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* thermal: throttle: fix for floorswept platformsSrikar Srimath Tirumala2018-07-05
| | | | | | | | | | | | | | | | | | | | | | | Pass the clock handles for all the CPU clusters instead of just the one cluster from DT. The NAFLLL CLUSTER clock id refers to the physical cluster and is not guaranteed to be present on floorswept configurations. Add logic to look for the appropriate clock handle from a list of clock handles and fail the driver registration if a missing clock is referenced in the cooling device. Bug 2224577 Change-Id: I36a7d308eaa573c6b99390e3fbf36a3828377494 Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1764644 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* pci: tegra: Add support to configure platform gpioVidya Sagar2018-06-29
| | | | | | | | | | | | | | Adds support to configure platform specific gpios of types active high and active low before going for enumeration of devices Bug 200419352 Change-Id: I9925dc9cbda52c6b12b3809c020f5cd56fa555ee Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1758238 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* crypto: Add tegra SE device tree documentationRakesh Babu Bodla2018-06-29
| | | | | | | | | | | Adding the device tree documentation for tegra-se, tegra-se-elp, tegra-se-nvhost. Change-Id: I8a51b2fd86997cad40396ae36c0f0a3ec40732b9 Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1765468 Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
* tegra: tegra: add support for CV NOC errorsSumit Gupta2018-06-26
| | | | | | | | | | | | | | | | | | | adding support to handle errors from CV NOC. Enabling clock and using PROBE_DEFER for NOC's which are not probed yet e.g: CV-NOC here as it depends on cvnas driver which gets probed later. Bug 200340783 Bug 200389874 Change-Id: I2608aff0956a67f15426773c6ae0d471e5f645eb Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1678123 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: cpufreq: add tegra cpufreq dt nodePuneet Saxena2018-06-21
| | | | | | | | | | | | Bug 200234807 Change-Id: I7ca1f2cc5141b0bdeb5eac35a56a7723f377c8c4 Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/1228156 (cherry picked from commit c0a737ca7a3ece2559eefc59371ffa6323d7ae93) Reviewed-on: https://git-master.nvidia.com/r/1527971 Reviewed-on: https://git-master.nvidia.com/r/1754143 Reviewed-by: Timo Alho <talho@nvidia.com>
* video: tegra: dc: remove SD driversMitch Luban2018-06-14
| | | | | | | | | | | | | | | | | | Smartdimmer was a feature to allow for backlight reduction with minimal degredation in image quality. It's since been deprecated. Removing the dead code for improved code coverage analysis. TDS-3581 Change-Id: I4ee30e67b097a932389e8ba0df9b50a174fccdd3 Signed-off-by: Mitch Luban <mluban@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1579437 Reviewed-by: Prafull Suryawanshi <prafulls@nvidia.com> Tested-by: Prafull Suryawanshi <prafulls@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Santosh Galma <galmar@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* tegra: t19x: correct compatible string for NOC'sSumit Gupta2018-05-30
| | | | | | | | | | | | | | | | | | Correcting compatible string name from bridge to NOC. Also, adding is_ax2apb_bridge_connected flag to check if the cluster is connected to CBB through any AXI2APB bridge. Currently, AON cluster is only one which is not connected. So, no need to read AXI2APB bridge registers for that NOC. Bug 200340783 Change-Id: Iea89b6a3daff1dd30b6d43a9e8254ed362a841d0 Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1686705 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* dt-bindings: misc: add binding doc for nct1008Srikar Srimath Tirumala2018-05-18
| | | | | | | | | | Bug 200278110 Change-Id: Ibde2659af4f35a6f4ad5cb4acd13150f87054b37 Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1681187 Reviewed-by: Sreenivasulu Velpula <svelpula@nvidia.com> Reviewed-by: Hoang Pham <hopham@nvidia.com>
* PCI: tegra: Add support to limit link init speedVidya Sagar2018-05-17
| | | | | | | | | | | | | | | | | Adds support to limit link init speed based on value of DT entry 'nvidia,init-speed' Bug 2117302 Change-Id: I182fb8f48516e842da0e4a6d242ee43e37ee0d7b Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1716118 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* virt: tegra: Add tegra_hv_pm_ctl driverJinyoung Park2018-05-04
| | | | | | | | | | | | | | | | | | | | | Added Nvidia Tegra hypervisor PM control to handle power state transition commands over IVC channel. Supported system shutdown/reboot initiation via sysfs. Updated hyp_guest_reset hvc call interface. STR-293 STR-294 STR-364 Jira VFND-4029 Jira HYP-77 Change-Id: I60274121de27495e5ae11ba34b02b65350496a9b Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528042 GVS: Gerrit_Virtual_Submit Reviewed-by: Abhijit . <abhijit@nvidia.com> Tested-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
* platform: tegra: add new thermal throttling driverSrikar Srimath Tirumala2018-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a new throttling driver that can support one or more cooling devices which can throttle one or more clocks. Parse the DT to read the clocks that need to be throttled and calculate the throttling frequency by doing a linear interapolation between the min and max clock rates. Add initial support to throttle the CPUs using cpufreq and GPU using pmqos. Allow the slope and offset of the throttling curve to be tunable via DT properties. Bug 2022953 Change-Id: I744e1e4f65bcf12363e3f9a97cd4aebbf2c6e86a Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1699802 GVS: Gerrit_Virtual_Submit Reviewed-by: Navneet Kumar <navneetk@nvidia.com> Reviewed-by: Bo Yan <byan@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* drivers:input: Add timed gpio keys driverKary Jin2018-04-17
| | | | | | | | | | | | | | | | | | | | | Create gpio_timed_keys driver that detects timed key presses and allows input devices to send different key codes based on the amount of time the key was pressed. This patch is heavily based on https://git-master.nvidia.com/r/821630 Bug 200401975 Change-Id: I8e2f4e97d3e7b20de983965000c9670db74d9e86 Signed-off-by: Kary Jin <karyj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1695863 Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Add support to disable ASPM L1-CPMVidya Sagar2018-03-19
| | | | | | | | | | | | | Adds support to disable ASPM L1-CPM based on device-tree flag Bug 200392187 Change-Id: I0c76f42f8ba2e19182f0f0d088ec9c6f04c0b47e Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1675181 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* Merge "Merge remote-tracking branch 'origin/dev/vzhurba_20180302' into ↵Gerrit Code Review2018-03-10
|\ | | | | | | dev-kernel" into dev-kernel
| * leds: add reset functionalityVinayak Pane2018-03-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding reset functionality via debugfs in LED driver. - Add devicetree documentation. Bug 1569351 Change-Id: I149e9221dbffd63bf5a2ad9558963cacb56f10fc Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/663445 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit (cherry picked from commit ad4dd29030e12df2feb69a4839718042be541862) Reviewed-on: http://git-master/r/717076 Reviewed-by: Mitch Luban <mluban@nvidia.com>
* | tegra: t19x: support for AXI2APB slave error causeSumit Gupta2018-03-07
|/ | | | | | | | | | | | | | | | | adding support to get error cause for APB slaves as their errors are logged in error loggers but implemented in APB domain. Bug 200340783 Change-Id: Ic09028838cf15c472dc41e1c0b6704caec01b901 Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1645853 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Rohit Khanna <rokhanna@nvidia.com> Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Add support for DT based DMA operationVidya Sagar2018-03-01
| | | | | | | | | | | | | | | | Adds support to enable device tree flag based enable/disable of DMA functionality Bug 2034076 Change-Id: I2b31e43a2cacd3c64fafbf8f32c89e49a738f43b Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1641520 Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: EP: Add support to dump aspm state countVidya Sagar2018-02-24
| | | | | | | | | | | | | | Adds support to dump link entry count into different aspm states using ras-des registers for debugging purpose Bug 200387666 Change-Id: Icc8a8c783d8245a3aa0ab1b06eadee9a0389597d Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1660648 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: EP: Add documentation for nvidia,modsVidya Sagar2018-02-07
| | | | | | | | | | | | | | | | | Adds documentation for pcie end point node property 'nvidia,mods' which is required for MODs configuration Bug 200384401 Change-Id: I18a2a16db798232f2dfe98f3a9274cb75dab5a64 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1651766 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Add dma poll supportManikanta Maddireddy2018-01-31
| | | | | | | | | | | | | | | | Add polling support for DMA completion for perf measurement. bug 200373140 Change-Id: If4a9232aad417e18f4bd46e728221038ace4d473 Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1647927 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Vidya Sagar <vidyas@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: program TSA prod value for C5 ctrlVidya Sagar2018-01-27
| | | | | | | | | | | | programs hub specific TSA prod value for controller-5 Bug 200379391 Change-Id: I14ddb3515772b20e9fd175744142c4b49b3613e7 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1645989 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: EP: Add PCIe lane margin debugfsManikanta Maddireddy2018-01-24
| | | | | | | | | | | | | | PCIe lane margin commands can be issued through PCIe config space. PCIe spec 4.0r0.9, table 4-194-20 listed all configurations details. Add PCIe lane margin test support via debugfs. bug 200366472 Change-Id: I0ca64a63437ed1377fb5501a5a7c59a4a7219cd8 Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1643038 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Add PCIe lane margin debugfsManikanta Maddireddy2018-01-24
| | | | | | | | | | | | | | PCIe lane margin commands can be issued through PCIe config space. PCIe spec 4.0r0.9, table 4-194-20 listed all configurations details. Add PCIe lane margin test support via debugfs. bug 200366472 Change-Id: Idf7ba1d382aa268712bda1557d7b5b93f807342a Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1643037 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Add PCIe wake supportManikanta Maddireddy2018-01-23
| | | | | | | | | | | | | | PEX_WAKE signal is defined in PCIe spec for wake support. Same gpio is shared by all PCIe controllers for wake. Configure PEX_WAKE gpio to provide wake support. bug 200377151 Change-Id: I04e39b3d0e4e11a01e53e4bf3e3dbd32fd7069f3 Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1643109 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: support to enable/disable controllersVidya Sagar2018-01-19
| | | | | | | | | | | | | | Adds support to enable/disable respective PCIe controllers in pcie_common module through BPMP-FW interface to allow PLL power down bug 200376734 Change-Id: I3bd430272620a62dc532d03b625e8a4178aec691 Signed-off-by: Vidya Sagar <vidyas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1641174 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
* PCI: tegra: Disable DL_FEATURE_EXCHANGE if link up fails in DLLManikanta Maddireddy2018-01-12
| | | | | | | | | | | | | | | Few legacy endpoints are not sending InitFCs when DLFE is enabled. This is causing link up failure in DLL. To address this issue check link status at physical layer and retry link up with DLFE disabled. bug 200375428 Change-Id: I08d996ce53df17bd3c060a960c77b0fd951008e4 Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1634721 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>