msm8916-mainline / linux-mdss-dsi-panel-driver-generator

Generate Linux DRM panel kernel driver based on QCOM MDSS DSI device tree
GNU General Public License v2.0
53 stars 33 forks source link

panel: support bl_ctrl_dcs_l backlight type #31

Open z3ntu opened 1 year ago

z3ntu commented 1 year ago

As seen on lg-lenok lgd_lg4237_cmd panel.


Obviously a very bad draft for now. As seen in https://android.googlesource.com/kernel/msm/+/52edb91eb65ab5e84fd98061057d3ffa2074ffc1 to handle it properly we'd need to add a new variant of mipi_dsi_dcs_set_display_brightness that has a payload of 3 bytes, with a zero byte at the end. Curiously setting backlight brightness seems to work correctly with this variant on lenok also. Need to test if any behavior changes with the "long" command variant.