1. 07 Mar, 2014 3 commits
    • Philipp Zabel's avatar
      staging: imx-drm-core: Use OF graph to find components and connections between encoder and crtcs · 655b43cc
      Philipp Zabel authored
      This patch adds support to find the involved components connected to
      the IPU display interface ports using the OF graph bindings documented
      in Documentation/devicetree/bindings/media/video-interfaces.txt.
      It makes use of the of_graph (formerly v4l2_of) parsing helpers and
      thus depends on the patch that moves those out to drivers/of.
      
      Each display interface needs to have an associated port node in the
      device tree. We can associate this node with the crtc platform device
      and use it to find the crtc corresponding to a given port node instead
      of using a combination of parent device node and id number, as before.
      
      Explicitly converting the void* cookie to the port device tree node
      allows to get rid of the ipu_id and di_id fields. The multiplexer
      setting on i.MX6 now can be obtained from the port id (reg property)
      in the device tree.
      
      The imx-drm node now needs a ports property that contains phandles
      to each of the IPU display interface port nodes. From there, all
      attached encoders are scanned and enabled encoders are added to a
      waiting list.
      The bind order makes sure that once all components are probed, crtcs
      are bound before encoders, so that imx_drm_encoder_parse_of can be
      called from the encoder bind callbacks.
      
      For parsing the OF graph, temporary copies of the V4L2 OF graph
      helpers are used, that can be removed again once those are available
      at a generic place.
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      655b43cc
    • Russell King's avatar
      Merge branch 'topic/of-graph' of git://git.pengutronix.de/git/pza/linux into imx-drm-staging · 73f2662b
      Russell King authored
      Merge the of-graph dependency for imx-drm.  These will be the basis of
      the new DT bindings for imx-drm.
      73f2662b
    • Philipp Zabel's avatar
      of: Fix of_graph_parse_endpoint stub for !CONFIG_OF builds · 00fd9619
      Philipp Zabel authored
      This patch fixes the following build error:
      
         In file included from drivers/media/i2c/adv7343.c:29:0:
      >> include/linux/of_graph.h:41:1: error: expected identifier or '(' before '{' token
          {
          ^
         include/linux/of_graph.h:39:19: warning: 'of_graph_parse_endpoint' declared 'static' but never defined [-Wunused-function]
          static inline int of_graph_parse_endpoint(const struct device_node *node,
                            ^
      
      vim +41 include/linux/of_graph.h
      
          35                                          const struct device_node *node);
          36  struct device_node *of_graph_get_remote_port(const struct device_node *node);
          37  #else
          38
          39  static inline int of_graph_parse_endpoint(const struct device_node *node,
          40                                          struct of_endpoint *endpoint);
        > 41  {
          42          return -ENOSYS;
          43  }
          44
      Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      00fd9619
  2. 06 Mar, 2014 6 commits
  3. 03 Mar, 2014 1 commit
  4. 02 Mar, 2014 15 commits
  5. 01 Mar, 2014 2 commits
  6. 28 Feb, 2014 13 commits