From patchwork Fri Feb 15 05:09:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 1042593 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GGKRC0b2"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4411YR1f5Kz9s7T for ; Fri, 15 Feb 2019 16:10:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726668AbfBOFKe (ORCPT ); Fri, 15 Feb 2019 00:10:34 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38811 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726632AbfBOFKd (ORCPT ); Fri, 15 Feb 2019 00:10:33 -0500 Received: by mail-pg1-f196.google.com with SMTP id m2so1964999pgl.5 for ; Thu, 14 Feb 2019 21:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J0Zd5pbglwpw5Die2Vji6PMd+QXXJ8XC/pUhM/WI+uc=; b=GGKRC0b2h2m9Ar/7VlEMTaRRpe1zbk7E/8Cn1gOiHl6nFRNa1YrjT+YngPTC2zMnqh sg6iaz0xoDseti+FsQnQXmNRnWVyqS8iGvBybNSUHOSDJNxBlEoHjmBLF44+ncIsfQTB 3wbiFU+LeUKEiKGlIgCll/sd28fi2GwQfTQMqWvDZg/HpllUz7tjUdC2zyObGIy0SytD NmP0/FG+IOpITepoSjjuGMaoou2nQ4o4D8ntYnmSuHbjvcMWFAGJKuh901X/MC/4c5z6 nrI6pgl6cb22TsyM/j8Zo+BGlhIOh0waQm3wZWIUZX+6YQSp7RBr9Ld8oqVYPT1oRqU3 vpWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J0Zd5pbglwpw5Die2Vji6PMd+QXXJ8XC/pUhM/WI+uc=; b=kSuSYnVtuum/IjQCGISXnDQAlS1V2iDyjH3LtJ/R7s3ywP7BuYO8Gt4N2nsKUyP5aA qya6pfHx4O85+R2spPddEPk5a2eEmq0BsgnnKDzHJjyYKLkPx/KptbbdHi+oImT/8Tz/ ikZJDVdj/zGns78hhKC1Y6cP8cf7CN2Am1SWLcsTmFBjhe6rUpSxH1EZdFH/5GZB7ohx Tn2OqxtTy6iffqFfS1EcMIWAzPl1XGlRlDfvwv/egBXbX25lzuZiL4byxRLBl5odMW8Y /cFY6QRnEXCXY8BOr8NIp1lQZXpbQNazTpcwtn4HJAAc9MDnhRoeKoDSY4ZIedhHTZr+ DJxg== X-Gm-Message-State: AHQUAuavzPmz0GDAHN8tXssTiZkuiAs5BPbRpUYbSyom0UyD4/LrDSxe XB52Qu+vsSPe6JEAdS6zrss= X-Google-Smtp-Source: AHgI3Ia2aGQuisqtlz9PlmgBnM9NLRg1owS3bVHyLoPqiW+/AF+8oMKxi5oY6tqGekV3dGGMQJs5Cw== X-Received: by 2002:a62:c42:: with SMTP id u63mr7831519pfi.73.1550207432771; Thu, 14 Feb 2019 21:10:32 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-213-236.dyn.novuscom.net. [216.71.213.236]) by smtp.gmail.com with ESMTPSA id m9sm4900442pgr.7.2019.02.14.21.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 21:10:32 -0800 (PST) From: Vasily Khoruzhick To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Thierry Reding , Maxime Ripard , Chen-Yu Tsai , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Cc: Vasily Khoruzhick Subject: [PATCH v3 10/11] drm/panel: simple: Add NewEast Optoelectronics CO., LTD WJFH116008A panel support Date: Thu, 14 Feb 2019 21:09:56 -0800 Message-Id: <20190215050957.20755-11-anarsoul@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190215050957.20755-1-anarsoul@gmail.com> References: <20190215050957.20755-1-anarsoul@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This commit adds support for the NewEast Optoelectronics CO., LTD WJFH116008A 11.6" 1920x1080 TFT LCD panel. Signed-off-by: Vasily Khoruzhick --- .../display/panel/neweast,wjfh116008a.txt | 7 ++++ drivers/gpu/drm/panel/panel-simple.c | 39 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/neweast,wjfh116008a.txt diff --git a/Documentation/devicetree/bindings/display/panel/neweast,wjfh116008a.txt b/Documentation/devicetree/bindings/display/panel/neweast,wjfh116008a.txt new file mode 100644 index 000000000000..d76579f9f55e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/neweast,wjfh116008a.txt @@ -0,0 +1,7 @@ +NewEast Optoelectronics CO., LTD WJFH116008A 11.6" 1920x1080 TFT LCD panel + +Required properties: +- compatible: should be "neweast,wjfh116008a" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9a4c9dd02c6c..3edc77e49d8f 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1843,6 +1843,42 @@ static const struct panel_desc netron_dy_e231732 = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct drm_display_mode neweast_wjfh116008a_modes[] = { +{ + .clock = 138500, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 1920 + 48 + 32 + 80, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 5, + .vtotal = 1080 + 3 + 5 + 23, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}, { + .clock = 110920, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 1920 + 48 + 32 + 80, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 5, + .vtotal = 1080 + 3 + 5 + 23, + .vrefresh = 48, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +} }; + +static const struct panel_desc neweast_wjfh116008a = { + .modes = neweast_wjfh116008a_modes, + .num_modes = 2, + .size = { + .width = 260, + .height = 150, + }, +}; + static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = { .clock = 9000, .hdisplay = 480, @@ -2690,6 +2726,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "netron-dy,e231732", .data = &netron_dy_e231732, + }, { + .compatible = "neweast,wjfh116008a", + .data = &neweast_wjfh116008a, }, { .compatible = "newhaven,nhd-4.3-480272ef-atxl", .data = &newhaven_nhd_43_480272ef_atxl,