Age | Commit message (Collapse) | Author |
|
When a device is shut down, make sure to disable the backlight. If it
stays lit, it gives the impression that the device hasn't turned off.
Furthermore keeping the backlight on may consume power, which is not
what users expect when they shut down a device.
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 5f33b896246a2d9bdf01352de11d4dab96ba2fc9)
|
|
No need to have a specific OOM message, since there is generic MM out of memory
message in place.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit ca7a97add4d4a7b0602b3bd1eff5c89da8636713)
|
|
I forgot to remove this during earlier cleanup patches and only checked
various builds for errors, not warnings.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit 73d4e2b82b4bb1571b1a7f97012c0db8a0faef42)
|
|
Use SIMPLE_DEV_PM_OPS macro will initialize the member "freeze"
and "thaw" of pwm_backlight_pm_ops as below,
.freeze = suspend_fn,
.thaw = resume_fn,
then during the process of making hibernation snapshot, screen
will be blank at the moment of freezing, and then light at the
moment of thawing.
this is not the right user experience for suspending to disk.
so this patch drops freeze and thaw callback, make the LCD is
always lighting before the final shutdown.
Signed-off-by: Huayi Li <huayi.li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit 1dea1fd09246ada581a99d0669108eea94b7bfee)
|
|
Split adjustment of the brightness (by changing the PWM duty cycle) from
the power on sequence. This fixes an issue where the brightness can no
longer be updated once the backlight has been enabled.
Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit e4bfeda96872bfe6015cd360008b77cd3b981b2b)
|
|
Currently the driver assumes that the values specified in the
brightness-levels device tree property increase as they are parsed from
left to right. But boards that invert the signal between the PWM output
and the backlight will need to specify decreasing brightness-levels.
This patch removes the assumption that the last element of the array is
the maximum value, and instead searches the array for the maximum value
and uses that in the duty cycle calculation.
Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 8f43e18e2769b3b28383903d501b4da29e388aad)
|
|
Backlights require a power supply to work properly. This commit adds a
regulator to power up and power down the backlight.
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 22ceeee16eb8f0d04de3ef43a5174fb30ec18af9)
|
|
Make use of the new enable_gpio field and allow it to be set from DT as
well. Now that all legacy users of platform data have been converted to
initialize this field to an invalid value, it is safe to use the field
from the driver.
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 8265b2e4e62632b01f998095d1bbda4d281629fe)
|
|
Follow up patches will add support for more complex means of powering
the backlight on and off such as using a regulator. To prevent calls to
the regulator API from becoming unbalanced, keep track of the enabled
state internally.
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 97c38437115aa0c3fb2d50c488814b503ba529e0)
|
|
In preparation for adding an optional regulator and enable GPIO to the
driver, split the power on and power off sequences into separate
functions to reduce code duplication at the multiple call sites.
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 62b744a87c1170b339f993aa3cfb22465974816a)
|
|
Add more blank lines to increase readability. While at it, remove a
trailing blank line at the end of the file.
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 668e63c6701d486c68b49ffffc0e5b7de1a2e95c)
|
|
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change to
make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit c512794cada491e008eeca822af7e4ad5db72a56)
|
|
This reverts commit 95730406a0e3bbd7f862718782924a3c367845a1.
|
|
This reverts commit 74df06fb565b7250bc86d79727b66bb02259d54c.
|
|
This reverts commit 08a13bacb43f206239ae0f1ccbe37325993e2b1b.
|
|
This reverts commit 153a5d54d1a10c5a35f6923e0c6423430d2c7c89.
|
|
Making message "unable to request PWM, trying legacy API".
However, failure with legacy API will be treated as error.
Bug 200113810
Change-Id: Ie7bae0c62837a4fde89706d1b9600600c2a49651
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/761732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
Some DSI panels require changing backlight intensity through DSI
command. Create a backlight driver hook to Tegra DSI to achieve
these panels.
Bug 1453606
Change-Id: I1c7466c01cde101e8e8346cb27371d35ff48ed58
Reviewed-on: http://git-master/r/380396
(cherry picked from commit 8c5027c7a3c9b6f3d94e85b22cec0351439c03ad)
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/407436
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
|
|
Revised system edp software framework has been put in place. This
patch removes old system edp client code from max8831 backlight
driver.
Bug 1431977
Change-Id: I4d107f7d26759c009a28e4b6617bd8126950a022
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/350985
Reviewed-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Revised system edp software framework has been put in place. This
patch removes old system edp client code from lm3528 backlight driver.
Bug 1431977
Change-Id: Ic9c54328a213fca938fd0c197ae919ba6942c435
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/350984
Reviewed-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Revised system edp software framework has been put in place. This
patch removes old system edp client code from pwm backlight driver.
Bug 1431977
Change-Id: I95febcc2662ea4d13c7a7da1545bf55d3c67efbb
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/350986
Reviewed-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
This is the 3.10.24 stable release
Change-Id: Ibd2734f93d44385ab86867272a1359158635133b
|
|
commit 185d91442550110db67a7dc794a32efcea455a36 upstream.
The driver supports 16-bit brightness values, but the value returned
from get_brightness was truncated to eight bits.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
commit ad5066d4c2b1d696749f8d7816357c23b648c4d3 upstream.
Make sure to honour gpio polarity also at remove so that the backlight is
actually disabled on boards with active-low enable pin.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
Move extern sd_brightness to dc.h, so display related
driver can avoid extern variable usage.
Bug 1371533
Change-Id: I785dc1e0085ace74d2463bf70512f964ff80ef65
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/335323
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
commit 9d3fde86b15303decea632c929fbf1f3ae4501f2 upstream.
Move probe out of __init section and don't use platform_driver_probe
which cannot be used with deferred probing.
Since commit e9354576 ("gpiolib: Defer failed gpio requests by default")
this driver might return -EPROBE_DEFER if a gpio_request fails.
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
This change prevented 25x16 panel from booting.
This reverts commit 30014ab843618322bb487e1e9e52edec3dfac4b6.
Change-Id: I0e41b1215772938be54faea6e5884177184c4036
Reviewed-on: http://git-master/r/309812
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
|
|
Add DT entry for PWM controller and Backlight for NVIDIA's
Tegra 114,124 SoCs.It has 4 PWM controllers.
Bug 1256106
Change-Id: Ia927d3231db1a07490b5027c1f23d8e736173f30
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/299035
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Change-Id: I8175ce4f705de7185e2dfb299ecb74e1f91d515d
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/301697
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Implements EDP client for TN8 & Shield ERS backlight system
Bug 1359894
Bug 1358209
Change-Id: I4ca1e49d18f9b91d2a6be55235f82bd3f4681ac5
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/299293
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
|
|
- explicitly disable backlight before suspend
- power gate pad after panel power gate
Bug 1341152
Change-Id: Ibf664efc3db371d09ac6f380706528b139eafce5
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/256835
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
|
|
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
|
|
Implements EDP client for Atlantis & Ceres backlight system
Bug 1266737
Change-Id: I236a4e9f4e17b50b9ee068c80e91411e3edd3a8e
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/221554
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
|
|
|
|
Bug 1277049
Change-Id: I003e7c60ef75da76e9bc89490ecbf0fcc908d5e6
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/228612
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
|
|
Change backlight setting behavior to the following:
1) Compare requested brightness with available EDP states
2) Request the next higher EDP state from EDP manager
3) Set brightness to min(requested brightness, approved brightness)
Bug 1276795
Change-Id: I77ddc2f74bcd3e848bb8d4df59f524f871db7557
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/222671
(cherry picked from commit 5a3e41592a9e41b9992f2f80437d7b7195f0fe24)
Reviewed-on: http://git-master/r/226777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Tested-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
|
|
Add parameter for pwm_gpio if the pwm pin is on a GPIO
Doing this will allow us to keep the backlight on during boot
Bug 1219004
Change-Id: Ic159933aaf4fdebbd8ea36e2960ff83dfb5fcab5
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/191821
(cherry picked from commit ef2e28d75508211baa47e0fd49505818681f08e4)
Reviewed-on: http://git-master/r/201657
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|
|
The brightness settings does not correctly reflect the E-state changes -
fixing this.
- On E-state request: brightness is set according to the approved
E-state
- On throttle/promotion: brightness is changed according to the new
E-state
Change-Id: I0c9ce9bbda5f00109841505a8d2b4cbfb8009721
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220252
(cherry picked from commit 6caf157dbd6f285cb64951b100763c836adcd5c2)
Reviewed-on: http://git-master/r/220953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
-panel driver support
-backlight ic support
Bug 1253675
Change-Id: Ie5314c384ff7b4a4de5833082a2dcb0ccca0cdce
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/217387
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
|
|
Change-Id: I84e0644bad4744eba322613231d7c4058dc24469
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/212264
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|
|
The driver does not return error when its E-state request is not
successful - fixing this.
Change-Id: I28c31e6b250cd123b02379f769532021b6812e2a
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit 1f86c7b80080bf1d204f4b92a38f07c6a9b5a1e1)
Reviewed-on: http://git-master/r/212593
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Using correct types for variables
Change-Id: Icc13649bd5ca44c4c2e33e2c051883248cef9503
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit c94cb9bc42c6062c21d8a9a62da1faeb32f55021)
Reviewed-on: http://git-master/r/212592
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Backlight set done if panel is powered
bug 1256646
Change-Id: I4a40c0e92a749c02c31b6de38cf368c5922f0c86
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/211498
|
|
Bug 1216857
Change-Id: I2ec1a393769804d73191d690d8340c30885e16ae
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/199925
(cherry picked from commit 82de53cdad7de223cfefc9b5e33b370bd5c18957)
Reviewed-on: http://git-master/r/204954
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
|
|
The min and max priority constants are defined incorrectly (in the wrong
order). This patch corrects it and updates the affected drivers and
platform data.
Change-Id: Ie58742a85e4db96faf5b379384c59053a9716b64
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/198022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
|
|
Change-Id: I637451800cd217a0d71e7e17c064d1b6ed238733
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/190599
(cherry picked from commit 1ff4d4f7911fd9bd644fe05bdeae5b56e6dec942)
Reviewed-on: http://git-master/r/191918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Include backlight in GCOV profiling when enabled by defconfig.
Change-Id: I651421fe1d3fa97d509bc5bc32f0eec06ce295d6
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/190005
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
|
|
Added EDP support for MAX8831 backlight chip
Bug 1159966
Change-Id: Ie4553c054caeac6e7ff58ca7ac4cca9ed0f3eced
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174234
(cherry picked from commit 1f44ec8a6adc31a6de13db85a437617883bff71d)
Reviewed-on: http://git-master/r/189883
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
bug 1057856
Change-Id: I592f61432d4f628618fdf7420e29ff3f5e26046a
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/160406
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
PRISM is enabled and includes backlight adjustments
for LG 5" panel to ensure a linear backlight ramp up.
Bug 1047558
Bug 1027942
Reviewed-on: http://git-master/r/142749
(cherry picked from commit 4064265fc7569fdc4b71e0847070e982bc78d5c4)
Change-Id: I5552635b93dc60810a6c4e9d07d55dfa8384984f
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/147349
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
|