From patchwork Mon Dec 9 15:45:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 181057 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4521247ile; Mon, 9 Dec 2019 07:46:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzinHw/4UnnMFicSeXOQIH9ynjYLuA8Ak3U5cQMSPlx8o2N9iUggdx3XJSP6oAPUMLqw9iu X-Received: by 2002:a62:6416:: with SMTP id y22mr30163944pfb.167.1575906363728; Mon, 09 Dec 2019 07:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575906363; cv=none; d=google.com; s=arc-20160816; b=BUOJcsLjLwtP/dlYI9tsaPDThANApoSoNuaX9C2qCpP0QI/pmjNlb2GYsygfAS2L2A OsaEbAgCkjES9sSiPuVKqWSf3qJl1tbhdmRCsFJePXxDHPKcoV9mmE5MLITSQFBlgcdw a7wgohdxxn2CtltgwSd8rUCvgT4YbLOVGuqq2FSuHG/z63kIfy56dWveVsjGx6EPQhbu dLIDVGqbtHW0RzKilRsIxmDO4cbtA6Jd546yUfmBIRju41h5ZE2EgoTIdqQ6ZWBB1hUi LWK/npktYPu/KQJtoYrH5IeC+/rD2X1PXza3haj62UdCcf7gTug91aObqx473voAnceF yr4g== 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:delivered-to; bh=hw9vNlk5N8l4QD2dzOrnvBSa5x/bLxFfxP4fWWmJkWc=; b=G6R6Gj0MO6oJ4NEo2KcqZTsS1QMLJG3goxTaKLTgrkZk0Tw33kRIkOtbIodIVidUAB IFcYcVmyjQlXPSFjaqb06wYtJZt8fGKqQ379SkE4hmpmBgytpj5FlqIn4Z62BGOJ9byz fdyvYKD9ajnt4tDQ5be3v3N5xSzwdglL2csolV72tQ0RXVid0Fbsa/ICTQefhbdKcXSS UvWK5ffji7HGNX5orQzvGyTeSqcpKbxElMFQGFJ+ruydh7qwcSt3BzXDU34Ibf9log9l 8JYafpatvpW1HjDx/FoAk8pLVg4vb/GndJlt6aN2C8mqEw48vs4EFWs0NM1SDrzSi5P7 U9Sw== ARC-Authentication-Results: i=1; mx.google.com; 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 e34si108786pgm.329.2019.12.09.07.46.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Dec 2019 07:46:03 -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; 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 902166E4B5; Mon, 9 Dec 2019 15:46:02 +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 808FD6E4B5 for ; Mon, 9 Dec 2019 15:46:01 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xB9Fk0XG089856; Mon, 9 Dec 2019 09:46:00 -0600 Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xB9Fk0lQ079527 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 9 Dec 2019 09:46:00 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 9 Dec 2019 09:45:59 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Mon, 9 Dec 2019 09:45:59 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xB9Fjvb1056148; Mon, 9 Dec 2019 09:45:58 -0600 From: Jyri Sarha To: Subject: [PATCH v2 2/2] drm/panel: simple: Add Rocktech RK101II01D-CT panel Date: Mon, 9 Dec 2019 17:45:57 +0200 Message-ID: <705bc4aedbd949e0589014b7d17e94cba043122c.1575903975.git.jsarha@ti.com> 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-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1575906360; bh=v88TaKoKb9TYF7GNr6c2t+I9sWOxNUgqI/0s08TBN38=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=B65gdYJ7uOHTE1S/qDyBEHy8S8JNg2GdgXgww8k/I7tmOy63BKE0ElxBfRseo0kmE wpTr1zDIFBhsh3+6WkpeNAz0/8YNfgGCNTjMqN/94zZIWBWzkK/8mzSHiH3tIyPU3U MF//yXZ2IuKqKSjTGCXhjJ3KV7R4L6Atpyl6zuZY= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tomi.valkeinen@ti.com, thierry.reding@gmail.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(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5d487686d25c..489e217102ea 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2479,6 +2479,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, @@ -3338,6 +3367,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,