Commit Graph
1204 Commits
Author SHA1 Message Date
Konstantin Makariev ec79d98bce disp: msm: add display frequency change notification
Added notifier to inform registered consumers about display changing
frequency.

Change-Id: Ic619b233a03f002862d059bfea671d7b2c5807af
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1465621
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit c69b88c83b5780c3ce858dbf362e0aa4a92b8c67)
Reviewed-on: https://gerrit.mot.com/1467534
Submit-Approved: Qiang Nie <nieqiang@motorola.com>
Tested-by: Qiang Nie <nieqiang@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509822
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
a7301c 873665656a Revert "Revert "disp: msm: sde: update splash resource allocation for dual display""
Which causes dsi errors and white display:
+++Backtrace as below++++
01-01 00:48:06.812     0     0 I         : clk_branch_toggle+0x138/0x180
01-01 00:48:06.812     0     0 I         : clk_branch2_enable+0x28/0x38
01-01 00:48:06.812     0     0 I         : clk_core_enable+0x154/0x378
01-01 00:48:06.812     0     0 I         : clk_enable+0x2c/0x98
01-01 00:48:06.812     0     0 I         :
dsi_link_hs_clk_start+0x190/0x2b0
01-01 00:48:06.812     0     0 I         :
dsi_display_link_clk_enable+0x80/0x1f8
01-01 00:48:06.812     0     0 I         :
dsi_clk_update_link_clk_state+0x108/0x2c0
01-01 00:48:06.812     0     0 I         :
dsi_recheck_clk_state+0x238/0x4b8
01-01 00:48:06.812     0     0 I         : dsi_clk_req_state+0x1e8/0x260
01-01 00:48:06.812     0     0 I         :
dsi_display_clk_ctrl+0x44/0xa8
01-01 00:48:06.812     0     0 I         :
dsi_display_prepare+0x86c/0xba0
01-01 00:48:06.812     0     0 I         :
dsi_bridge_pre_enable+0x234/0x818
01-01 00:48:06.812     0     0 I         :
drm_bridge_pre_enable+0x34/0x40
01-01 00:48:06.812     0     0 I         : complete_commit+0x468/0xc18
01-01 00:48:06.812     0     0 I         :
_msm_drm_commit_work_cb+0x17c/0x308
01-01 00:48:06.812     0     0 I         : kthread_worker_fn+0x114/0x1f8
01-01 00:48:06.812     0     0 I         : kthread+0x128/0x138
01-01 00:48:06.812     0     0 I         : ret_from_fork+0x10/0x1c
01-01 00:48:06.812     0     0 I         : irq event stamp: 0
01-01 00:48:06.812     0     0 I         : hardirqs last  enabled at
(0): [<0000000000000000>]           (null)
01-01 00:48:06.812     0     0 I         : hardirqs last disabled at
(0): [<ffffff98feab7234>] copy_process+0x5f4/0x1bf8
01-01 00:48:06.812     0     0 I         : softirqs last  enabled at
(0): [<ffffff98feab724c>] copy_process+0x60c/0x1bf8
01-01 00:48:06.812     0     0 I         : softirqs last disabled at
(0): [<0000000000000000>]           (null)
01-01 00:48:06.812     0     0 W         : ---[ end trace
c6c359a711660861 ]---
01-01 00:48:06.817     0     0 E         : [drm:dsi_link_hs_clk_start]
*ERROR* [msm-dsi-error]: Failed to enable dsi byte clk, rc=-16
01-01 00:48:06.826     0     0 E         : [drm:dsi_link_hs_clk_start]
*ERROR* [msm-dsi-error]: failed to enable link HS clks, rc = -16
01-01 00:48:06.836     0     0 E         :
[drm:dsi_display_link_clk_enable] *ERROR* [msm-dsi-error]: failed to
turn on master hs link clocks, rc=-16
01-01 00:48:06.847     0     0 E         :
[drm:dsi_clk_update_link_clk_state] *ERROR* [msm-dsi-error]: failed to
start link clk type 2 rc=-16
01-01 00:48:06.857     0     0 E         : [drm:dsi_recheck_clk_state]
*ERROR* [msm-dsi-error]: failed to update clock state, rc = -16
01-01 00:48:06.867     0     0 E         : [drm:dsi_clk_req_state]
*ERROR* [msm-dsi-error]: Failed to adjust clock state rc = -16
01-01 00:48:06.876     0     0 E         : [drm:dsi_display_clk_ctrl]
*ERROR* [msm-dsi-error]: failed set clk state, rc = -16
01-01 00:48:06.885     0     0 E         : [drm:dsi_display_prepare]
*ERROR* [msm-dsi-error]: [qcom,mdss_dsi_mot_boe_269_800x600_cmd_v2]
failed to enable DSI link clocks, rc=-16
01-01 00:48:06.904     0     0 E dsi_pll_7nm_lock_status: DSI PLL(1)
lock failed, status=0x00000000
01-01 00:48:06.911     0     0 E dsi_pll_enable: PLL(1) lock failed
01-01 00:48:06.916     0     0 E vco_7nm_prepare: pll(1) enable failed,
rc=-110
01-01 00:48:06.921     0     0 E         : [drm:dsi_link_hs_clk_start]
*ERROR* [msm-dsi-error]: Failed to prepare dsi byte clk, rc=-110
01-01 00:48:06.931     0     0 E         : [drm:dsi_link_hs_clk_start]
*ERROR* [msm-dsi-error]: failed to prepare link HS clks, rc = -110
01-01 00:48:06.941     0     0 E         :
[drm:dsi_display_link_clk_enable] *ERROR* [msm-dsi-error]: failed to
turn on master hs link clocks, rc=-110
01-01 00:48:06.952     0     0 E         :
[drm:dsi_clk_update_link_clk_state] *ERROR* [msm-dsi-error]: failed to
start link clk type 2 rc=-110
01-01 00:48:06.963     0     0 E         : [drm:dsi_recheck_clk_state]
*ERROR* [msm-dsi-error]: failed to update clock state, rc = -110
01-01 00:48:06.972     0     0 E         : [drm:dsi_clk_req_state]
*ERROR* [msm-dsi-error]: Failed to adjust clock state rc = -110
01-01 00:48:06.982     0     0 E         : [drm:dsi_display_clk_ctrl]
*ERROR* [msm-dsi-error]: failed set clk state, rc = -110
01-01 00:48:06.991     0     0 I [drm:dsi_panel_post_unprepare]
[msm-dsi-info]: (mipi_mot_cmd_boe_800x600_269)+
+++
This reverts commit 1195a394b1.

Change-Id: I836e6496181c517c5995f53c68fd4856b00425b3
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509821
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:43:20 -03:00
zhanggb e2487cf114 Kernel/Display: mot extend code: get lcd para
Use below command to get current dsi panel command:
adb shell "cat /sys/devices/platform/soc/soc:qcom,dsi-display-primary/
dsi_display_parse_para"

Change-Id: I7d3624da8cffc4ae4b42054c323d9ecfa6caa5c3
Reviewed-on: https://gerrit.mot.com/1464821
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509820
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
zhanggb d0ce7b4621 Kernel/display: mot extend - early power
Control early power feature useing another dts property as this
feature currently has affect on 60/90hz FPS switch.

Change-Id: Iddc603707e92e788ee2a21c741c8d920101a23ed
Reviewed-on: https://gerrit.mot.com/1463780
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509819
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
zhanggb 525a1ae97a Kernel: Add Moto extern display code
[1]Add dsi early power feature
Add a interface to power on display panel before powermanager resume to
accelerate the display resume speed in some circumstance such as fringer
print wakeup.

[2]Debug tool - parse lcd para from debug file
Add a parse function to get lcd bringup parameters from file in
/vendor/firmware/. This help vendor engineer to debug lcd issue without
requiring moto engineer to bulid new dtbo or boot image.

1.Please push lcd para file lcd-paras.txt to /vendor/firmware/
2.Below command can update lcd paras:
  adb shell "echo 0 > /sys/devices/platform/soc/soc:qcom,dsi-display/
  dsi_display_parse_para"
3.Below command can check new command from kernel log:
  adb shell cat /sys/devices/platform/soc/soc:qcom,dsi-display/
  dsi_display_parse_para

Change-Id: Icdadde6f0405eea05f597a370d9f29dceb59ccb3
Reviewed-on: https://gerrit.mot.com/1459091
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509818
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 08cb2e7e51 disp: msm: implement xxx-hbm-is-51cmd dts entry
Add qcom,mdss-dsi-panel-hbm-is-51cmd to panel's dts to indicate
that the HBM command is using the same backlight command 0x51 command.
Therefore when the HBM is on, then the backlight level will be saved
and backlight command will be ignored. When the HBM is off then stored
backlight level will be set

Port from 9bafa67

Change-Id: I856b0b27c282eae504b924753c267084488d71ab
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1445363
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509817
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen df88a52787 disp: msm: fix checking returned value of xx_cmd_transfer
Change the checking returned value of dsi_ctrl_cmd_transfer(), because
if this is a read command then it will return the number byte of
reading when reading succeed. If this is a write command, then it
will return "none-zero" for failure.

Port from: 01f1152

Change-Id: I961102933e4aad3d2ec99ffaa8cf6d81adac501f
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444415
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509816
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen b0652e4563 disp: msm: Register for reboot_notifier
Since implementing the factory_kill feature, then the msm_drv needs
to register for reboot_notifier to shut down the display accordingly.

Port from: 0d7643c

Change-Id: I08a121c87e042d4ea1fcb0f1d730e0519801a8f9
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444412
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509815
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
shuoyan f849421b27 disp: msm: Support ACL when setting panel param
Support ACL when setting panel param, so user-mode can control
the enable/disable of ACL property.

Port from: e8ab06e

Change-Id: I729226e93cbc91d5f148448bcb834662543d792b
Signed-off-by: shuoyan <shuoyan@motorola.com>
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444411
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509814
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
shuoyan cd78236f57 disp: msm: Enable "val" to control HBM property
Enable "val" to update HBM property, so user-mode can control
the enable/disable of HBM property through connector property.

Port from: 236c1a8

Change-Id: I2c3c892c515f299067987d8054340b6fd0449af1
Signed-off-by: shuoyan <shuoyan@motorola.com>
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444410
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509813
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 157c665285 disp: msm: dsi: Reducing logging in dsi_panel.c
Reducing unnecessary logging in dsi_panel.c file.

Port from: 772dd12

Change-Id: I32032bf1318874f87d8c71d98d7de8529c7620ff
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509812
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen bbaae6dfcc disp: msm: dsi: Add print info for DSI_CTRL
Add the DSI_CTRL index to indicate which DSI_CTRL is enable.

Port from: 559a1c5

Change-Id: Id9a60c5cfcb5c4f7959c10987d85eb17062fa15e
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444408
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509811
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 4dc0d44e9c disp: msm : Add the ACL panel param feature
Add the ACL panel param feature which will be controlled
from the user-space

Port from: 8f42287

Change-Id: I51a2685728810ddd702af287b8b92fa2c63466cb
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444407
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509810
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 28d09dd727 disp: msm: Populate the passing panel's info from BL.
BL (bootloader/EUFI) will read the panel information such as panel's
ID and it will pass this information and panel's name in the devtree.
The display driver will populate these information and store in the
sysFS

Port from: 13ff4ce

Change-Id: I389d32ffad1097bf5a2d10517f2ad6f980923958
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444406
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509809
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen a6746e2c53 disp: msm: Set panel enable_status during probing
Set the panel's enable_status when the panel's cont_splash_enable
feature is set.

This dsi_display_enable_status() API will provide the panels
information such as the panel_name, probe information
and panels's enable/disable information to the touch driver.

Port from: e85045f

Change-Id: I3833ef7e9fbb9521060b1b84b87c9d3ce191e9a7
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509808
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Konstantin Makariev 7dfd13f4f6 disp: msm: Add panel name to enable status API
Adding a name to DSI panel enable status API

Port from: 19802f4

Change-Id: I250687024140431a2b408f869d09f56140503de5
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444404
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509807
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 77367de2e1 disp: msm: Report panel's probe status
Panel API need to report probe status in order for consumer to
determine panel's presence

Port from: 834d504

Change-Id: I971b6ea68f97fb047e0c3f62ec23ae042c4b21d6
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444403
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509806
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 56c5402186 disp: msm: provide API to query for panel enable state
This dsi_display_is_panel_enable(int panel_index) API will take in
panel_index equal 0 for Primary and 1 for Seconday display. It will
return TRUE if the panel is ON or FALSE when it's OFF

Port from: 255270c

Change-Id: Idbc4cc507336104d941a6b2868f9bdf47e5bdaa2
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444402
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509805
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen e51b9ece31 disp: msm: Correct the panel's LP11_INIT
QCOM has panel's LP11_INIT implementation, but it doesn't meet MOT's
panel spec.

Here is QCOM's implementaion:
- Init the DSI PHY, Turn on panel's POWER, Toggle Reset, and sending
  MIPI commands

Here is MOT's LP11_INIT panel spec:
- Init the DSI PHY ( MIPI lines in LP00), Turn on panel POWER,
  Bring MIPI lines to LP11, Toggle Reset, Sending MIPI commands

Port from: 4cea9bb

Change-Id: I0979e4bcb3c8f0404e6e4b1f2011256394626f31
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444414
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509804
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen a07dfdc7ca disp: msm: Adding KMS property testing for motUtil tool
Adding the KMS property (HBM/ACL) testing functionality to
motUtil tool so these KMS property can be tested and verified as
standalone without supporting of the Android FW apk.

Port from: b345943

Change-Id: I825a1450f5b151025cc005fe45748bbae40c30bc
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444401
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509803
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen fa247f6d83 disp: msm: add panel's param feature to display FW
Add the display's param feature such as HBM, ACL, or CABC feature to
display framework

Port from: f988eb8

Change-Id: I445ea7e58188d2354888e2202ed7119bf2e55fc9
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444400
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509802
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen e0ac15bcc0 disp: msm: Provide a dynamic method to disable the ESD.
Providing a dynamic method to disable ESD detection and recovery with UTAGS.

Port from: 1adab9a

Change-Id: I767666d2e802e40af9c8f3508e84b76df365ea38
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444399
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509801
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 912a0498c8 disp: msm: Add DispUtil tool to motUtil Debugfs
Add the Display Utility(DispUtil) support to the motUtil Debugfs Framework.
This dispUtil tool will send a command from the motUtil debugfs to the panel
or it can read any information from panel back.
The 1st byte (set to 0) will indicate for the displUtil tool.

DispUtil Format:

1st         2nd         3rd    4th  5th       6th
0=DispUtil  0=Pri Disp 0=write 0=HS 0=DCS     number byte to read
            1=Sec Disp 1=read  1=LP 1=Generic

7th        8th         9th....
payldLen_u payldLen_l  payload

Port from: 79ee37d

Change-Id: Ib95d46342915543f942926df167e915cdd733252
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444398
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509800
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 2e4c31c1e8 disp: msm: sde: Add motUtil Debugfs framework
Adding the motUtil debugfs in /d/dri/0/debug to provide a tool for
developer/tester to interface with the Display driver framework

Port from: 11cb128

Change-Id: I5a385f9f789b56f7a36bde865234325039ec5e36
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444397
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509799
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 197a688b67 disp: msm: dsi: Raise BUG for continous panel recovery failure
After the ESD detection and recovery keep trying to recover panel, but
after 5 times, unsuccessfully recovery the panel, then cal BUG to reboot
the phone.

Port from: 9a4d104

Change-Id: Ibd1aa3e4d83638c029c163fe1de88d7ef4ba5fe2
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444396
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509798
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 2d60cf1313 disp: msm: dsi: Trigger ESD event if display isn't on
Check display turns on  during the display resume. If it doesn't, then
trigger the ESD to restart the panel, instead waiting until the ESD
thread starts, detects, and perform ESD recovery.

Port from: f1cfef0

Change-Id: Ib7c0f2451b5e5cf1630b6335ac1d7ce1ff332d22
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444395
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509797
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 88ab274b03 disp: msm: dsi: Check panel's power_mode during resume
Check the panel's power_mode after it turns on, to see if the panel can turn
on correctly. If it doesn't not, then trigger the ESD recovery to fix it.

Port from: 0301a79

Change-Id: I7e6cdb099dd50559f570e201568479ba00aa0e66
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444394
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509796
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 8072f67d7d disp: msm: dsi: parsing BL setting ESD and panel
After the Boot Loader (BL) detects the panel information, or reading
the ESD UTAG setting, the BL will write these information to the DTS.
The display driver from kernel and parse and save these setting.

Port from: 61c3e44

Change-Id: I3759b73c2e1eff01269a42dfa11d20807affa17a
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444393
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509795
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen fb1d5e61d1 disp: msm: sde: Change display ESD checking interval to 8s
Change the ESD detection and recovery interval to 8 second

Port from: 1318dae

Change-Id: I530c74592941ff2cd68362224179d38df3ef8f60
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444392
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509794
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen c4ac8db3fe disp: msm: dsi: add prints for DSI/panel turning off/on
Add some pr_info to indicate the DSI and panel are turning off
and on for ESD or black screen investigation.

Port from: 6fcdea6
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>

Change-Id: I334890799fd18be9951b8d7579717d362c9878c3
Reviewed-on: https://gerrit.mot.com/1444391
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-by: Shuo Yan <shuoyan@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509793
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 82dd11b2b6 disp: msm: dsi: Add "bl_ctrl_dummy" to panel bl type
Add a new display's backlight type "bl_ctrl_dummy". With this
backlight type, the panel backlight driver will ignore any backlight
requests. This new backlight type will be used with a bare_board or
no-display configuration and the display driver doesn't need to have
any communication with panel.

Port from: cfb2acd

Change-Id: I2108d7477009d06ac350ca49c380b64c9d004f65
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1442424
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509792
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
Bang Nguyen 0ce5683cb1 disp: msm: dsi: Add support display 2bytes brightness.
Normal, there is a brightness level from 0-255 (1 byte), but some
panels are support 2 bytes for brightness, (0-1023).

Port from 68e0c10

Change-Id: Id948d3d97fb3611e458b18a3345cec6a64e5c034
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1410291
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509791
Reviewed-by: Hua Tan <tanhua1@motorola.com>
2023-06-01 00:43:20 -03:00
dengwei1 aa252c3330 guam: input add drm support
input add drm
support

Change-Id: I156438665fb27d9a1f5afeaec11ef4fd736ea812
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1510616
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:43:20 -03:00
dengwei1 fac316f8af input add touch support
touch init
himax ic

Change-Id: I260085bd4397089ca1c865e601c9ece4f87b75bc
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508817
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:43:20 -03:00
Linux Build Service Account 8c5ef45462 Merge 033018f33d on remote branch
Change-Id: I5db209235df7229391c466c250190a95742eb892
2022-12-08 03:56:50 -08:00
qctecmdr 033018f33d Merge "disp: msm: dsi: clear the panel esd_recovery_pending in power on commit" 2022-11-07 04:10:40 -08:00
Navjyot SINGH ac7d25ba6b disp: msm: dp: disable ASSR before link training
Power on reset value of DPTX_CONFIGURATION_CTRL.ASSR (alternate scrambler
seed reset) is high. This fails link training 2 with TPS4 pattern.
Change disables this before link training starts.

Change-Id: Iee95de04625658254b242afdcbba6db24a52606d
Signed-off-by: Vara Reddy <varar@codeaurora.org>
Signed-off-by: Navjyot SINGH <quic_navjsing@quicinc.com>
2022-10-19 17:19:36 +05:30
Srihitha Tangudu 093b739546 disp: msm: dsi: clear the panel esd_recovery_pending in power on commit
Currently the panel esd_recovery_pending flag is cleared for every mode
set. The ESD recovery completes only after the suspend and resume. Clear
the flag only during power on commit.

Change-Id: I97e370feba0aad34558e4675168b4bcb7f5901ca
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2022-10-05 23:21:21 -07:00
Linux Build Service Account 7904c105a6 Merge 492bde87ae on remote branch
Change-Id: I06cdd714941b55da5e8fdea9da2ce7bdebea3164
2022-09-08 06:19:50 -07:00
qctecmdr 492bde87ae Merge "disp: msm: correct dsc parameters for 8 bpc 8 bpp" 2022-08-23 05:08:59 -07:00
qctecmdr 1a9ad52708 Merge "disp: msm: use vzalloc for large allocations" 2022-08-16 05:12:57 -07:00
Linux Build Service Account 38af337c04 Merge 1d5f7b8944 on remote branch
Change-Id: Ibadaa3544b5d48265e4fe70b6fb51d022abba899
2022-08-15 02:37:31 -07:00
Raghavendra Ambadas af513b4b54 disp: msm: correct dsc parameters for 8 bpc 8 bpp
Correct DSC 1.1 rate control parameter related to
8 bpc 8 bpp configuration according to VESA DSC
specification.

Change-Id: I4b17c61f79ea2b497cbf243a2b99c9b40a9b7ea8
Signed-off-by: Raghavendra Ambadas <quic_c_rambad@quicinc.com>
2022-07-29 14:13:13 +05:30
xiangxuy 1d5f7b8944 disp: msm: dp: support dp for rb5
adjust aux channel by dts setting.
support max resolution cfg by dts.

Change-Id: I13e48630cf62edc6353f13d0f42cadb2cbd9423d
Signed-off-by: xiangxuy <quic_xiangxuy@quicinc.com>
2022-07-23 22:16:51 +08:00
Jayaprakash Madisetty 687ad854c3 disp: msm: use vzalloc for large allocations
Large allocations using kzalloc can lead to timeouts. This updates
the allocation calls accordingly to use vzalloc to remove
requirements on contiguous memory.

Change-Id: Ica54483787509ed0e9283289fc9d523e8cde9238
Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
2022-07-13 10:33:57 +05:30
Linux Build Service Account c398a97fe0 Merge ce33c52e42 on remote branch
Change-Id: I8f2753de47c90b2dd02cf004fdaed285ccb06e25
2022-03-08 23:08:09 -08:00
Raghavendra Ambadas 971ffaef06 disp: msm: sde: synx: Add quic copyright
Change fixes adding quic copyright as instructed.

Change-Id: I2331492b78c013969fa1d48e9ab9afdb03e2f999
Signed-off-by: Raghavendra Ambadas <quic_c_rambad@quicinc.com>
2022-02-07 01:25:29 -08:00
Linux Build Service Account b00c1cd755 Merge ebb5874623 on remote branch
Change-Id: I103311c66eb383b64b48eab02adfe1dcad92b597
2022-02-02 09:59:01 -08:00
qctecmdr ce33c52e42 Merge "disp: msm: sde: synx: Add quic copyright" 2022-01-30 22:25:11 -08:00
qctecmdr d82f9c01d3 Merge "disp: msm: avoid BW down vote after splash memory release" 2022-01-29 03:29:22 -08:00