From patchwork Tue Feb 11 12:17:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 183282 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp5255307ile; Tue, 11 Feb 2020 04:17:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxAhoFjcE0LHA5KDNVeFor+rtlHJnDYc9P2zZKARMtDyvweKFl5ST2RZv0ldg89VNDGm3jo X-Received: by 2002:a63:a1e:: with SMTP id 30mr7024666pgk.238.1581423456042; Tue, 11 Feb 2020 04:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581423456; cv=none; d=google.com; s=arc-20160816; b=BfG0tv4mDQjgn5t/FEfhM8BiKQUdLSOL8Fbu4kgANDFVZywBog75G0O/q/M/st5sr5 Y7MRHTwd5PiTuRziS4ae9rq8WezHUdBnVz45rIj67670gMjmECIEPKD4tH5c10DePopQ T8IRQgf8FmMiO2yog2lYFKgQlRTyII1CyHrYCHPUkGSKZkgVVIpJRJC8l9RjjspJCaaH irNzXDepBT9MPjucHqGP5PGN8UyGiOeMAPsfJxpwmYpnE87tOuEtmSV8zSZxRDNNZKc0 BqQYXwbRMIX2ibRGKhegNiSyBipnX3XqAyuhY18tZvhS7PPU9J0+GLbfdnOf+/1A7NXM lIEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=j0WEuF9XkH9fovv5wDbeh6NWUHa6iYRQSAIitcfq+MM=; b=iUZAl8ojmp6cIrMK4XDOc157vC/BEiFOw8RLcT4HzH/LmkVUfjm63qYYq5iWD9h4SX 5lW+EerKm041FWHyFWlxV/1iJA6MktR5LUcJvEnorsyrsDCLQjKxGt8Mvx1NXrxw5JmC v3sWOqNY+qLovRXTIrpkFYxIRJHSv3p4Mr6V+A+/v5EFKIh2C+s+NNQ8MEs/uAusYDsF BLpMswFYYA8/CzSTZsmtjbSnIrWvGPqVcfJAfpPhDDN+u25kBZS+KN0IQaaArXIRQVxB 6MsRP9BW9B3dHS6MZelb50x8Xfneiqg+2oqNeb3po+DRjLmYIM6EgYUOSiqSmOgOYuig Ss5A== 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=sy3LGv2k; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s4si2809561pgf.172.2020.02.11.04.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 04:17:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=sy3LGv2k; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B0816EA38; Tue, 11 Feb 2020 12:17:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id B16E96EA38 for ; Tue, 11 Feb 2020 12:17:30 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 01BCHQxJ106019; Tue, 11 Feb 2020 06:17:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1581423446; bh=pKaCaSWs3WqVtRRUPTusznn4AwPhMp48z0BGP4Cdd7A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sy3LGv2k9+Xb33gLXqkDceDxHyPQx6oWqTCKx2eF47vOYwsHQci3yv61O5Dhqh9al 7zeCyc1PFerW+AHY6LcCgmiiIDjZQmwfndKxfZS0NrABtRwz5z3miVDgHnYOt/1lhm nZd8S9CdU5EkefFZChN/l60EBePBPxd2Ekkd8XRk= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01BCHQ57048883; Tue, 11 Feb 2020 06:17:26 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 11 Feb 2020 06:17:26 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 11 Feb 2020 06:17:26 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01BCHJ83092021; Tue, 11 Feb 2020 06:17:24 -0600 From: Jyri Sarha To: , Subject: [PATCH v3 2/2] drm/panel: simple: Add Rocktech RK101II01D-CT panel Date: Tue, 11 Feb 2020 14:17:18 +0200 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: praneeth@ti.com, peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, thierry.reding@gmail.com, laurent.pinchart@ideasonboard.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for Rocktech RK101II01D-CT, 10.1" 1280x800 TFT with LVDS interface, LED backlight and integrated Goodix GT928 capacitive touch panel. Signed-off-by: Jyri Sarha Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index d901ccb5cf9b..82363d05bad4 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2662,6 +2662,35 @@ static const struct panel_desc rocktech_rk070er9427 = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = { + .clock = 71100, + .hdisplay = 1280, + .hsync_start = 1280 + 48, + .hsync_end = 1280 + 48 + 32, + .htotal = 1280 + 48 + 32 + 80, + .vdisplay = 800, + .vsync_start = 800 + 2, + .vsync_end = 800 + 2 + 5, + .vtotal = 800 + 2 + 5 + 16, + .vrefresh = 60, +}; + +static const struct panel_desc rocktech_rk101ii01d_ct = { + .modes = &rocktech_rk101ii01d_ct_mode, + .num_modes = 1, + .size = { + .width = 217, + .height = 136, + }, + .delay = { + .prepare = 50, + .disable = 50, + }, + .bus_flags = DRM_BUS_FLAG_DE_HIGH, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct drm_display_mode samsung_lsn122dl01_c01_mode = { .clock = 271560, .hdisplay = 2560, @@ -3569,6 +3598,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "rocktech,rk070er9427", .data = &rocktech_rk070er9427, + }, { + .compatible = "rocktech,rk101ii01d-ct", + .data = &rocktech_rk101ii01d_ct, }, { .compatible = "samsung,lsn122dl01-c01", .data = &samsung_lsn122dl01_c01,