From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161337AbdAEKac (ORCPT ); Thu, 5 Jan 2017 05:30:32 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:41457 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033577AbdAEKaO (ORCPT ); Thu, 5 Jan 2017 05:30:14 -0500 X-AuditID: b6c32a37-f79116d000000e56-9c-586e1ddc83df From: Hoegeun Kwon To: robh@kernel.org, thierry.reding@gmail.com, airlied@linux.ie, kgene@kernel.org, krzk@kernel.org, inki.dae@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, a.hajda@samsung.com, cw00.choi@samsung.com, jh80.chung@samsung.com, Hoegeun Kwon Subject: [PATCH v7 0/4] Add support for the S6E3HA2 panel on TM2 board Date: Thu, 05 Jan 2017 19:20:05 +0900 Message-id: <1483611609-23522-1-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAAzVSfUgTcRjud7e7ndLqWGk/FEUOEgpc3jnbVVqJH11kJBQ0kliHO6a13cZu 05QIk9LSpTPDSkXNPpFIW6O077QyiWaZUJhpUPRlJWGzlL7mbv33PO/zPDwvLy+BqkexKKJA dAh2kTdTeLjiSu+SZQkjMaI+8ffbCHb4og9jD/v6Efb59/cY23IvQIf8Ezg7ca4SZ4+MuRXs i5lyjK15M46yAwOdSvbZtSacPT5wC2H/3uhSstPXmhVr53HdDa+UnKf9EM5dnXqNcWNVfQhX 7W0H3KQnNgffJqTkC7xRsMcJYp7VWCCaUqkNmw3phuTliXQCvYLVUXEibxFSqYzsnISsAnNg XSqukDc7A6McXpKoZatT7FanQ4jLt0qOVCqXphkNnajTMAyj0SZtX8kkByw7hPyzZ6YxW8Oi 3W2TR5BS0KyuBGEEJL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hJbXuwAm8oioCqxoGcTWD2v gIfEuf0/2SG2yUmcPDaZdQIj9wJGhlWMEqkFyQXFSem5hnmp5XrFibnFpXnpesn5uZsYwUH/ TGoH48Fd7ocYBTgYlXh4PQRyI4RYE8uKK3MPMUpwMCuJ8EpJ50UI8aYkVlalFuXHF5XmpBYf YjQFOmAis5Rocj4wIvNK4g1NzE3MjQ0szC0tTYyUxHkbZz8LFxJITyxJzU5NLUgtgulj4uCU amB0irPm3GumcMfCRq8mti3CJPn8+wdLtjhf/L1wquT65bF9fUFVM/ecPftzQ9FDDpaHV5jW cNw/FPlVUDKqc7Z54Kbl7Id8otanSVs/ci58a6ubZm6rUrV+lsax2N3GRx1vPry59eH6dcYL PsXK13cYqxxpmuaZIPNot6Fep8AjUcNvAQ+tRHYrsRRnJBpqMRcVJwIAJX76QJACAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170105102011epcas1p416e0495978dbce7e73e900eb69a4b7ad X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 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: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170105102011epcas1p416e0495978dbce7e73e900eb69a4b7ad X-RootMTR: 20170105102011epcas1p416e0495978dbce7e73e900eb69a4b7ad 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. 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 [1]? 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. Hoegeun Kwon (3): drm/exynos: mic: Add mode_set callback function drm/exynos: mic: Fix parse_dt function 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 | 28 + arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 10 + drivers/gpu/drm/exynos/exynos_drm_mic.c | 44 +- drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 754 +++++++++++++++++++++ 6 files changed, 814 insertions(+), 29 deletions(-) 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