1. 27 Jul, 2018 4 commits
    • Andrzej Hajda's avatar
      drm/bridge: tc358764: Add DSI to LVDS bridge driver · f38b7cca
      Andrzej Hajda authored
      Add a drm_bridge driver for the Toshiba TC358764 DSI to LVDS bridge.
      
      Changes in v4:
      - removed license blob,
      - ordered includes,
      - added error handling,
      - fixed reset GPIO handling,
      - added missing calls to the panel,
      - custom OF graph code replaced with helpers,
      - removed tc358764_poweroff from remove callback.
      v5:
      - fixed supply names,
      - fixed broken console - added connector to fb_helper,
      - added detach callback - unbinding works,
      - fixed typo in error checking code,
      - removed sparse bridge->encoder check - core does it already.
      Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: default avatarMaciej Purski <m.purski@samsung.com>
      [ a.hajda@samsung.com: v4, v5 ]
      Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Reviewed-by: default avatarArchit Taneja <architt@codeaurora.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180725154644.25412-6-a.hajda@samsung.com
      f38b7cca
    • Andrzej Hajda's avatar
      dt-bindings: tc358754: add DT bindings · eb91cde0
      Andrzej Hajda authored
      The patch adds bindings to Toshiba DSI/LVDS bridge TC358764.
      Bindings describe power supplies, reset gpio and video interfaces.
      Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: default avatarMaciej Purski <m.purski@samsung.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180725154644.25412-5-a.hajda@samsung.com
      eb91cde0
    • Sandeep Panda's avatar
      drm/bridge: add support for sn65dsi86 bridge driver · a095f15c
      Sandeep Panda authored
      Add support for TI's sn65dsi86 dsi2edp bridge chip.
      The chip converts DSI transmitted signal to eDP signal,
      which is fed to the connected eDP panel.
      
      This chip can be controlled via either i2c interface or
      dsi interface. Currently in driver all the control registers
      are being accessed through i2c interface only.
      Also as of now HPD support has not been added to bridge
      chip driver.
      
      Changes in v1:
       - Split the dt-bindings and the driver support into separate patches
         (Andrzej Hajda).
       - Use of gpiod APIs to parse and configure gpios instead of obsolete ones
         (Andrzej Hajda).
       - Use macros to define the register offsets (Andrzej Hajda).
      
      Changes in v2:
       - Separate out edp panel specific HW resource handling from bridge
         driver and create a separate edp panel drivers to handle panel
         specific mode information and HW resources (Sean Paul).
       - Replace pr_* APIs to DRM_* APIs to log error or debug information
         (Sean Paul).
       - Remove some of the unnecessary structure/variable from driver (Sean
         Paul).
       - Rename the function and structure prefix "sn65dsi86" to "ti_sn_bridge"
         (Sean Paul / Rob Herring).
       - Remove most of the hard-coding and modified the bridge init sequence
         based on current mode (Sean Paul).
       - Remove the existing function to retrieve the EDID data and
         implemented this as an i2c_adapter and use drm_get_edid() (Sean Paul).
       - Remove the dummy irq handler implementation, will add back the
         proper irq handling later (Sean Paul).
       - Capture the required enable gpios in a single array based on dt entry
         instead of having individual descriptor for each gpio (Sean Paul).
      
      Changes in v3:
       - Remove usage of irq_gpio and replace it as "interrupts" property (Rob
         Herring).
       - Remove the unnecessary header file inclusions (Sean Paul).
       - Rearrange the header files in alphabetical order (Sean Paul).
       - Use regmap interface to perform i2c transactions.
       - Update Copyright/License field and address other review comments
         (Jordan Crouse).
      
      Changes in v4:
       - Update License/Copyright (Sean Paul).
       - Add Kconfig and Makefile changes (Sean Paul).
       - Drop i2c gpio handling from this bridge driver, since i2c sda/scl gpios
         will be handled by i2c master.
       - Update required supplies names.
       - Remove unnecessary goto statements (Sean Paul).
       - Add mutex lock to power_ctrl API to avoid race conditions (Sean
         Paul).
       - Add support to parse reference clk frequency from dt(optional).
       - Update the bridge chip enable/disable sequence.
      
      Changes in v5:
       - Fixed Kbuild test service reported warnings.
      
      Changes in v6:
       - Use PM runtime based ref-counting instead of local ref_count mechanism
         (Stephen Boyd).
       - Clean up some debug logs and indentations (Sean Paul).
       - Simplify dp rate calculation (Sean Paul).
       - Add support to configure refclk based on input REFCLK pin or DACP/N
         pin (Stephen Boyd).
      
      Changes in v7:
       - Use static supply entries instead of dynamic allocation (Andrzej
         Hajda).
       - Defer bridge driver probe if panel is not probed (Andrzej Hajda).
       - Update of_graph APIs for correct node reference management. (Andrzej
         Hajda).
       - Remove local display_mode object (Andrzej Hajda).
       - Remove version id check function from driver.
      
      Changes in v8:
       - Move dsi register/attach function to bridge driver probe (Andrzej
         Hajda).
       - Introduce a new helper function to write 16bit words into consecutive
         registers (Andrzej Hajda).
       - Remove unnecessary macros (Andrzej Hajda).
      
      Changes in v9:
       - Remove dsi register/attach from bridge probe, since dsi dev register
         completion also waits for any panel or bridge to get added. This creates
         deadlock situation when bridge driver calls dsi dev register and
         attach before bridge add, in its probe function.
       - Fix issues faced during testing of bridge driver on actual HW.
       - Remove unnecessary initializations (Stephen Boyd).
       - Use local refclk lut size instead of global macro (Sean Paul).
      
      Changes in v10:
       - Use refclk to determine if continuous dsi clock is needed or not.
      
      Changes in v11:
       - Read DPPLL_SRC register to determine continuous clock instead of
         using refclk handle (Stephen Boyd).
      
      Changes in v12:
       - Explain in comment as in why dsi dev registration is done in
         bridge_attach (Andrzej Hajda).
       - Move HPD disable to bridge_pre_enable (Andrzej Hajda).
       - Make panel/DDC exclusive until HPD support is added (Andrzej Hajda).
      
      Changes in v13:
       - eDP panels report EDID via DP-AUX channel, so remove support for
         dedicated DDC line (Andrzej Hajda).
      
      Changes in v14:
       - Remove unnecessary drm_panel checks (Andrzej Hajda).
      Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
      Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1532069642-21392-1-git-send-email-spanda@codeaurora.org
      a095f15c
    • Sandeep Panda's avatar
      dt-bindings: drm/bridge: Document sn65dsi86 bridge bindings · e3896e6d
      Sandeep Panda authored
      Document the bindings used for the sn65dsi86 DSI to eDP bridge.
      
      Changes in v1:
       - Rephrase the dt-binding descriptions to be more inline with existing
         bindings (Andrzej Hajda).
       - Add missing dt-binding that are parsed by corresponding driver
         (Andrzej Hajda).
      
      Changes in v2:
       - Remove edp panel specific dt-binding entries. Only keep bridge
         specific entries (Sean Paul).
       - Remove custom-modes dt entry since its usage is removed from driver also (Sean Paul).
       - Remove is-pluggable dt entry since this will not be needed anymore (Sean Paul).
      
      Changes in v3:
       - Remove irq-gpio dt entry and instead populate is an interrupt
         property (Rob Herring).
      
      Changes in v4:
       - Add link to bridge chip datasheet (Stephen Boyd)
       - Add vpll and vcc regulator supply bindings (Stephen Boyd)
       - Add ref clk optional dt binding (Stephen Boyd)
       - Add gpio-controller optional dt binding (Stephen Boyd)
      
      Changes in v5:
       - Use clock property to specify the input refclk (Stephen Boyd).
       - Update gpio cell and pwm cell numbers (Stephen Boyd).
      
      Changes in v6:
       - Add property to mention the lane mapping scheme and polarity inversion
         (Stephen Boyd).
      
      Changes in v7:
       - Detail description of lane mapping scheme dt property (Andrzej
         Hajda/ Rob Herring).
       - Removed HDP gpio binding, since the bridge uses IRQ signal to
         determine HPD, and IRQ property is already documented in binding.
      
      Changes in v8:
       - Removed unnecessary explanation of lane mapping and polarity dt
         property, since these are already explained in media/video-interface
         dt binidng (Rob Herring).
      
      Changes in v9:
       - Avoid putting re-definition of lane mapping and polarity dt binding
         (Rob Herring).
      
      Changes in v10:
       - Use interrupts-extended property instead of interrupts to specify
         interrupt line (Andrzej Hajda).
       - Move data-lanes and lane-polarity property example to proper place (Andrzej Hajda).
      
      Changes in v11:
       - Add a property for suspend gpio function of GPIO1 pin on bridge chip
         (Stephen Boyd).
      
      Changes in v12:
       - Remove binding for dedicated DDC line (Andrzej Hajda).
      Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
      Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
      Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180716084330.26698-3-spanda@codeaurora.org
      e3896e6d
  2. 25 Jul, 2018 2 commits
  3. 24 Jul, 2018 3 commits
  4. 23 Jul, 2018 2 commits
  5. 19 Jul, 2018 4 commits
  6. 18 Jul, 2018 4 commits
  7. 17 Jul, 2018 5 commits
  8. 16 Jul, 2018 5 commits
  9. 13 Jul, 2018 11 commits