1. 29 Dec, 2015 34 commits
  2. 17 Dec, 2015 2 commits
    • Tomi Valkeinen's avatar
      OMAPDSS: DISPC: always set ALIGN when available · e5f80917
      Tomi Valkeinen authored
      By default DISPC asserts hsync and vsync sequentially, i.e. there's
      first hsync and that is immediately followed by vsync. This is the only
      available behaviour on OMAP2/3, and default behaviour on OMAP4+.
      
      OMAP4+ has ALIGN bit in POL_FREQ register, which makes DISPC assert both
      syncs at the same time.
      
      It has been observed that some panels don't like sequential syncs (AM5
      EVM's panel). After studying the datasheets for multiple panels and
      encoders, and MIPI DPI spec, it looks like there is no standard way to
      handle this.
      
      Sometimes the datasheets don't mention the required syncs behaviour at
      all, sometimes the datasheets have images that hint towards simultaneous
      syncs, and sometimes it is explicitly mentioned that simultaneous syncs
      are needed. No panels or encoders requiring sequential sync was found.
      
      It thus seems to be safe to default to simultaneous syncs when the ALIGN
      bit is available. This fixed AM5 EVM's panel, and no side effects have
      been observed on other panels or encoders.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      e5f80917
    • Dave Gerlach's avatar
      OMAPDSS: adopt pinctrl support · 5038bb8c
      Dave Gerlach authored
      Update omapdss driver to set the state of the pins to:
      - "default on resume
      - "sleep" on suspend
      
      By optionally putting the pins into sleep state in the suspend callback
      we can accomplish two things.
      - minimize current leakage from pins and thus save power,
      - prevent the IP from driving pins output in an uncontrolled manner,
      which may happen if the power domain drops the domain regulator.
      Signed-off-by: default avatarDave Gerlach <d-gerlach@ti.com>
      Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      5038bb8c
  3. 15 Dec, 2015 4 commits
    • Robert Jarzmik's avatar
      video: fbdev: pxafb: initial devicetree conversion · 420a4882
      Robert Jarzmik authored
      This patch brings a first support of pxa framebuffer devices to a
      devicetree pxa platform, as was before platform data.
      
      There are restrictions with this port, the biggest one being the lack of
      support of smart panels. Moreover the conversion doesn't provide a way
      to declare multiple framebuffer configurations with different bits per
      pixel, only the LCD hardware bus width is used.
      
      The patch was tested on both pxa25x, pxa27x and pxa3xx platform (namely
      lubbock, mainstone and zylonite).
      Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      420a4882
    • Robert Jarzmik's avatar
      video: fbdev: pxafb: loosen the platform data bond · f3621a60
      Robert Jarzmik authored
      In order to prepare the transition to a mixed platform data and
      device-tree initialization, remove all the platform data references all
      over the driver.
      
      Copy the platform data into the internal structure of the pxafb, and
      only use this afterward.
      Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      f3621a60
    • Ezequiel Garcia's avatar
      fbdev: Make fb-notify a no-op if CONFIG_FB=n · 5ec96538
      Ezequiel Garcia authored
      There's no point in having support for framebuffer notifications
      is CONFIG_FB is disabled. This commit adds the necessary stubs
      for code to link properly when CONFIG_FB=n and moves fb-notify.o
      to be built only when CONFIG_FB=y.
      Signed-off-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      5ec96538
    • Daniel Vetter's avatar
      fbdev: Debug knob to register without holding console_lock · c3c296b0
      Daniel Vetter authored
      When the usual fbcon legacy options are enabled we have
      ->register_framebuffer
        ->fb notifier chain calls into fbcon
          ->fbcon sets up console on new fbi
            ->fbi->set_par
              ->drm_fb_helper_set_par exercises full kms api
      
      And because of locking inversion hilarity all of register_framebuffer
      is done with the console lock held. Which means that the first time on
      driver load we exercise _all_ the kms code (all probe paths and
      modeset paths for everything connected) is under the console lock.
      That means if anything goes belly-up in that big pile of code nothing
      ever reaches logfiles (and the machine is dead).
      
      Usual tactic to debug that is to temporarily remove those console_lock
      calls to be able to capture backtraces. I'm fed up writing this patch
      and recompiling kernels. Hence this patch here to add an unsafe,
      kernel-taining option to do this at runtime.
      
      Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: linux-fbdev@vger.kernel.org
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      c3c296b0