From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761966AbdAKGeN (ORCPT ); Wed, 11 Jan 2017 01:34:13 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:49108 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbdAKGeK (ORCPT ); Wed, 11 Jan 2017 01:34:10 -0500 X-AuditID: b6c32a58-f79946d000005960-ef-5875d1df1459 From: Hoegeun Kwon To: krzk@kernel.org, robh@kernel.org, thierry.reding@gmail.com, airlied@linux.ie, kgene@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com, a.hajda@samsung.com, cw00.choi@samsung.com, jh80.chung@samsung.com, andi.shyti@samsung.com, Hoegeun Kwon Subject: [PATCH v8 0/3] Add support for the S6E3HA2 panel on TM2 board Date: Wed, 11 Jan 2017 15:33:56 +0900 Message-id: <1484116439-7275-1-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEKsWRmVeSWpSXmKPExsWy7bCmhu79i6URBq9vyFvcWneO1aL33Ekm i+1HnrFaXP/ynNVi/hGg2JWv79ks3i/vYrOYdH8Ci8WNX22sFv2PXzNbnD+/gd3i8q45bBYz zu9jsvi/Zwe7xc9d81gc+D12zrrL7rFpVSebx/ZvD1g97ncfZ/Lo27KK0ePzJrkAtqhUm4zU xJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zBygm5UUyhJzSoFC AYnFxUr6djZF+aUlqQoZ+cUltkrRhoZGeoYG5npGRkZ6JsaxVkamQCUJqRmvdh1kLtgqVXFx xR32BsZfIl2MnBwSAiYSyxsPM0HYYhIX7q1nA7GFBJYySrxbIdjFyAVktzNJfPiylBGm4cap TewQi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mFljMJHHyQg6ILSzgJrHwzlywehYBVYmr Ew6xgti8Au4S936+ZYPYJidx8thk1gmM3AsYGVYxSqQWJBcUJ6XnGuWllusVJ+YWl+al6yXn 525iBIf/M+kdjId3uR9iFOBgVOLhffG+JEKINbGsuDL3EKMEB7OSCG/WudIIId6UxMqq1KL8 +KLSnNTiQ4ymQAdMZJYSTc4HxmZeSbyhibmJubGBhbmlpYmRkjhv4+xn4UIC6YklqdmpqQWp RTB9TBycUg2M0wOPxW1+8IFH/vjl+138W09NczvBI8hT0ztzKese+T/nX/5h5N6RbK51ZIfR 9HSbN/Zvgx6UafN84L11UG/NiXttXG8Vt7z6IBux7r/p1Gm2jm4iOV/c/opWdaopry73uXn/ jfAcAZky5klrVy1Vajb6t3vOi327tP1v7T274b9EQG9DYJDtWSWW4oxEQy3mouJEAADhgUaV AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170111063407epcas5p2ffdcda0a9ab0e954f1e441c26403290b X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?6raM7ZqM6re8G1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzMo7IKs7JuQKS/sgqzsm5A=?= X-Global-Sender: =?UTF-8?B?SG9lZ2V1biBLd29uG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTMy9Bc3Npc3RhbnQgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170111063407epcas5p2ffdcda0a9ab0e954f1e441c26403290b X-RootMTR: 20170111063407epcas5p2ffdcda0a9ab0e954f1e441c26403290b References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Purpose of this patch is add support for S6E3HA2 AMOLED panel on the TM2 board. The first patch adds support for S6E3HA2 panel device tree document and driver, the second patch add support for S6E3HA2 panel device tree. Thank you for your review. Changes for V8: - Applied below two patches: (drm/exynos) : drm/exynos: mic: Add mode_set callback function : drm/exynos: mic: Fix parse_dt function - The dt-binding patch and driver patch were divided. - Rebase these patches on samsung SoC tree[1] and tm2 touckey patch[2]. Change for V7: - Fixed the mode_set callback function of mic device driver. because the mic register is initialized when entering suspend mode, so should set the reg value whenever pre_enable is called. Changes for V6: - Fixed the parse_dt function of dsi device driver. - Removed OF graph of panel in DT and DT binding document. - Fixed the s6e3ha2 panel device driver. - Fixed from number size to ARRAY_SIZE(). - Fixed error handling in mipi_dsi_dcs_* functions. - Fixed the clock of display_mode. - Removed unnecessary casting and error log. Change for V5: - The V5 has only one fix in V4 below. - Removed the enable check of the mic driver in mode_set callback, because mode_set should be performed every time. Changes for V4: - Removed display-timings in devicetree, the display-timings has been fixed to be provided by the device driver. - Added the mode_set callback function into exynos_drm_mic, because the exynos_drm_mic driver can not parse a videomode struct by removing the display-timings from the devicetree. Changes for V3: - In the DT binding document, made it clearly that the panel is a child node of dsi. - Fix reset-gpio active from high to low. - Is the OF graph saying related to patch2? Althogh the panel is a child of dsi, I think OF graph necessary. because if a remote-endpoint is not specified, the dsi also panel is not probed. - The display-timings has been fixed to be provided by the device driver. however, I think display-timings is necessary in dts. because if dts does not have display-timings, dsi will not load. Changes for V2: - Fixed the samsung,s6e3ha2.txt DT document. - Added active high or low after the description of the GPIOs. - Removed the reg and added a description of the virtual channel number of a DSI peripheral. Depends on: [1] https://git.kernel.org/cgit/linux/kernel/git/krzk/linux.git/ (for-next branch) [2] https://patchwork.kernel.org/patch/9504131/ - ("arm64: dts: exynos: Add tm2 touchkey node") Hoegeun Kwon (2): dt-bindings: Add support for samsung s6e3ha2 panel binding drm/panel: Add support for S6E3HA2 panel driver on TM2 board Hyungwon Hwang (1): arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board .../bindings/display/panel/samsung,s6e3ha2.txt | 26 + arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 12 + drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 754 +++++++++++++++++++++ 5 files changed, 799 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c -- 1.9.1