From mboxrd@z Thu Jan 1 00:00:00 1970 From: Archit Taneja Subject: [PATCH v3 0/3] drm/msm: Use device graph to parse connected panels Date: Sun, 2 Aug 2015 21:48:21 +0530 Message-ID: <1438532304-23885-1-git-send-email-architt@codeaurora.org> References: <1435304585-4451-1-git-send-email-architt@codeaurora.org> Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:45563 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbbHBQSc (ORCPT ); Sun, 2 Aug 2015 12:18:32 -0400 In-Reply-To: <1435304585-4451-1-git-send-email-architt@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: dri-devel@lists.freedesktop.org, hali@codeaurora.org Cc: robdclark@gmail.com, linux-arm-msm@vger.kernel.org, srinivas.kandagatla@linaro.org, Archit Taneja drm/msm currently relies on phandles/child nodes to get data about connected panels to LVDS and DSI. This method has known limitations. Use device graphs in DT to represent the connections between the encoder outputs and the panels. Use of_graph helpers in the driver to get the panel device node. The usage of device graphs should also simplify management in dual dsi mode. I haven't tried this out yet, though. changes in v3: - Some changes suggested by Hai - error handling when using of_graph helpers changes in v2: - Fix usage of of_node_put() Archit Taneja (3): drm/msm: dsi host: add missing of_node_put() drm/msm: dsi host: Use device graph parsing to parse connected panel drm/msm: mdp4 lvds: get panel node via of graph parsing Documentation/devicetree/bindings/drm/msm/dsi.txt | 15 +++++ drivers/gpu/drm/msm/dsi/dsi_host.c | 68 ++++++++++++++++++----- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 33 ++++++++--- drivers/gpu/drm/msm/msm_drv.h | 1 + 4 files changed, 93 insertions(+), 24 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation