From patchwork Thu May 31 12:41:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 137372 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp6549365lji; Thu, 31 May 2018 05:41:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKCSVII2qQxbdCBSj+y7jLXkwCBGeLCASYmOp4j+PAyLh1CcGZWnq+Wj/JVOriEKpnRIJJR X-Received: by 2002:a63:2b46:: with SMTP id r67-v6mr5311923pgr.89.1527770504052; Thu, 31 May 2018 05:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527770504; cv=none; d=google.com; s=arc-20160816; b=jNj/USFz3SGWyPzZoTlBLq7D+3UrknrPk8S0I03jT0sEpLbaemiBTnO1aLU11GTDMT 1NYTN0WWF3ZtpxGQsZ73tzOC5twEwKDEXcnB7fRdXVXhdk0qPvW3ODal7JDT271O6QkD +GAEWR6VsyGJSr0lPj6eQ7N1iz4pRjoZwf6ksJLAntj/kGF4YBFpImRFHvZdGyqSoV27 AX46sm4oc/4QuGOzwpt3L2G/qcOspCq8FuGoTdwZvLljZq7VWMx6tzujDMCiElBrM3bF tLJhn54gf277cU6+LGF9oayNC+bflri/I8yEEu7zoj+DuWb7sxXrP36AZ5JKjoU7fjy7 BzRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=8X+GcvcSDw9ZP4Pp1Qibhwg9TO4PML8R7ve2F7u/hJM=; b=c2gkRiB51mUbwpnobw4t4DYlngR1o3v+2Ny+d89DS8LZkRda30fMnFUjXQ84/6eVA6 9HEZa+9GTkydmENFyJ0D3lovMMTHE+fTkejChtex8XzUn+8/gdOMjFs5YfIoEX7zMlaC 6lundV8H7Kd7ag4bGObTZJJR+ZPv/l41VtVoOAjJfLXl+0L0MLao12gygqBRBCQm9pUj 8R+xbIm5LDGPt6yIsXr8/w96G08P5kAsz47uBUis/0Tw/b3BocPpvWJORlfMe+yKZoep bZvtLgkaPZHVW62zUlOTVp+1mpIPCZWIlJndSSKHb+SbBvXtqnP01myA3/uZu+4ZdYi/ I+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=KyNdF7aD; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si38961584pff.154.2018.05.31.05.41.43; Thu, 31 May 2018 05:41:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=KyNdF7aD; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755045AbeEaMlm (ORCPT + 5 others); Thu, 31 May 2018 08:41:42 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:60747 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755050AbeEaMlk (ORCPT ); Thu, 31 May 2018 08:41:40 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4VCfbtH017454; Thu, 31 May 2018 07:41:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527770497; bh=pYQWOa8PgLWUtWWiEuvqcZDeoMGi5jB2vu06N9RsHGE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KyNdF7aDTgmr9L83/Ko38LLL7Nc/vxDAyxvS3lhfN4BiZGZgXMbL2HKCT6NKwB7UU uDQR2pqrbfqYBKn+g2iNii9eF9Ng++/ahztggQlpPFaHNVDlAvLroSiaibtGE3xy3B 2B1Sd3fyVcCbsUd1lSoEdqaHacEqaHXDEV5Rgth4= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4VCfblo006596; Thu, 31 May 2018 07:41:37 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 31 May 2018 07:41:36 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 31 May 2018 07:41:36 -0500 Received: from deskari.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4VCfQS5002799; Thu, 31 May 2018 07:41:35 -0500 From: Tomi Valkeinen To: , , Laurent Pinchart , Peter Ujfalusi , Jyri Sarha , Benoit Parrot CC: Tomi Valkeinen , Thierry Reding Subject: [RFC PATCH 4/6] drm/panel: simple: add newhaven, nhd-4.3-480272ef-atxl LCD Date: Thu, 31 May 2018 15:41:07 +0300 Message-ID: <20180531124109.3209-5-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180531124109.3209-1-tomi.valkeinen@ti.com> References: <20180531124109.3209-1-tomi.valkeinen@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add support for newhaven,nhd-4.3-480272ef-atxl to panel-simple. Signed-off-by: Tomi Valkeinen Cc: Thierry Reding --- .../panel/newhaven,nhd-4.3-480272ef-atxl.txt | 7 +++++ drivers/gpu/drm/panel/panel-simple.c | 29 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/newhaven,nhd-4.3-480272ef-atxl.txt -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/display/panel/newhaven,nhd-4.3-480272ef-atxl.txt b/Documentation/devicetree/bindings/display/panel/newhaven,nhd-4.3-480272ef-atxl.txt new file mode 100644 index 000000000000..e78292b1a131 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/newhaven,nhd-4.3-480272ef-atxl.txt @@ -0,0 +1,7 @@ +Newhaven Display International 480 x 272 TFT LCD panel + +Required properties: +- compatible: should be "newhaven,nhd-4.3-480272ef-atxl" + +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 cbf1ab404ee7..5d00c7d403b3 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2069,6 +2069,32 @@ static const struct panel_desc winstar_wf35ltiacd = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = { + .clock = 9000, + .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 + 10, + .vtotal = 272 + 2 + 10 + 2, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc newhaven_nhd_43_480272ef_atxl = { + .modes = &newhaven_nhd_43_480272ef_atxl_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE | DRM_BUS_FLAG_SYNC_POSEDGE, +}; + static const struct of_device_id platform_of_match[] = { { .compatible = "ampire,am-480272h3tmqw-t01h", @@ -2286,6 +2312,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "winstar,wf35ltiacd", .data = &winstar_wf35ltiacd, + }, { + .compatible = "newhaven,nhd-4.3-480272ef-atxl", + .data = &newhaven_nhd_43_480272ef_atxl, }, { /* sentinel */ }