Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757872AbbGQKom (ORCPT ); Fri, 17 Jul 2015 06:44:42 -0400 Received: from mail-bl2on0117.outbound.protection.outlook.com ([65.55.169.117]:17006 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757698AbbGQKoK (ORCPT ); Fri, 17 Jul 2015 06:44:10 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; cmss.chinamobile.com; dkim=none (message not signed) header.d=none; From: Jianwei Wang To: CC: , , , , , , , , Jianwei Wang , "Alison Wang" , Xiubo Li Subject: [PATCH v10 3/5] drm/panel: simple: Add support for NEC NL4827HC19-05B 480x272 panel Date: Fri, 17 Jul 2015 18:39:01 +0800 Message-ID: <1437129543-8037-3-git-send-email-jianwei.wang@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1437129543-8037-1-git-send-email-jianwei.wang@freescale.com> References: <1437129543-8037-1-git-send-email-jianwei.wang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD009;1:xFR7R+YA4DbumZOp/j1gtlXSUVtzMCEQti8g89eM0v2LqmOV8EGRZgEyegq9mmD9UXFrI+N32a/skaNf4QAejbBJYZpq9VOc2kK5I5/Ofuh8H6Xjy5uW/wPpWSnHm3YKolFd+Gzga4G5DQwULuMBqAaix+pErvltcBcb4KPBKPFxus/EA05wnHXIs2N/sAw/s2gJoNqowzNTMAmnAPBPKzZNYSfSa4z7hR8frAzYvYtnYa+zcFLwnx3PP5U0hqR3JU1LfZAQEQONteg5R6IjVI5zBuBQHrR+90J/ExIdB3w4mq2hKgBMr58l3GoNBp0rYaY0fMZOZamhvP+WKmo3ngfPq7SG27kJbL817TS5GAjKdjP/1xi1BYDC8fqS7fgFY+e5mVVEr2X6oLfxqqiY9jstDzsWpOCbA/TAyJvBUAm2ioQaz2F6gTQhUW18hBXK X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(979002)(6009001)(2980300002)(339900001)(199003)(189002)(2351001)(92566002)(5001860100001)(19580395003)(87936001)(106466001)(19580405001)(76176999)(4001540100001)(77096005)(33646002)(46102003)(229853001)(5001830100001)(5003940100001)(104016003)(6806004)(2950100001)(62966003)(105606002)(77156002)(189998001)(36756003)(50986999)(50226001)(86362001)(50466002)(110136002)(5001960100002)(85426001)(47776003)(48376002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR0301MB0871;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0871;2:n4eZHsCEaA0/fKjU+utMvG45juIwmc4ni8s7jRsO5S6Icd5IMevnYEcdIiZ0jCru;3:RbBrTJJgKhHlUF90LvQxJeemffeNqyupsBZWfg5baYIkPo7OmPy8UUuQ4rqkpVj7sAu1VG7JtjLkIwhbdtcUuxC6Rkwnq+W/eSpb9aFTmWdX6/65Gu9tgbWDGeqCwcdFWz6eZrfPiZESsJi93ZTlzraS8IMwkt6rJYf83j3xDa19SOIjp1qjPEwa8ZEKRp5LJI5FEBFuguORlNo761b0QUoii9Dy9HQh7hRDzRmUSHI=;25:8qi2XcOBU0tAhKo+WdrP6FRsCuLK/EmeBvucZV5V7PdEK728EEv9eUzQRs23876E47xv9CIZs+xfo6jpbl8v7JdAcQ9usFthYmz0QoKQ7LaYFrOrU2oT61lG8miPn1jEYGHtiSRlCOlCRniaSQ+0cmjphltYxpKDQ6SZseLbKuBNxMaY6lsFRII4y0DfXJJ6k6rUltFzN11BStOA4TKZ18Xulj+5yc1jYeJ07lcT0nVWm26lwpXk7HtcwtwdS3pqDnSrhjHeKH/oga+vkaRlsA==;20:uYwNZZNNuZtbVE2g26OQOcMwpw0MmqdX3KBsTr9v1762Mu/MoNRZjNfHgqFqIDTALsOtwc1h44+5DyW7P7bmTYM14KyhvUxCc5t/1aza+DP1rs54j/gyvn54xWnTN/iH+o9uz3lwi4h6/oW4HHduhafki5Hy/eU6DV8J2sMqDHg0B/F9Om4LpmWyLcr1XrURi5OWeZn8YErzkEP6r+LBgfpa6YfemY+5naRoLrSjpJcNDNlL51MEamJalQFXcFg82AiLdUjBzdpu67eVusqrQnm6cC3ibt9spvfoVyxuVDONljLPKVX42r4FYBdTuO1tzEGitKkXH2yoieAFWkitLvm0HbTkyPVdviLXu/3l2aY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0871; BY1PR0301MB0871: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY1PR0301MB0871;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0871; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0871;4:qspASEOrZUxRoCDfupOo9oaTfUIBr0BIOgjaiqtFkeHM/u3mTlWd3J5y/j7s7yhzIjt46Q7M5YaU9OXP28n6TUlrGc7EwH1DeZ3mmfZDP0LfD11m8YFvng8NHcIdNzLg7Hk891gYJVyRbcxA5J5yJHAhO6sVquvGPjW3YCKSsEI9GQkaWE3NAMgdymIpoh5Nl5d7enRx+g/RGwc4acEI/PIGV7Dm0LrPQQ0UG2lKO82GzW0vdx/RpCNvPVH4Aby7X5+UATjdZtmDDdl5q0u6j0Dms4Ru24L58KFlAD0SNKk= X-Forefront-PRVS: 06400060E1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0301MB0871;23:outn3zCQnD7edcJymU013wlSyn7GA8u/jJbu1c2?= =?us-ascii?Q?WYgz8jWW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8JVyFbYwclI?= =?us-ascii?Q?pivlZYIc1IH4QgaQXEO+4aOuafxlYYVn25lPCEev6i7Ank4gUzkbYqA9N81i?= =?us-ascii?Q?d4rxnBHP8hCZuFA04SlBjcrD8FKCzoxvSC2eWDv3U8xZnXexnMLYV0mNPq2q?= =?us-ascii?Q?iHR+OQGhZJR22QNtJRbPa8eYD+5j4yRAJo3/BPtIJDU5rQ58XrQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB0871;5:mI3X17YC1AVofqjEpA7L8xbiEo5cXZ5EIUYAYvj16ZpcdXyRuEjf2vb6T9Rz4aw65l9jJdu6h/2Ox4ICUNwnhPhnBLwFP0JKBocbdN/XEEV+wYRmNEQ5tDft4xfJtuUAtYjtVrUwu+mkgz1NAKkA3g==;24:f3ZbAeiAZPGvg9ZB9OnWKCQMtwx6pdGnhpc+53kpzOyhSEO6gouHeE03ruNhk2sk/y9zAhdtLWzxLH3unBtUaPNNoxMfumgZNaOBeZoNbw8=;20:U3ixvFhjdC1p1an0GsTbfYNTxZ2LEXXTJDn8LfKvd8/0wF91+mla4vHYJ6eNLy2VUDOYndfsuUT9l4WplsDAZg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2015 10:44:06.2223 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0871 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3092 Lines: 93 From: Jianwei Wang This adds support for the NEC NL4827HC19-05B 480x272 panel to the DRM simple panel driver. Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang Acked-by: Daniel Vetter --- .../bindings/panel/nec,nl4827hc19_05b.txt | 7 ++++++ MAINTAINERS | 1 + drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/panel/nec,nl4827hc19_05b.txt diff --git a/Documentation/devicetree/bindings/panel/nec,nl4827hc19_05b.txt b/Documentation/devicetree/bindings/panel/nec,nl4827hc19_05b.txt new file mode 100644 index 0000000..20e9473 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/nec,nl4827hc19_05b.txt @@ -0,0 +1,7 @@ +NEC LCD Technologies,Ltd. WQVGA TFT LCD panel + +Required properties: +- compatible: should be "nec,nl4827hc19_05b" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/MAINTAINERS b/MAINTAINERS index d4dfe14..387a84a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3404,6 +3404,7 @@ L: dri-devel@lists.freedesktop.org S: Supported F: drivers/gpu/drm/fsl-dcu/ F: Documentation/devicetree/bindings/video/fsl,dcu.txt +F: Documentation/devicetree/bindings/panel/nec,nl4827hc19_05b.txt DRM DRIVERS FOR FREESCALE IMX M: Philipp Zabel diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index f94201b..db61dd1 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -943,6 +943,29 @@ static const struct panel_desc lg_lp129qe = { }, }; +static const struct drm_display_mode nec_nl4827hc19_05b_mode = { + .clock = 10870, + .hdisplay = 480, + .hsync_start = 480 + 2, + .hsync_end = 480 + 2 + 41, + .htotal = 480 + 2 + 41 + 2, + .vdisplay = 272, + .vsync_start = 272 + 2, + .vsync_end = 272 + 2 + 4, + .vtotal = 272 + 2 + 4 + 2, + .vrefresh = 74, +}; + +static const struct panel_desc nec_nl4827hc19_05b = { + .modes = &nec_nl4827hc19_05b_mode, + .num_modes = 1, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24 +}; + static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { .clock = 25000, .hdisplay = 480, @@ -1113,6 +1136,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "lg,lp129qe", .data = &lg_lp129qe, }, { + .compatible = "nec,nl4827hc19_05b", + .data = &nec_nl4827hc19_05b, + }, { .compatible = "ortustech,com43h4m85ulc", .data = &ortustech_com43h4m85ulc, }, { -- 2.1.0.27.g96db324 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/