5 years agoARM: tegra12: tn8:enable DSIC/D DPD mode
Terry Wang [Fri, 10 Jan 2014 08:54:22 +0000]
ARM: tegra12: tn8:enable DSIC/D DPD mode

Enable DSIC/D DPD mode for p1761/e1784.

Bug 1425612

Change-Id: I054fc7a6363b69fe46d595a16027d7a3ae359028
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/353202
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agothermal: tmp006: fail probe if device not present
Preetham Chandru R [Fri, 27 Dec 2013 13:23:27 +0000]
thermal: tmp006: fail probe if device not present

Fail probe if device is not present

Bug 1397494

Change-Id: If7609423db3e72d01315480709da923786969d4a
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/350182
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: move power mon i2c-mux device registration to DT
Laxman Dewangan [Fri, 10 Jan 2014 14:01:44 +0000]
ARM: tegra: move power mon i2c-mux device registration to DT

Move power monitor i2x mux device registration to DT and remove
the board-file registration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: Ia6790690934be8ec87082e0853ce30398f68adce
Reviewed-on: http://git-master/r/354257
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoi2c: pca954x: Use devm_* managed allocator
Laxman Dewangan [Wed, 15 Jan 2014 14:22:31 +0000]
i2c: pca954x: Use devm_* managed allocator

This simplifies error and removal paths.

Change-Id: Ie39b6afaf6517b20ba7ea838dd43cbc141cce477
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/356051

5 years agoi2c: mux: pca954x: make pullup regulator optional
Laxman Dewangan [Wed, 15 Jan 2014 14:08:46 +0000]
i2c: mux: pca954x: make pullup regulator optional

The PCA954X driver require two supply, one for self as vcc and
other for output bus pullup as vcc-pullup.

Making vcc-pullup as optional as this is not mandatory regulator
for device and if it is not available then just do not enable it
and not cause to driver fail.

Change-Id: I1c63a13d01ac609af0a74934742daca7e68b4d00
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/356050
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

5 years agonet: wireless: bcmdhd: reduce wakelock timeout to 500ms
Om Prakash Singh [Wed, 15 Jan 2014 09:17:36 +0000]
net: wireless: bcmdhd: reduce wakelock timeout to 500ms

Bug 1392718

Change-Id: Ia369a73fb4e834f46003e318fe2c413e57200b61
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/350034
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: tegra: tn8-ffd: update TSkin coefficients
Robert Shih [Tue, 14 Jan 2014 05:38:59 +0000]
arm: tegra: tn8-ffd: update TSkin coefficients

Update the coefficients of Tboard and Tdiode thermal zone
for simulating skin temperature.

The coefficients are calibrated and given by thermal team.

bug 1429335
bug 1439470

Change-Id: I2e721b43ce3efafd8e805cb5f06016c3aa152312
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/355368
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: host: remove pm_runtime_put in deinit
Bryan Wu [Fri, 3 Jan 2014 18:42:53 +0000]
video: host: remove pm_runtime_put in deinit

commit 813e42b9ba004632970153d645107d060018b79c add a WARN_ON for
unbalanced PM usage_cnt operation. When removing nvhost_vi module
from kernel, warning pops up.

nvhost_module_init() forgets to call pm_runtime_get() while
nvhost_module_deinit() calls pm_runtime_put(). So adding back
pm_runtime_get() will cause host1x suspend failure, just removing
pm_runtime_put() solve this issue.

Bug 1421146
Bug 1434667

Change-Id: Ia2a4002955d4e2e7a74aae2c4ee8c8d88ac71790
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/351832
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: t124: tn8 increase GPU EDP 11.2A
Diwakar Tundlam [Fri, 10 Jan 2014 22:57:38 +0000]
arm: tegra: t124: tn8 increase GPU EDP 11.2A

There was an update on the EDP(p) current capability on TI PMIC TPS65913.
SMPS45 powering GPU can handle EDP(p) of 5.6A per phase.
The total current for two phases is 5.6 * 2 = 11.2A (6us spec).
Continuous limit does not change.

Bug 1441057

Change-Id: I1e8d3653a08d51b096b1fef581fb920b07ae42c0
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/354439

5 years agoARM: dts: tegra: move mipical into tegra124-soc
Peng Du [Mon, 13 Jan 2014 18:36:27 +0000]
ARM: dts: tegra: move mipical into tegra124-soc

Change-Id: I76bdff73620cffc1993fa4a3eb0a11a0f4ebebc5
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/355152
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: dts: tegra: move xusb node into tegra124-soc
Peng Du [Mon, 13 Jan 2014 18:34:57 +0000]
ARM: dts: tegra: move xusb node into tegra124-soc

Change-Id: If701bcf654290c8cf3019e0a927c72094f0ed0cd
Signed-off-by: Peng Du <pdu@nvidia.com>
Reviewed-on: http://git-master/r/355151
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra: dts: Move host nodes to tegra124-soc
Alex Van Brunt [Fri, 6 Dec 2013 18:31:38 +0000]
arm: tegra: dts: Move host nodes to tegra124-soc

The host engines are part of the SoC. So, move the DT nodes to
tegra124-soc.dtsi. This allows the SoC DT nodes to be shared by other chips.

Change-Id: I2bc27a727007712db6607143a8c40b638a4839be
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/355150
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peng Du <pdu@nvidia.com>
Tested-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: Do not dump channel if error
Terje Bergstrom [Fri, 10 Jan 2014 13:13:56 +0000]
video: tegra: host: Do not dump channel if error

Do not dump channel state if the channel could not be initialized.

Bug 1433954

Change-Id: I37c2c071e2e85419d8e36290479b1f3991ea534d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/354289
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm: tegra: loki: put DSIC/D to DPD for all panels
Aly Hirani [Thu, 2 Jan 2014 19:39:02 +0000]
arm: tegra: loki: put DSIC/D to DPD for all panels

Put the DSIC/D into DPD mode for all the panels to save power

Bug 1416110

Change-Id: I79bc946c221261812a54a342c6c29b6928c5ae4d
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/351457
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoASoC: tegra-alt: support mono and audio bits.
Songhee Baek [Wed, 20 Nov 2013 09:26:21 +0000]
ASoC: tegra-alt: support mono and audio bits.

This change is for supporting 8/16/24/32 bits audio and
mono playback.

Bug 1411049

Change-Id: Ia42debdd8d9483804979f3ca072228172351501c
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/333334
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoASoC: Add Asahi Kasei AK4618 codec driver
Songhee Baek [Tue, 17 Dec 2013 07:43:26 +0000]
ASoC: Add Asahi Kasei AK4618 codec driver

This driver is for AK4618 codec, it supports TDM format/I2S format.

Change-Id: I04e5e34c3828b17c94f30f06d0bbf759b9f039bb
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/346352
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoARM: configs: tegra: Enable CONFIG_PALMAS_THERMAL
Jinyoung Park [Thu, 21 Nov 2013 09:06:02 +0000]
ARM: configs: tegra: Enable CONFIG_PALMAS_THERMAL

Enable CONFIG_PALMAS_THERMAL.

Change-Id: Ic1fdd9e1a003f44ff7ea24b9b497f577ba9d8e74
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/333931
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agovideo: tegra: nvmap: remove deprecated API
Krishna Reddy [Tue, 14 Jan 2014 17:22:53 +0000]
video: tegra: nvmap: remove deprecated API

Remove deprecated API nvmap_dmabuf_export, nvmap_client_get_file.
Make nvmap_client_get and nvmap_client_put API private.

Change-Id: Icaef1a9782d08843c12eba40f10320e9dc2850ed
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/355569

5 years agovideo: tegra: nvmap: remove nvmap_heap_device_to_arg
Krishna Reddy [Mon, 13 Jan 2014 21:57:24 +0000]
video: tegra: nvmap: remove nvmap_heap_device_to_arg

remove unsued function prototype nvmap_heap_device_to_arg.

Change-Id: Ie19f644b622ceb646da7b10b35233838450810e6
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/355226
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vandana Salve <vsalve@nvidia.com>

5 years agovideo: tegra: host: remove ref to deprecated NvMap API's
Krishna Reddy [Tue, 14 Jan 2014 17:02:40 +0000]
video: tegra: host: remove ref to deprecated NvMap API's

Remove reference to deprecated NvMap API nvmap_dmabuf_export,
nvmap_client_get, nvmap_client_put and nvmap_client_get_file.
Also remove reference to NVMAP_USE_FD_FOR_HANDLE.

Change-Id: I64892d57175c2d9c6af02238591af52f9962ab62
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/355564
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoregulator: max15569: Fix bug in driver init
Ashwin Joshi [Tue, 7 Jan 2014 09:50:58 +0000]
regulator: max15569: Fix bug in driver init

Set base voltage only if it is passed for the board, else let the
regulator be set at whatever voltage it was before.

Bug 1410210

Change-Id: I09730afad4b11e99e60f45138e78871bf22746d1
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/352689
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra: vcm30t124: Update clock table
Ashwin Joshi [Tue, 7 Jan 2014 07:53:17 +0000]
ARM: tegra: vcm30t124: Update clock table

Replace override.mselect with automotive.mselect. This is the virtual
clock added for automotive board.

Bug 1410210

Change-Id: I9576e4237ad12b0f24bbeab62ec57a1230761cb5
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/352597
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoARM: tegra12: clocks: Add new virutal clock.
Ashwin Joshi [Tue, 7 Jan 2014 07:52:26 +0000]
ARM: tegra12: clocks: Add new virutal clock.

Add new virtual clock automotive.mselect for automotive board.

Bug 1410210

Change-Id: I9b2fe65758b7afcc00424eccb2214ed8faeeba55
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/352596
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>

5 years agoRevert "mmc: tegra: Turn off -Werror"
Ajay Nandakumar [Sat, 11 Jan 2014 15:13:25 +0000]
Revert "mmc: tegra: Turn off -Werror"

This reverts commit b8278a853a7ae2eff353052e3db74cb0eed0264c.
This patch turns on -Werror flag for drivers/mmc.

bug 1211919

Change-Id: I2997ca210668d68bc020421ccc80fb7e21fd57f4
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/354750
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: otg: fix warnings to enable -Werror
Ajay Nandakumar [Sat, 11 Jan 2014 17:38:12 +0000]
usb: gadget: otg: fix warnings to enable -Werror

Fix Warnings in drivers/usb/phy to enable -Werror

bug 1211919

Change-Id: I7a9afa8a493acb8ddabfde18965021a1bd2e3c88
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/354757
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoRevert "usb: phy: Turn off -Werror for tegra-otg"
Ajay Nandakumar [Sat, 11 Jan 2014 17:36:53 +0000]
Revert "usb: phy: Turn off -Werror for tegra-otg"

This enables -Werror flag in drivers/usb/phy
This reverts commit a2ca8177615c13b13c39b0a6a02c4dfaaae83357.

Bug 1211919

Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Iac62bfa6f15f60c9f87f18488d3366f641d9b3dd
Reviewed-on: http://git-master/r/354756
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: host: use dma APIs for mmu buffers
Deepak Nibade [Mon, 6 Jan 2014 12:11:56 +0000]
video: tegra: host: use dma APIs for mmu buffers

use dma_zalloc/free_coherent() APIs to allocate memory
for mmu buffers

Bug 1397647

Change-Id: I7f015d8dfbab285876e441037dc801c58da09c74
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/352252
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: use dma APIs for gr ctx
Deepak Nibade [Mon, 6 Jan 2014 11:14:43 +0000]
video: tegra: host: use dma APIs for gr ctx

- use dma_alloc/free_attrs() APIs to allocate/free memory for gr_ctx
- pass DMA_ATTR_NO_KERNEL_MAPPING to above APIs to avoid kernel
  mapping during allocation
- use vmap()/unmap() to get kernel mapping whenever needed
- use gk20a_gmmu_map()/unmap() to update gmmu ptes
- define new API gk20a_get_sgtable_from_pages() which creates sg_table
  of the buffer from 'struct page **'

Bug 1397647

Change-Id: I9f8a9c9f8e7b309cf4d6e5d906747d200ba3dd29
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/352250
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoDocumentation: update doc for dc/dsi dt
Min-wuk Lee [Fri, 3 Jan 2014 12:31:29 +0000]
Documentation: update doc for dc/dsi dt

Update documentation of tegra114/tegra124
dc, dsi device tree.

Bug 1371533
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>

Change-Id: Id0d3206e10de1692c5df7c1da1c4f0fc02d93cd0
Reviewed-on: http://git-master/r/351751
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoedp: change DT compatible field of sysedp_batmon_calc
Timo Alho [Thu, 9 Jan 2014 09:43:17 +0000]
edp: change DT compatible field of sysedp_batmon_calc

Change the compatible field of sysedp_batmon_calc to match with nvidia
naming convention.

Bug 1391872

Change-Id: I599199813092879daaa0d533831c35b73d693f5c
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/353726
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agobcmdhd: Define miracast modes 3 & 4
Narayan Reddy [Tue, 14 Jan 2014 06:09:53 +0000]
bcmdhd: Define miracast modes 3 & 4

Improve QoS for Grid2shield stream by
turning off AMPDU aggregation on 11n AP's
Mode 3 - disable AMPDU for all CS's
Mode 4 - re-enable AMPDU except CS 5 & 7
Driver command MAXLINKSPEED added to
distinguish 11n and non-11n AP's

Bug 1375583

Change-Id: I872ea99d7251845af716a6628eb52f7a7bdedfe2
Reviewed-on: http://git-master/r/355376
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Tested-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: host: Add missing busy/idle calls
Shridhar Rasal [Mon, 13 Jan 2014 14:36:20 +0000]
video: tegra: host: Add missing busy/idle calls

On resume, host1x and clients may be powered off during channel
submit. Add missing busy/idle calls for job_pin.

Bug 1411159

Change-Id: I0f1db7ab36d7d5ce41c7f53c2424ac24227ae2c8
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/355105
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopower: bq2419x: Configure lp0 charging through platform data
Darbha Sriharsha [Mon, 13 Jan 2014 11:05:58 +0000]
power: bq2419x: Configure lp0 charging through platform data

Enable/Disable LP0 entry of board when charger is connected
based on value of configuration variable passed through platform
data.

Bug 1417638

Change-Id: Ic84e4aff3b7d5d983a44e1f8c2bf3b4391339373
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/348402
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: register gpadc battery temp driver fro TN8-FFD
eddichang [Mon, 13 Jan 2014 03:28:46 +0000]
ARM: tegra: register gpadc battery temp driver fro TN8-FFD

Read voltage from channe5 of PMIC-ADC and by lookup table,
convert it to approximately battery temperature.

bug 1419610

Signed-off-by: eddichang <eddichang@nvidia.com>

Change-Id: If21b7f025acdd01b0e3d15c62cbcc9fae7847803
Reviewed-on: http://git-master/r/354856
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoASoC: Tegra:Fix voicecall+music concurrency issues
vinod subbarayalu [Sat, 21 Dec 2013 01:24:13 +0000]
ASoC: Tegra:Fix voicecall+music concurrency issues

Change-Id: I202b4f633f40fc069fa59f48edddcceba040bbf0
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/348287
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: tn8: populate pwrdet regulator entry
Aaron Huang [Tue, 7 Jan 2014 07:57:28 +0000]
ARM: tegra: tn8: populate pwrdet regulator entry

Powerdetect regulator entries populated for T12x boards:
- tn8 (with E1936 PMU board)

Bug 1431745
Bug 1431748

Change-Id: I0a9dd970aca57e61e372e9bd2a4cfc1348211c44
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/352590
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoxhci: tegra: Support HSIC device power on/off
Joy Wang [Mon, 13 Jan 2014 10:27:17 +0000]
xhci: tegra: Support HSIC device power on/off

Support for HSIC device power on/off by sending
MBOX_CMD_AIRPLANE_MODE_DISABLED/MBOX_CMD_AIRPLANE_MODE_ENABLED
mailbox message to firmware.

Bug 1390301

Change-Id: If1f314b09fd0887305765cb5bda9c420b11fafa1
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/355041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>

5 years agovideo: tegra: dc: change pr macros
Min-wuk Lee [Mon, 13 Jan 2014 11:54:14 +0000]
video: tegra: dc: change pr macros

It is possible not to have cmu, smart dimmer,
HDMI display timings and it does not mean
problems or warning.
Having tmds node, but no configuration is not
harmful, either. For these, change pr_warn
to pr_info.
dc-default-out node is mandatory. It must be
jumped into failure case if there is not.
For DSI out type, dsi node is mandatory. It must
be jumped into failure case if there is not.

Bug 1371533
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>

Change-Id: Id03f78b293b807c627e83eacf1d99d4922a5d69e
Reviewed-on: http://git-master/r/355070
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agohid: hid-input: add trace event
Pritesh Raithatha [Mon, 6 Jan 2014 14:19:06 +0000]
hid: hid-input: add trace event

Bug 1434677

Change-Id: I019e492769495335041a336aef4de94a746efcee
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/352284
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: DT: add dts file for thor1.95
Yunfan Zhang [Tue, 7 Jan 2014 09:58:50 +0000]
ARM: tegra: DT: add dts file for thor1.95

Thor1.95(E2549) does not have ALS(jsa1127)

Bug 1427366

Change-Id: I55c6e528e02e2e67e68fcf1b01924c42cde1d8b0
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/352670
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agovideo: tegra: dc: fix thresh lwm calc
Adeel Raza [Wed, 23 Oct 2013 01:47:58 +0000]
video: tegra: dc: fix thresh lwm calc

Fix the thresh_lwm_bytes calculcation as per new guidance from MC ARCH.

Bug 1369600

Change-Id: I5843eafc894a7db03d6b5c91276330b75c1d5e79
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/302580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Eiman Ebrahimi <eebrahimi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: p1761: enable OC1 throttling
Timo Alho [Fri, 10 Jan 2014 14:14:33 +0000]
arm: tegra: p1761: enable OC1 throttling

This patch enables soc_therm OC1 throttling on p1761 platform
 - Configure soc_therm with 75% for CPU and "medium_throttling" for
   GPU
 - Configure KB_ROW15 as input with PULL-UP

Change-Id: I8c8f597b8b62c77099ea43cf14362a6a5197f622
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/354260
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Vandana Bansal <vandanab@nvidia.com>
Tested-by: Vandana Bansal <vandanab@nvidia.com>

5 years agovideo: tegra: nvmap: remove deprecated ioctl cmd
Krishna Reddy [Mon, 13 Jan 2014 21:20:07 +0000]
video: tegra: nvmap: remove deprecated ioctl cmd

Remove deprecated ioctl cmd NVMAP_IOC_CLAIM

Change-Id: I88efbf31ff47873f8dabeca14a33f539689f063f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/355221
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agovideo: tegra: nvmap: remove ref to inner_wb prot
Krishna Reddy [Fri, 10 Jan 2014 21:58:51 +0000]
video: tegra: nvmap: remove ref to inner_wb prot

Remove reference to obsolete inner_wb protection.

Change-Id: I77fe7099748fcaf99939a9414a319ca1f783cbec
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/354412
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agocpuquiet: Clean up sysfs memory properly
Sai Gurrappadi [Tue, 17 Dec 2013 21:40:45 +0000]
cpuquiet: Clean up sysfs memory properly

Runnable sysfs node wasn't being free'd in stop via a kobject_put call
because the sysfs node wasn't allocated with kobject_create. Now do an
explicity kfree on stop after the kobject_put.

Change-Id: I5ba554312757380dfb2e814f75832b28d4c7edf8
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/346645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agopower: Fix coverity error
Sai Gurrappadi [Tue, 14 Jan 2014 18:26:22 +0000]
power: Fix coverity error

Properly null-terminate userspace input string. Otherwise, the subsequent
strsep() could continue off into arbitrary chunks of kmalloc() space
that aren't part of the original string buffer.

Change-Id: I3868dbcdd9df7e7172c001eb6bc41c605d48604b
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/355578
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: loki: remove fb flip flag
Vinayak Pane [Fri, 10 Jan 2014 01:17:33 +0000]
ARM: tegra: loki: remove fb flip flag

Removing TEGRA_FB_FLIP_ON_PROBE from board panel files.
Also copy framebuffer for seamless HDMI display.

Bug 1425201

Change-Id: I682872ea7af1bb39ccb910f5c77b68f425f0fd38
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/354680
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoarm: tegra: EDP: Allow T575D sku on TN8
Steve Rogers [Mon, 13 Jan 2014 21:43:53 +0000]
arm: tegra: EDP: Allow T575D sku on TN8

Bug 1439984

Change-Id: I90b2f351f24d197a6c35d5868df0be80725e5509
Signed-off-by: Steve Rogers <srogers@nvidia.com>
Reviewed-on: http://git-master/r/355218
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agovideo: tegra: host: gk20a: defer gk20a pg init
Prashant Malani [Tue, 7 Jan 2014 21:07:48 +0000]
video: tegra: host: gk20a: defer gk20a pg init

The powergating initialization routine does not need to be performed
during gk20a init. Therefore, it is put into a work queue and executed
after gk20a init has completed.

Bug 1435870

Change-Id: Iccb3f628986f898bbf00bcee06a3bb4a99ebe95d
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/352872
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarch: arm: mach-tegra: update ar0261 power funcs
Phil Breczinski [Tue, 14 Jan 2014 02:34:38 +0000]
arch: arm: mach-tegra: update ar0261 power funcs

Update ar0261 power_on and power_off functions to update focuser
power state.

Bug 1439565

Change-Id: I19671239b66bf0ca6f1a6b51134d8d4800e0773b
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/355324
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agomedia: ad5823: ensure power on for pos wr
Phil Breczinski [Sat, 11 Jan 2014 02:50:52 +0000]
media: ad5823: ensure power on for pos wr

Ensures ad5823 is powered on when position is written
by temporarily powering on sensor when a position wr
ioctl is received.  Mimics ad5816 driver.

Bug 1439565

Change-Id: I168e187f2b72281c956bdc51f5e590dee01e0c68
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/355231
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoRevert "arm: tegra: loki:remove extra hdmi reg definitions"
Raymond Poudrier [Tue, 14 Jan 2014 02:22:08 +0000]
Revert "arm: tegra: loki:remove extra hdmi reg definitions"

This reverts commit 2a4d6591418e25a37656348cc818801af0372314.

Change-Id: I36f77b625d9466cfae87881af37dcbd8f52ecae7
Reviewed-on: http://git-master/r/355314
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agousbaudio: Update switch driver to report digital dock
Scott Peterson [Thu, 19 Dec 2013 23:06:46 +0000]
usbaudio: Update switch driver to report digital dock

The current switch state output defaults to analog dock
which does not work well with the audio policy and is
not representative of what device is connected, which
is the digital dock.

Change-Id: I690ac58cdb8357989bb8fbd32899836f634a0b29
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/348124
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

5 years agovideo: tegra: dc: remove references to nvmap
Krishna Reddy [Tue, 17 Dec 2013 00:55:18 +0000]
video: tegra: dc: remove references to nvmap

Remove obsolete references to nvmap.
Bug 1426426

Change-Id: I04eadfc6b2620ed9a2d22cb345725564a3ca1bbd
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/346088

5 years agoarm: tegra124: tn8 ffd: Support 180 degress rotate as default.
steven [Fri, 10 Jan 2014 03:44:48 +0000]
arm: tegra124: tn8 ffd: Support 180 degress rotate as default.

Bug 1436819

Change-Id: I3e8d492c6397203766ffa6db45a50c61bb2aaefd
Reviewed-on: http://git-master/r/354052
Tested-by: Steven Kao <skao@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agomedia:platform:tegra:check regs before setmode
Amey Asgaonkar [Wed, 8 Jan 2014 20:08:18 +0000]
media:platform:tegra:check regs before setmode

Remove force reset and add a check on status
register value before writing mode table for
soc1040 sensor.

Bug 1406356

Change-Id: I05ca08e0023e0c590ecb42b160de75bc84cc3dd2
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-on: http://git-master/r/353389
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agovideo: tegra: dc: T114 SHIFT_CLK_UPDATE WAR
Jon Mayo [Wed, 8 Jan 2014 20:56:37 +0000]
video: tegra: dc: T114 SHIFT_CLK_UPDATE WAR

Work around for T114 SHIFT_CLK_UPDATE.

Bug 1045373
Bug 1225291
Bug 1161019

Change-Id: I1738fc9d3bdab314a0b3200982b2d20fd0a10ddd
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/353399
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: emc: add burst reg
Mitch Luban [Sat, 11 Jan 2014 21:56:10 +0000]
arm: tegra: emc: add burst reg

Add MC_EMEM_ARG_MISC1 to list of registers in tegra12 emc

Bug 1385795

Change-Id: I420e6c749ab59ad448ed7e3e5f120e3d7db33055
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/354767

5 years agoarm: tegra: loki: More support for board revision
Jun Yan [Tue, 31 Dec 2013 03:48:33 +0000]
arm: tegra: loki: More support for board revision

Here comes the rescue for board fragmentation:

"ro.revision" property stands for the board revision:
0-Loki FFF/FFD(5 inch display)
1-Loki NFF on E2548
2-Loki NFF on E2549
3-Foster
4-Loki FFF/FFD(5.6 inch display)

Bug 1432777

Change-Id: I5228202bd634f1ec3febe132839d0fbae0b6f166
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/350836
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agovideo: tegra: dc: move syncpts fwd for all flips
Rakesh Iyer [Thu, 9 Jan 2014 23:06:40 +0000]
video: tegra: dc: move syncpts fwd for all flips

move syncpoints forward for successful and unsuccessful flips in flip worker.

Bug 1431179.

Change-Id: I10a43b46bfb3b16eef42941df48868964cc34ad8
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/353944
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovcm30t124: Disable HDMI modeset on bootup
Raghavendra VK [Wed, 20 Nov 2013 01:44:50 +0000]
vcm30t124: Disable HDMI modeset on bootup

bug 1410357

Change-Id: Ib778ef535c224386788f24ba75834fedab09916a
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/333153
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sungwook Kim <sungwookk@nvidia.com>
Tested-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: tegra: Fix TEGRA_CORE_CAP config variable name
Alex Frid [Fri, 10 Jan 2014 23:59:09 +0000]
ARM: tegra: Fix TEGRA_CORE_CAP config variable name

Change-Id: I8641ade086b9ae9e1deedab82d9c36854085f52f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/354465
Reviewed-by: Samuel Russell <samuelr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: panel: Remove size definition in panel file
Chao Xu [Sat, 11 Jan 2014 00:01:13 +0000]
ARM: tegra: panel: Remove size definition in panel file

Kernel should pickup the right size from EDID.

Bug 1389863

Change-Id: Ief16b4d0fdb0a3c0247ffdb3bcb156d29be8a307
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/354468

5 years agovideo: tegra: dp: Use EDID screen size
Chao Xu [Fri, 10 Jan 2014 23:57:11 +0000]
video: tegra: dp: Use EDID screen size

Use the screen size specified in EDID. Vendor might choose to
specify aspect rations instead. So leave the choice to panel
file to decide if use the value.

Bug 1389863

Change-Id: I52c78aa02a0d9cf7be08ffdf6eb159362f486a8a
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/354467

5 years agomedia: platform: nvavp: correct ref count on dmabuf
Vandana Salve [Mon, 13 Jan 2014 07:32:35 +0000]
media: platform: nvavp: correct ref count on dmabuf

Fix missing ref drop on dmabuf while unmapping
iova address

bug 1371298

Change-Id: Ia8b5927ecd02dd0b4935ac50d1d279be3cd0278f
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/354939
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoarm: mm: cpa: only if CONFIG_CPA defined
Peter Daifuku [Thu, 9 Jan 2014 01:57:51 +0000]
arm: mm: cpa: only if CONFIG_CPA defined

Enable cpa functions only if CONFIG_CPA defined

Bug 1426356

Change-Id: I93acad16e18ac03d5b9bbbc953c0b05a18ab86ac
Reviewed-on: http://git-master/r/353514
GVS: Gerrit_Virtual_Submit
Tested-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agovideo: host: tegra_vi: add check tegra_vi for NULL
Bryan Wu [Thu, 9 Jan 2014 19:30:42 +0000]
video: host: tegra_vi: add check tegra_vi for NULL

commit 2d767dccc494f6c503ceac68efa2fe474c5f8d74 will cause kernel oops
when removing tegra_camera module from kernel.

The root cause is tegra_camera V4L2 driver doesn't use
pdata->private_data, which is NULL in this case. So it will cause NULL
pointer access when calling functions in tegra_vi.c.

Add check pointer of tegra_vi for NULL to fix this issue.

Bug 1437413

Change-Id: I4b5189a711e1477509f5f3dbefa98c685a8b94df
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/353891
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: implement gk20a timeout control interface
Kirill Artamonov [Mon, 16 Dec 2013 12:28:21 +0000]
video: tegra: host: implement gk20a timeout control interface

Implement per-channel scheduling timeout handling for gk20a.

Reuse nvhost timeout control interface for gk20a channels.

Disable timeout check if /d/gk20a/timeouts_enabled is set to
false.

bug 1355640
bug 1402282
bug 1415315

Change-Id: Iff953ed89ab1f2096e5f799038d853c034527e9d
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/345840
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: fix warning to enable -Werror
Ajay Nandakumar [Fri, 10 Jan 2014 17:19:30 +0000]
arm: tegra: fix warning to enable -Werror

Fix various warnings to enable -Werror option.

Bug 1211919

Change-Id: I913728fd3f2cbac0243b4e116c53cb035ed17f35
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/354292
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agousb: tegra: wake enable at suspend
Suresh Mangipudi [Fri, 10 Jan 2014 10:16:08 +0000]
usb: tegra: wake enable at suspend

enable_irq_wake call moved from probe function to suspend.
Resume function has disable_irq_wake call

Bug 992448

Change-Id: I7612887dd8db274a1994eb0ca1713becba69eca8
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/354182
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agostaging: iio: light: treat build warnings as error
Sri Krishna chowdary [Fri, 10 Jan 2014 06:01:52 +0000]
staging: iio: light: treat build warnings as error

- Makefile: enable Werror flag to treat compile time warnings as errors
- max44005: fix unchecked return value in set_led_drive_strength
- tcs3772: IIO_CHAN_INFO_RAW_SEPERATE_BIT is not defined on 3.10.
  Replace it with IIO_CHAN_INFO_RAW instead.

Bug 1211919

Change-Id: I2036ff9c8f0bad1b67e0c3037678a0e2b5bf0482
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/354070
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: Use GEN1_I2C at 400 Khz
Chaitanya Bandi [Fri, 10 Jan 2014 04:44:45 +0000]
ARM: tegra: Use GEN1_I2C at 400 Khz

Use GEN1_I2c at 400Khz in ardbeg, loki, tn8 platforms

Bug 1422522

Change-Id: I1b978b4653fcac06110607eb8e6701f89b5948b7
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/352193
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq27441: Do not initialize if already done
Chaitanya Bandi [Fri, 10 Jan 2014 08:39:42 +0000]
power: bq27441: Do not initialize if already done

Added support in bq27441 driver such that the device
is not initialized if already done.

Bug 1344962

Change-Id: I5b749fcc014ab817cb0493a095003952ca9fe5d3
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/354140
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoTegra12: ARM: Ardbeg: reduce PMC_WAKE_DELAY
Krishna Sitaraman [Thu, 8 Aug 2013 18:45:21 +0000]
Tegra12: ARM: Ardbeg: reduce PMC_WAKE_DELAY

PMC_WAKE_DELAY reduced to 10 32kHz cycles.

Bug 1329050

Change-Id: Iac6b05d1da59083eed8dd1493154a040d9bd0951
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/354709
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: make pinmux node to be always enable for Tegra124
Laxman Dewangan [Fri, 10 Jan 2014 07:11:27 +0000]
ARM: tegra: make pinmux node to be always enable for Tegra124

Make status of pinmux node of Tegra124 to be always enable so that
pinctrl will get register from DT always for all Tegra124 platforms.

This will remove the need to enabling pinmux from platform specific dts
file.

Change-Id: I8c2ac1e9cc7d27a82ddac515f44e52b2b9132a44
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354111

5 years agoARM: tegra: make pinmux node to be always enable for Tegra114
Laxman Dewangan [Fri, 10 Jan 2014 06:52:15 +0000]
ARM: tegra: make pinmux node to be always enable for Tegra114

Make status of pinmux node of Tegra114 to be always enable so that
pinctrl will get register from DT always for all Tegra114 platforms.

This will remove the need to enabling pinmux from platform specific dts
file.

Change-Id: I02115f0d99ad90aab5af1534ac3ad56dd41a3677
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354109
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: remove API which requires to register pinctrl from board file.
Laxman Dewangan [Fri, 10 Jan 2014 06:49:53 +0000]
ARM: tegra: remove API which requires to register pinctrl from board file.

As pinctrl registration is moved to DT for all platforms, it is
not require to have function/code to register pinctrl from board
files. Removing the same.

Change-Id: I6ff0e5b74748fc7dcf75f2eb5a6026d62d15c999
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354108

5 years agoi2c: mux: pca954x: pass deselect mux when it is register from DT
Laxman Dewangan [Fri, 10 Jan 2014 13:20:54 +0000]
i2c: mux: pca954x: pass deselect mux when it is register from DT

If device is registered from DT then pass the deslect_mux callback
always to register the bus adpater. i2c-mux core driver parse
the required propery from child bus node and enable deselct-mux
accordingly.

Change-Id: If11b251c39575812639af6bd455d9c84c7282eba
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354256
GVS: Gerrit_Virtual_Submit

5 years agoi2c: mux-core: add deselect property on child node
Laxman Dewangan [Fri, 10 Jan 2014 13:18:19 +0000]
i2c: mux-core: add deselect property on child node

Add deselect enable property on the child node of the
mux bus.

If child node of mux device have this property then deselect
option will be enabled.

Change-Id: I7907429e1937c8af608970c8680fe2fcea90da5a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354255
GVS: Gerrit_Virtual_Submit

5 years agoi2c: tegra: remove bus number aliasing with node
Laxman Dewangan [Fri, 10 Jan 2014 13:16:15 +0000]
i2c: tegra: remove bus number aliasing with node

Tegra I2C aliases the i2c node with bus number. As the i2c-core
framework supports the aliasing of bus number with device node,
it is not require to have this in driver code. Hence removing this
part of code.

Change-Id: I1a9e63c62a1f17716d587d4588d0d426d3c297f2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/354254
GVS: Gerrit_Virtual_Submit

5 years agoMerge timers from upstream in to 3.10
Ajay Nandakumar [Mon, 13 Jan 2014 06:54:35 +0000]
Merge timers from upstream in to 3.10

The changes include :
  . relocation of sched_clock framework to kernel/time from
    arch/arm/kernel.

  . support for more than 32 bit counters by sched clock framwork.

Bug 1399318

Change-Id: I3d9b8455d4b2c173f9f7934e1b17aa2b19a42d18
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

5 years agosched_clock: document 4Mhz vs 1Mhz decision
Stephen Boyd [Thu, 7 Nov 2013 01:00:01 +0000]
sched_clock: document 4Mhz vs 1Mhz decision

Bo Shen sent a patch to change this to 1Mhz instead of 4Mhz but according
to Russell King the use of 4Mhz was intentional.  Add a comment to this
effect so that others don't try to change the code as well.

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Bo Shen <voice.shen@atmel.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 21e79dee7fe571f59aca2d946032736b0d89ef46)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: If9755b79575739f8be1a4a221a05b34f19ef4b78

5 years agosched_clock: Remove sched_clock_func() hook
Stephen Boyd [Thu, 18 Jul 2013 23:21:19 +0000]
sched_clock: Remove sched_clock_func() hook

Nobody is using sched_clock_func() anymore now that sched_clock
supports up to 64 bits. Remove the hook so that new code only
uses sched_clock_register().

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit b4042ceaabbd913bc5b397ddd1e396eeb312d72f)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I893740dddcb2ded37acecf0ce87f7f6bcce0cfe8

5 years agoclocksource: Extract max nsec calculation into separate function
Stephen Boyd [Thu, 18 Jul 2013 23:21:14 +0000]
clocksource: Extract max nsec calculation into separate function

We need to calculate the same number in the clocksource code and
the sched_clock code, so extract this code into its own function.
We also drop the min_t and just use min() because the two types
are the same.

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 87d8b9eb7eb6669aad6435a51e9862362141ba76)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Id1208090d9fcc282a162ce6fdb5e4a64d0b33907

5 years agosched_clock: Add support for >32 bit sched_clock
Stephen Boyd [Thu, 18 Jul 2013 23:21:17 +0000]
sched_clock: Add support for >32 bit sched_clock

The ARM architected system counter has at least 56 usable bits.
Add support for counters with more than 32 bits to the generic
sched_clock implementation so we can increase the time between
wakeups due to dealing with wrap-around on these devices while
benefiting from the irqtime accounting and suspend/resume
handling that the generic sched_clock code already has. On my
system using 56 bits over 32 bits changes the wraparound time
from a few minutes to an hour. For faster running counters (GHz
range) this is even more important because we may not be able to
execute the timer in time to deal with the wraparound if only 32
bits are used.

We choose a maxsec value of 3600 seconds because we assume no
system will go idle for more than an hour. In the future we may
need to increase this value.

Note: All users should switch over to the 64-bit read function so
we can remove setup_sched_clock() in favor of sched_clock_register().

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit e7e3ff1bfe9c42ee31172e9afdc0383a9e595e29)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I7c20d4185232868b362368f034c97337e48b0dc8

5 years agosched_clock: Use an hrtimer instead of timer
Stephen Boyd [Thu, 18 Jul 2013 23:21:16 +0000]
sched_clock: Use an hrtimer instead of timer

In the next patch we're going to increase the number of bits that
the generic sched_clock can handle to be greater than 32. With
more than 32 bits the wraparound time can be larger than what can
fit into the units that msecs_to_jiffies takes (unsigned int).
Luckily, the wraparound is initially calculated in nanoseconds
which we can easily use with hrtimers, so switch to using an
hrtimer.

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[jstultz: Fixup hrtimer intitialization order issue]
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit a08ca5d1089da03724f96fa0870c64968e66765b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I17a9bd3140e7f41f0985c070a14eea17696b3770

5 years agosched_clock: Use seqcount instead of rolling our own
Stephen Boyd [Thu, 18 Jul 2013 23:21:15 +0000]
sched_clock: Use seqcount instead of rolling our own

We're going to increase the cyc value to 64 bits in the near
future. Doing that is going to break the custom seqcount
implementation in the sched_clock code because 64 bit numbers
aren't guaranteed to be atomic. Replace the cyc_copy with a
seqcount to avoid this problem.

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 85c3d2dd15be4d577a37ffb8bbbd019fc8e3280a)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Iff7ec4aca829452c5b51576dae9437a37ed8f619

5 years agosched_clock: Fix integer overflow
Baruch Siach [Wed, 17 Jul 2013 09:46:53 +0000]
sched_clock: Fix integer overflow

The expression '(1 << 32)' happens to evaluate as 0 on ARM, but
it evaluates as 1 on xtensa and x86_64. This zeros sched_clock_mask,
and breaks sched_clock().

Set the type of 1 to 'unsigned long long' to get the value we need.

Bug 1399318

Reported-by: Max Filippov <jcmvbkbc@gmail.com>
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 53c035204253efe373d9ff166fae6147e8c693b6)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I9bbe733430f9f7850e4073feef4265f626e6dc8f

5 years agoARM: sched_clock: Load cycle count after epoch stabilizes
Stephen Boyd [Mon, 17 Jun 2013 22:40:58 +0000]
ARM: sched_clock: Load cycle count after epoch stabilizes

There is a small race between when the cycle count is read from
the hardware and when the epoch stabilizes. Consider this
scenario:

 CPU0                           CPU1
 ----                           ----
 cyc = read_sched_clock()
 cyc_to_sched_clock()
                                 update_sched_clock()
                                  ...
                                  cd.epoch_cyc = cyc;
  epoch_cyc = cd.epoch_cyc;
  ...
  epoch_ns + cyc_to_ns((cyc - epoch_cyc)

The cyc on cpu0 was read before the epoch changed. But we
calculate the nanoseconds based on the new epoch by subtracting
the new epoch from the old cycle count. Since epoch is most likely
larger than the old cycle count we calculate a large number that
will be converted to nanoseconds and added to epoch_ns, causing
time to jump forward too much.

Fix this problem by reading the hardware after the epoch has
stabilized.

Bug 1399318

Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 336ae1180df5f69b9e0fb6561bec01c5f64361cf)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I50aedb0eb050206de4ab20505e84a561ec1ca0fb

5 years agoarch_timer: Move to generic sched_clock framework
Stephen Boyd [Thu, 18 Jul 2013 23:21:18 +0000]
arch_timer: Move to generic sched_clock framework

Register with the generic sched_clock framework now that it
supports 64 bits. This fixes two problems with the current
sched_clock support for machines using the architected timers.
First off, we don't subtract the start value from subsequent
sched_clock calls so we can potentially start off with
sched_clock returning gigantic numbers. Second, there is no
support for suspend/resume handling so problems such as discussed
in 6a4dae5 (ARM: 7565/1: sched: stop sched_clock() during
suspend, 2012-10-23) can happen without this patch. Finally, it
allows us to move the sched_clock setup into drivers clocksource
out of the arch ports.

Bug 1399318

Cc: Christopher Covington <cov@codeaurora.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 65cd4f6c99c1170bd0114dbd71b978012ea44d28)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I77dde73ba0c325c67275e72220419fd47faf4206

5 years agosched_clock: Make ARM's sched_clock generic for all architectures
Stephen Boyd [Sun, 2 Jun 2013 06:39:40 +0000]
sched_clock: Make ARM's sched_clock generic for all architectures

Nothing about the sched_clock implementation in the ARM port is
specific to the architecture. Generalize the code so that other
architectures can use it by selecting GENERIC_SCHED_CLOCK.

Bug 1399318

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[jstultz: Merge minor collisions with other patches in my tree]
Signed-off-by: John Stultz <john.stultz@linaro.org>

(cherry picked from commit 38ff87f77af0b5a93fc8581cff1d6e5692ab8970)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: Iaac325635344ef4adee8fa0f9ca11aee089bce0f

5 years agoARM: sched_clock: Return suspended count earlier
Stephen Boyd [Sun, 2 Jun 2013 06:39:39 +0000]
ARM: sched_clock: Return suspended count earlier

If we're suspended and sched_clock() is called we're going to
read the hardware one more time and throw away that value and
return back the cached value we saved during the suspend
callback. This is wasteful. Let's short circuit all that and
return the cached value as early as possible if we're suspended.

Bug 1399318

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit ffbfb5e316f0db486798ccf1db36a577ffe79637)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I618d4d0c03b8ff5e5da47940fc5cfa66bc5145b1

5 years agoARM: sched_clock: Remove unused needs_suspend member
Stephen Boyd [Sun, 2 Jun 2013 06:39:38 +0000]
ARM: sched_clock: Remove unused needs_suspend member

The needs_suspend member is unused now that we always do the
suspend/resume handling (see 6a4dae5 (ARM: 7565/1: sched: stop
sched_clock() during suspend, 2012-10-23)).

Bug 1399318

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
(cherry picked from commit 5a9b5855c248d0298eac4d5490c7bc11c2f1983b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Change-Id: I53f53b1ad46b6c7d8fa75147f7ddccb322d95482

5 years agoRevert "Revert "ARM: arch_timer: use full 64-bit counter for sched_clock""
Ajay Nandakumar [Thu, 9 Jan 2014 17:45:25 +0000]
Revert "Revert "ARM: arch_timer: use full 64-bit counter for sched_clock""

This reverts commit 60df2b1853f0df4251318ad1d3b741e0f9984e55.

The change is reverted since changes from upstream are available
that provides the actual solution for bug mentioned below.

The upstream patches solve this bug by introducing support for
more than 32 bit counters by sched clock framework.

Bug 1399318

Change-Id: I1a7b20dcbf6c2e73a4a7e3446a5dcb72f4172236
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/353860
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: gadget: tegra: Update extcon state properly
Rohith Seelaboyina [Wed, 8 Jan 2014 05:44:44 +0000]
usb: gadget: tegra: Update extcon state properly

Update extcon state only when cable is removed/connected
physically. This change removes the extra notifications
to extcon notified even though cable is connected.

Bug 1415580

Change-Id: I0647762b1abf95e2cd34264239d756f07da7a239
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/353067
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoAsoc: ALC5639: Do not put codec in OFF state when idle
Manoj Gangwal [Fri, 10 Jan 2014 09:30:46 +0000]
Asoc: ALC5639: Do not put codec in OFF state when idle

Headset detection is happening through codec.
So this change will avoid codec to go in OFF
state if not in use. Codec will be in standby
mode in idle state.

Bug 1423334
Bug 1422595
Bug 1422552

Change-Id: Ic0ed57d35686c5ce063bf7980e6fb65c514edc06
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/354178
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Simon Je <sje@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agoarm: tegra: loki:remove extra hdmi reg definitions
siddardha naraharisetti [Fri, 20 Dec 2013 23:28:15 +0000]
arm: tegra: loki:remove extra hdmi reg definitions

Only for foster we need HDMI as primary display.
change the dev_name for all hdmi related consumers to tegradc.0
only for foster, these consumers are not needed for other loki variants

Bug 1407836

Change-Id: Idabe6555f841b06edd0905015f1702516660dfc5
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/348231
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: tegra: loki: fix power tree for a03
Ray Poudrier [Fri, 10 Jan 2014 02:28:27 +0000]
ARM: tegra: loki: fix power tree for a03

Previously did an equate. Need to apply new
power tree for all new boards.

Bug 1429817

Change-Id: If829d2994e8bfb79b9a63bc207cc4ee2d92c4f50
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/354037

5 years agoARM: tegra12: clock: Update EMC init priorities
Alex Frid [Wed, 8 Jan 2014 23:38:25 +0000]
ARM: tegra12: clock: Update EMC init priorities

Assigned to EMC DVFS table from NCT or board files higher priority
than DTB-supplied table.

Change-Id: I4ef8a86c3ddf9edf3c9b2532e42f314c99765af3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/353482
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoRevert "input: touch: raydium: V61.7 code drop"
Xiaohui Tao [Fri, 10 Jan 2014 22:19:34 +0000]
Revert "input: touch: raydium: V61.7 code drop"

This reverts commit 168a30189073179c1394e2ec8b19de8c6341cd20.

Change-Id: Iaaaf62c0b2382c8809394212726e5ff468decfec
Reviewed-on: http://git-master/r/354423
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>