From patchwork Mon Jun 18 13:22:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 138946 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3949816lji; Mon, 18 Jun 2018 06:23:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJltJ32biv2TNfkaB8YyyijtU+haupuzUOyGzdKpVVhwbnxqd5g0ugqdTIMG9ZSfKfv3F8l X-Received: by 2002:a65:504a:: with SMTP id k10-v6mr11040421pgo.151.1529328210540; Mon, 18 Jun 2018 06:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529328210; cv=none; d=google.com; s=arc-20160816; b=xHBfyUpG1uI4x/tQJ4qqgfAPuaErBN++izrYkjMn8zTaYsT6yXIkrcLqX7Fo7+1AwI bZA31Xz6Hgtic8Wm0aKpQ5rRp4tAbauJInizGkSL0/JdfOMngNVXZWtRR1RCPLMHgs7i z7Q6veRWEHl/RoA1ZmPdIRxc87HnTJcKIlyl6R4mhfY6gKa8e7j/KIA5GL4vNYsR4mzC rM61udrOFsXzAYOUM/bZ9plGK/43qERIH0WSyvvEfgsF8mY/T/+5pDi/3xh6BLvttr+C UMR//SqJNm8xQ3XPhufnd7DBFJEjlulRy0DFVFS/W4Nw2U2R60ddexrmGkDNyz02hsLx mCYQ== 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=ZfBF5E4TKZx8fEmtoccTs0hInzTJuIfiMRdAD40wrWVu/L878xg1WSlRx1bViKrwW5 7fQnripkHCZ/aJxETB6JnoRb+8XvUW0NodC9FJ/7FIES+WnxPjpXU13BE3ilMiyYvb1n jqD+8t7mpGVSCVI490AHhaw8pL+WL2ogS+7rqUyAPHbOzq/Pu/jdKrhpOXZKXHQ8DRr1 0i+mtlES9DB2uqCYMXJwzd/B+helrhtkYiOVQcChR5tptQlBZ0znfVpf3dMzMG/LEx4+ DlyteqCgQaZS2teUAeQrgNoeCsd0VD8GiB7WFfx4l5omWgL0kJmvc0vybqt96Qp0LNwY atvA== 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=LHxs1qoh; 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 s1-v6si12371160pga.296.2018.06.18.06.23.30; Mon, 18 Jun 2018 06:23:30 -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=LHxs1qoh; 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 S934264AbeFRNXM (ORCPT + 5 others); Mon, 18 Jun 2018 09:23:12 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:60755 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933524AbeFRNXK (ORCPT ); Mon, 18 Jun 2018 09:23:10 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5IDN7gv022250; Mon, 18 Jun 2018 08:23:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1529328187; bh=pYQWOa8PgLWUtWWiEuvqcZDeoMGi5jB2vu06N9RsHGE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LHxs1qohquCwW0ovCGr5+IUkriOKZ4z75zt9p+vY0RaqlxSb1u1i3o7nln7I/jzAn pApk4i8ImAuX0Pnbw0Ci5Bj1dlz8JC2VQdiqfSKn2QNPPtxgrd8A4A3szsK3f2dIXK uIZ/OXuL10UFRFOqSkUbBMhm0O7yScSEPvKzBhLI= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5IDN7Pc018063; Mon, 18 Jun 2018 08:23:07 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 18 Jun 2018 08:23:06 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 18 Jun 2018 08:23:06 -0500 Received: from deskari.lan (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5IDMowu002369; Mon, 18 Jun 2018 08:23:05 -0500 From: Tomi Valkeinen To: , Laurent Pinchart , CC: Jyri Sarha , Peter Ujfalusi , Benoit Parrot , Tomi Valkeinen , Thierry Reding Subject: [RFC PATCHv2 7/9] drm/panel: simple: add newhaven, nhd-4.3-480272ef-atxl LCD Date: Mon, 18 Jun 2018 16:22:40 +0300 Message-ID: <20180618132242.8673-8-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618132242.8673-1-tomi.valkeinen@ti.com> References: <20180618132242.8673-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 */ }