]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/intel_dsi_vbt: Add support for PMIC MIPI sequences
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 Jan 2019 11:15:56 +0000 (12:15 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 9 Jan 2019 09:35:05 +0000 (10:35 +0100)
commit63be4b045900226577c971fe399d3c4734ab64ed
tree053b2b23da2eaf5abf84890eeb70cd4cd708d2ef
parent6b0c43ecddc53c5b28ae45babf5032887898f11a
drm/i915/intel_dsi_vbt: Add support for PMIC MIPI sequences

Add support for PMIC MIPI sequences using the new
intel_soc_pmic_exec_mipi_pmic_seq_element function.

This fixes the DSI LCD panel not lighting up when not initialized by the
GOP (because an external monitor was connected) on GPD win and GPD pocket
devices.

Specifically the LCD panel seems to need GPIO pin 9 on the PMIC to be
driven high, which is done through a PMIC MIPI sequence. Before this commit
if the sequence was not executed by the GOP the pin would stay low causing
the LCD panel to not work. Having the MIPI sequences properly control this
GPIO should also help save some power when the panel is off.

Changes in v2, v3:
-Only changes to other patches in this patch-set

Changes in v4:
-Move decoding of the raw 15 bytes PMIC MIPI sequence element into
 i2c-address, register-address, value and mask into the mipi_exec_pmic()
 function instead of passing the raw data to
 intel_soc_pmic_exec_mipi_pmic_seq_element()

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190107111556.4510-5-hdegoede@redhat.com
drivers/gpu/drm/i915/intel_dsi_vbt.c