Commit graph

2,271 commits

Author SHA1 Message Date
tinno64
d67e46e138 gpu/msm: check fps value before enable lhbm
Don't allow lhbm enable under specific fps, such 48hz.
If enable lhbm when fps is 48hz, screen will flicker due to
hardware limitation.
So check fps value before enable lhbm.
refer to https://gerrit.mot.com/#/c/2383010/

Change-Id: I0c9b6bc3a42c7eb83c0df73c9453892098e9c0cf
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2616578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-23 06:57:41 -05:00
tinno64
2b9042f881 msm/display-drivers: release lhbm resource
Malloc the memory when panel init.
So must free the memory when panel put.

refer to https://gerrit.mot.com/#/c/2377115/

Change-Id: I4a2fde8ca012ad17cc0572bb739c31941d4a4f47
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2615038
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-19 04:41:22 -05:00
tinno64
c7427915c7 dsi/dfps: update the dfps code to support "OLED+vid mode"
1.send cmd with async mode to switch fps
2.start to update timing when get TE signal

refer to https://gerrit.mot.com/#/c/2405274/

Change-Id: I027ac0c07fc6eb8a49a4072ad65aeac5f6de4289
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2603801
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-15 01:30:38 -05:00
tinno64
146c63d824 dsi/dfps: set the right fps when panel resume
When panel resume ,HWC will set the fps from the last suspend to panel.
If the panel is not the fps from init code.
We will set the right fps with dsi_panel_dfps_send_cmd().

refer to https://gerrit.mot.com/#/c/2386399/
         https://gerrit.mot.com/#/c/2419816/

Change-Id: I5a5b7d07daa1806852be69923e6f0993f07e2640
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2603896
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-15 10:40:38 +08:00
tinno64
d314cb28a3 Support 120Hz command sending
Some panels need send command to DDIC.
    That TP can get the current refresh rate.
    Or Switch GAMMA for OLED.

refer to https://gerrit.mot.com/#/c/2340396/

Change-Id: Ie2d35432173a5c28608364ef1523f228bd9546f5
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2603583
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-15 10:40:38 +08:00
tinno64
c1d1d1151e dts/display: [bangkok] update the dsc configure for tianma panel
Support the dsc parameter from novateck

refer to https://gerrit.mot.com/#/c/2405493/

Change-Id: I1b7f95937ef6305ca37094d8896a46e4d70c633e
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2573598
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
tinno64
1b287a4b61 display-drivers: local hbm: add suport for dc_hybird_threshold
For bangkok, there is a threshold that swith hybird mode to DC mode.
When backight is not large than this threshold, we must set the register(0x51)
to the threshold, let backlight enter DC mode.

Change-Id: I0aecbb42c9046a10bd1e907f9e6508d5687503dd
Signed-off-by: tinno64 <tinno64@motorola.com>
Reviewed-on: https://gerrit.mot.com/2550939
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
hq_caoqunhui_tmp
f5e340052d optimze lcd log
Details:
optimze lcd log

Change-Id: I07e085b0df39fa07c00838fa3a7df58393b6fb54
Reviewed-on: https://gerrit.mot.com/2452094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
longch98
583452c1f3 kernel:pnangn:update 2nd panel brightness settings to 11bits
pnangn:update 2nd panel
 brightness settings to 11bits

Change-Id: I945dc7db9bf0eabfc30250e13f38f775a523c5ed
Signed-off-by: longch98 <longch98@motorola.com>
Reviewed-on: https://gerrit.mot.com/2432251
SLTApproved: Slta Waiver
Reviewed-by: Jing Hu <hujing3@lenovo.com>
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
djw
f059348756 kernel/panel:power on/off reset sequence
pnangn:fix power on/off reset sequence
add power off reset always on and power off pull down

Change-Id: I9eb112f99be8f0fe4eaecb295b8f7d8a5728fd72
Signed-off-by: djw <longc143@motorola.com>
Reviewed-on: https://gerrit.mot.com/2380613
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
hujing3
34271928bb display/backlight: support hbm dcs only with 51 cmd
some product use 51 cmd to support HBM,
shouldn't reset brightness when hbm on

Change-Id: Ia2db13dfc3f131f9137bbb6f9ee6cd80406b7a8f
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2376249
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
hujing3
031a6e371f display/dsi:add new lcd backlight align type for bit11_4
display/backlight:
add new lcd backlight align type for bit11_4

Change-Id: I4f17cd5bc0668d49c998d322abd44908c4be1dce
Signed-off-by: hujing3 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2368834
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
hq_caoqunhui_tmp
6416a48b6b display: The lcd backlight shift mode update
Modify:
    Update lcd backlight shift mode for the 2nd supply

Change-Id: If70bdbc3c1320a733cd32ede8e0cc64b0cc76cc3
Signed-off-by: hq_caoqunhui_tmp <caoqunhui@huaqin.com>
Reviewed-on: https://gerrit.mot.com/2362677
Reviewed-by: Hua Tan <tanhua1@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
zhanggb
0620256fb4 drm_ioctl: add return value for set_param
DC mode will not be set properly if sde_kms_set_panel_feature does
not return error value when it fails.

Change-Id: I49d38a22f4c78406085888a07cf71dc056223651
Reviewed-on: https://gerrit.mot.com/2362283
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
wangyq13
483fe19458 drm/dsi_panel: resend hbm off commands
drm:
resend hbm off commands, sometimes lhbm is not closed successfully,
send again to reduce the possibility.

Change-Id: I23d2f23bc9920f1c824e2af50229d62d2d27c906
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2334757
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: <lvxj4@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:50 +08:00
Xiaojun Lv
3ceb892a70 msm/drm:compatible with different hbm table in panel
msm/drm:
according panel_ver compatible with different hbm table in panel

Change-Id: I9eb47dab28d7b38d5687be0b322493347478f22f
Reviewed-on: https://gerrit.mot.com/2309365
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
Xiaojun Lv
6d698433e1 drm/msm:add delay between mipi0 to reset0 when power off
drm/msm:
add delay between mipi0 to reset0 when power off

Change-Id: I16e754492482abf64551471bbaac7574685267a8
Reviewed-on: https://gerrit.mot.com/2300466
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
641084c375 drm/panel: check panel status before send custom commands
drm/panel:
Check whether panel is ready, before send custom command.
Otherwise, try to enable dsi,but actually fail.

Change-Id: Ia34efc2a6fe386e4d713303ce52248ebeb62c5a8
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2285035
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
5b8a3db8a2 msm/drm: use drm ioctl to set panel feature
msm/drm:
Use drm ioctl to set panel feature, avoid panel features
are not set instantly.

Change-Id: I6779c3b665f4b887a00cf41bb818ae03917755ac
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2270744
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
tanhua1
426f309830 display: fix Local hbm restore '0' backlight level issue
sometimes,finger unlock, turn on FOD HBM first, and the
turn on the backlight, this caused the restore '0' brightness
that screen can not be turned on.

Change-Id: I450373a5b50d30e2147a0a6534bdec007a12b60f
Signed-off-by: tanhua1 <tanhua1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2274898
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wingte48
25c2a63dd5 kernel/display : Add dsi pps disable configuration function
Modify:
  some panel ICs can't decode platform pps code, use panel's own pps
parameters.So add this feature do disable platform sent pps.

Change-Id: I95926e86f12c3486aa3ebc684a872d7e3fe7d6f2
Reviewed-on: https://gerrit.mot.com/2205094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2273817
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
2023-05-06 10:01:49 +08:00
tanhua1
73f16f7298 display: support local hbm alpha configuration of panel
The configuration of the mask aplha of the local hbm
is based on the DBV level to ensure that the brightness
of local hbm on or off is consistent.

Change-Id: I68a7a233a27549db0582a6f07d7a421ed400f3d2
Signed-off-by: tanhua1 <tanhua1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2238455
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
4b99996f20 Revert "(CR) Revert "disp: msm: dsi: Support uncompressed rgb101010 format""
This reverts commit a4009b4f3de5134a2e2e71d15dfae627b942d72c.
Qcom has the format patch , so we revert this workaround solution.
Mot-CRs-fixed: (CR)

Change-Id: I3c5e94d8a8d5b408f49a69b8d2fdc77a38cc4ed8
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2193964
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Liyun Zhang <zhangly19@lenovo.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
zhangly19
c36f5439e8 Revert "disp: msm: dsi: Support uncompressed rgb101010 format"
This commit caused Rhode5G+ display issue

This reverts commit c56edb2f47.

Change-Id: I5779fb1b92ac00c386c286760bf5dc38a8157ac5
Reviewed-on: https://gerrit.mot.com/2189888
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Tested-by: Jira Key
Submit-Approved: Liyun Zhang <zhangly19@lenovo.com>
2023-05-06 10:01:49 +08:00
houdz1
b307571af9 msm/dsi: phy_v3.0: get strength volue of phy from dtsi
Some project need to change the strength volue of phy,
to fix the RF issue.So we can define the strength at the panel dtsi file.

Change-Id: I9b3fb6e741798ac6ef5ec3921875a9975ce88e9f
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2160545
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
1e339b7f38 drm/dsi_panel: send specific demura command when bl change
dsi_panel:
Send specific demura commands when brightness changes.
This is panel IC limitation, it can't change demura parameters
automatically when 51 reg value changes.
MTK changes: https://gerrit.mot.com/#/c/2097095/

Change-Id: Ic5b6945e1eb7c905658dfe58e6dca18a0bfeb2e9
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2152146
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
cf526d3224 msm/dsi: add shutdown function to power down panel
When shut down phone, it will call shutdown function to shut down device.
That can meet the power down timing requirements of panel.

Change-Id: If5f5eb57934559d8c6aa979431d434bf89d33de9
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2063775
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
3df6946637 drm/dsi: add keeep panel regulators always on function
drm/dsi:
Add keep panel regulators always on function when screen on/off.

Change-Id: I88e045237a149b9c4b2f908b334aa52b0c75f3be
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2049656
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
4222fb1b3d kernel: dsi: add new backlight device to avoid conflict
New added backlight wled driver uses ko, it is not be loaded at
recovery mode. If new added backlight driver uses same backlight type
as panel0-backlight, system will call panel0-backlight when ko is not
loaded, but panel0-backlight is a logical device, cause system dead.

Change-Id: I0c03905c116aae2f42e5ca11edd89035b0cadf33
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1653756
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1949836
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2046088
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
2023-05-06 10:01:49 +08:00
wangyq13
83a97f26b2 dsi: add new backlight control type I2C
dsi:
Add new backlight I2C.
Can't use WLED type, because WLED type don't consider if backlight
device is inited later then panel.

Change-Id: I1dcb4e10eaaecca8da4d44e384b1e49fb351693c
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1621694
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Jing Hu <hujing3@lenovo.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1949835
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2045804
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2023-05-06 10:01:49 +08:00
daiss1
88794fe9cb drm: Add the DC panel param feature
Add the DC panel param feature which will be controlled
from the user-space

Change-Id: Iacb5d78c3a01874b21a3ceMontanafcc8362b1b03c29
Signed-off-by: daiss1 <daiss1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2041322
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
e0977bd76c dsi_panel: remove avdd_enable and avee_enable gpios.
hange the default output voltage through I2C bus at XBL. And store the default
value to EEPROM. So we can nod make I2C operation at kernel.
Only pull up/down gpio to enable/disable regulator.
So use gpio regulator to control avee and avdd.

Change-Id: I5c9381c8304f0928ff215ac109c72eeda286cb00
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2020983
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
fe176ce302 msm/dsi: add support HBM with GPIO_DCS
For cypfq, we will set the backlight to max with dcs command.
And pull up hbm_en gpio to set the max current to 25mA.

Change-Id: I07885a122a9efc73e3f1191fa2465c0721ab9ec1
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2007805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
acd105f347 dsi_panel: add gpio to enable vsn/vsp
Use avdd_enable_gpio to enable avdd.
and Use avee_enable_gpio to enable avee.

Change-Id: I8b00588d6559e618fb4056957778d39448687b5c
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001001
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
663d13e0a0 kernel: add supports configurable Datatype of compress pixel stream
Some panel IC can not support 0x0b for compress pixel stream's DataType.
For example gc7372, it will use 0x3E for compress pixel stream's DataType.

Change-Id: Ie9bc90d79b11033414658d93e0b39137c6f4f8e0
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1976131
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
da28d89b79 Revert "(CR): drm: mipi: Disable the MIPI DSI commands 0x2E and 0x3E"
This reverts commit 98f75f797773394bdb81969aa795d3eeb68642ad.
Mot-CRs-fixed: (CR)

MIPI_DCS_READ_MEMORY_CONTINUE =0x3E
MIPI_DCS_READ_MEMORY_START =0x2C

These commands for page 0 is MIPI DCS commands.
But For other pages, these commands(0x3E,0x2C) maybe normal register.
So these codes are not right.
And we haven't get the requirement to disable 0x3E and 0x2C, SO we revert
these changes first.

Change-Id: I5e18a5e52420ceb78dc298598b097d70011151dd
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1952409
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
83d72184f0 dsi_phy_v3.0: Get strength offset from dtsi file and set
The clock and data lanes have a calibration circuitry feature. To offset the drive
strength from the calibrated value in an increasing or decreasing manner, use 6 bit two’s
complement values.

Change-Id: I1cb612b4f62ea6af07165ffd1fb8e15528200e5e
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1850370
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
f5b4d7047b msm/display: add more panel info sys node
msm/display:
Add more panel info sys node for moto care.
Use drm_conn->kdev to get
/sys/class/drm/card0-DSI-1 handle:
panelId
panelName
panelVer
panelRegDA
panelSupplier

Change-Id: Iefb5dc5816a885fda0c69700d2dd9ffe2eeb43a0
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1845582
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
81eecf4203 Revert "(CR) msm/dsi: add panel supplier sys node"
This reverts commit 97e133d11ef9a051a78cdf02b51a849997b67cec.
Create sys node under drm path.
Mot-CRs-fixed: (CR)

Change-Id: Ic11c44993f018c37c9694aee2fcc7c0e172c5fb0
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1849209
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
wangyq13
97771405ef msm/dsi: add panel supplier sys node
msm/dsi:
Add panel supplier sys node.
/sys/class/panel/.

Change-Id: I07c22bad06fa420e903ea7b8fcc2855b1ec5Montana0
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1840249
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
10928a3277 dsi: send command to notify panel when switch FPS
Some panel need send command to DDIC.
That TP can get the current refresh rate.

Change-Id: Iecd1e4675729d1f74461f8d56f8115e4808fa8e2
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1831813
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
02cf7cde50 dsi_pwr: Keep one regulator always on
Some panels must let ldo always on.
We must add "qcom,supply-always-on" in "qcom,panel-supply-entry".

Change-Id: I81669aa225df0abde26e407c391c56412ee7a109
Signed-off-by: houdz1 <houdz1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1822732
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
524826043f dsi_display: remove "MMI_STOPSHIP"
The function is ready for other project.
SO remove "MMI_STOPSHIP"

Change-Id: I33d83dc84641f6765ffd8c39cc4a01d19bcf62f6
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1812530
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
7819f82461 dsi_panel: remove MOTO_PANEL_CHECK_TOUCH_STATE
Remove MOTO_PANEL_CHECK_TOUCH_STATE, we alway compile this
code. When "tp_state_check_enable"  is define at device tree file , then
call "check_state" function to get touch state.

Change-Id: Iccdff4a408eb9ad27b71c8394b4c4a844da7b238
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1793078
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
eb4eb54d41 dsi_panel: Add support the state of the touch screen
Touch have a feature named "single tap".
    1. When the feature enbled, we can not power down panel,
        and keep rest signal high.
    2. When the feature disabled, the touch state is  0, Instead,
        the touch state is 1.
    3. Touch driver will call set() function to set the touch state,
        And panel driver will call check() function to check  state.

Change-Id: I034909007678ae940769ec8e350518185cc5fad3
Signed-off-by: houdz1 <houdz1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1784647
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: litong <litong20@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
houdz1
1339782e2c Revert "(CR) dsi: pushing display notifications"
This reverts commit 2da822bf859e4c166c09706f62292a657273104e.
From Kernel-5.4, Send panel_notify at msm_atomic.c.
So do not add this old notify method.
Mot-CRs-fixed: (CR)

Change-Id: I16778dc0a404b1ab20e59bc73a40d32385bdc01b
Signed-off-by: houdz1 <houdz1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1783211
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
shuoyan
692f073552 msm/dsi: add backlight debug log when panel is off
There have few cases which no brightnes when panel on.
Add more backlight logs to debug this issue.

Change-Id: I2c25f15f1617f894ecb84efc7c15340cbfc89ad5
Reviewed-on: https://gerrit.mot.com/1783198
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Shuo Yan <shuoyan@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
daiss1
ea3e3a4d0c msm/dsi:Modify judgment conditions,add judgments hbm2.
HBM 1 and HBM2 are assigned as HBM on.
When HBM is off, the value is HBM off.

Change-Id: Iacf17b60725dfe1d2cc2f7206063b81e2e7e98aa
Reviewed-on: https://gerrit.mot.com/1783197
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
zhanggb
e2b72b2548 dsi: fix motUtil mipi read error
MIPI_DSI_MSG_READ in msg.flags caused dsi panel detect error. Thus
motUtil mipi read block somewhere. Remove it.

Change-Id: I41efade780574893408190bf43b626fbf3b97856
Reviewed-on: https://gerrit.mot.com/1783186
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:49 +08:00
shuoyan
e63a7de99a disp:msm:dsi:add support to config dsi PHY Driver Strength
Hardware team required to set ordered DSI driver strength for
different DSI PHY.

Add support to config DSI PHY driver strength from DTSI config.

Change-Id: I60c5ee335c897d3f20dde42114798c15576cf32e
Reviewed-on: https://gerrit.mot.com/1783170
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Submit-Approved: Jira Key
2023-05-06 10:01:48 +08:00