1. Apr 20, 2022
  2. Apr 19, 2022
  3. Apr 15, 2022
  4. Apr 14, 2022
  5. Apr 13, 2022
    • Marek Vasut's avatar
      drm/panel: lvds: Use bus_flags from DT panel-timing property · 83c784e7
      Marek Vasut authored
      
      
      This driver currently rewrites bus_flags based solely on the value of
      DT property 'data-mirror' and ignores bus_flags which might have been
      set in DT panel-timing node. Specificaly, the 'de-active' DT property
      sets DRM_BUS_FLAG_DE_ bus_flags.
      
      Since of_get_drm_panel_display_mode() conveniently parses the bus_flags
      out of DT panel-timing property, just ORR them with bus_flags inferred
      from 'data-mirror' DT property and use the result as panel bus_flags.
      
      This fixes handling of panels with 'panel-timing { de-active = <1>; };'.
      
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested-by: default avatarChristoph Niedermaier <cniedermaier@dh-electronics.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Dmitry Osipenko <digetx@gmail.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Robert Foss <robert.foss@linaro.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      To: dri-devel@lists.freedesktop.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20220401162154.295152-2-marex@denx.de
      83c784e7
    • Marek Vasut's avatar
      drm/panel: lvds: Simplify mode parsing · 03fa454b
      Marek Vasut authored
      
      
      The mode parsing is currently implemented in three steps:
      of_get_display_timing() - DT panel-timing to struct display_timing
      videomode_from_timing() - struct display_timing to struct videomode
      drm_display_mode_from_videomode() - struct videomode to struct drm_display_mode
      
      Replace all that with simple of_get_drm_panel_display_mode() call,
      which already populates struct drm_display_mode and then duplicate
      that mode in panel_lvds_get_modes() each time, since the mode does
      not change.
      
      Nice bonus is the bus_flags parsed by of_get_drm_panel_display_mode()
      out of panel-timing DT node, which is used in subsequent patch to fix
      handling of 'de-active' DT property.
      
      Tested-by: default avatarChristoph Niedermaier <cniedermaier@dh-electronics.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Dmitry Osipenko <digetx@gmail.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Robert Foss <robert.foss@linaro.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      To: dri-devel@lists.freedesktop.org
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220401162154.295152-1-marex@denx.de
      03fa454b
    • Marek Vasut's avatar
      drm: bridge: icn6211: Convert to regmap · fb47723a
      Marek Vasut authored
      
      
      To make debugging easier, convert driver to regmap. Implement read and write
      regmap tables for known registers, keep all known register readable and mark
      those which are obviously read-only as not writeable.
      
      Use common I2C regmap for the I2C configuration, implement custom regmap bus
      for DSI configuration. The later is mandatory as this chip requires one extra
      byte set to read access length between register address and data.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Maxime Ripard <maxime@cerno.tech>
      Cc: Robert Foss <robert.foss@linaro.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      To: dri-devel@lists.freedesktop.org
      Acked-by: default avatarMark Brown <broonie@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220403171004.368464-1-marex@denx.de
      fb47723a