From patchwork Wed Nov 7 08:27:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 150379 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4894075ljp; Wed, 7 Nov 2018 00:27:59 -0800 (PST) X-Google-Smtp-Source: AJdET5fDn86K6zXTA8DtnhYs5YgEt9jDm7aSFPyjVJ96SP+cEy3QgUcUcUHDYmRaBisTKG6cNiey X-Received: by 2002:a63:fb0b:: with SMTP id o11mr789784pgh.211.1541579279137; Wed, 07 Nov 2018 00:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541579279; cv=none; d=google.com; s=arc-20160816; b=oXMqXNC6F2ouR83KYzGlhLN40j7eCZHpOLkXgvXm0PfDB/HtJF/DMTDyzp5JCWSM6J HF4O7lZ/V1tdmhHj3moLdGdHQBfdxjVLkmEWChhtZ9HsAx7toyuKXEKQOc4ZZ14BqpOX mv7J9BksBzuvqerdRBe0vKE7/yFmRl+9Pwkdz9fSLduzE7qz6xVa1N9ixGYUtvDMCk3q /XPxI+iZXklqrzuzNBUT9wzZBTsiPyG0H21+1XTForjkdziePmULyA/FfDTcvzURAJHs zsdc2zX4ygzWaP2xdVq7nTuFCHXMGE4bMtZV6YWXWGpC4U1rR1rm1bfsIBaWo4B1m3bf Musg== 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=0pMP7b/q4O5jhKO+QhyrFD5CGxjQj/IaGR1ZrgkcIKw=; b=ESaINGrDFIDIiEKOauppB280RWQAPm+HMKftR41sT0k5cl39vR1WUI83mQjEV+ewAE EafKJvCkFZj1GO7tmXKkVup4zzzeMC4iPFhO379fV+kT8je7sVIcPDZubZQBSQSZM+54 3qSfu4F3C34YtCgvG9uiIBGoR0gNs7n0jurvjKRaykfFLDK74KF1JCuMB5kNplTSSRdL G4mDsS/VCwQivqJksDXIYipkBA53kH7GJTXOydrCp1eJdnY4TMp3b+aLakAz3eybhnyf +7MOqQRmE0tY2nmO7hzpUilGHiesvEQ7yHWB4JWCWaOey95k7ymPZMpz0L9bFe5lVYwW Gi/Q== 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 e73-v6si50623443pfb.98.2018.11.07.00.27.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Nov 2018 00:27:59 -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 B51906E4EB; Wed, 7 Nov 2018 08:27:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11C876E47A for ; Wed, 7 Nov 2018 08:27:48 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wA78Rj5Z065264; Wed, 7 Nov 2018 02:27:45 -0600 Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wA78RjpU113533 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Nov 2018 02:27:45 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 7 Nov 2018 02:27:45 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 7 Nov 2018 02:27:45 -0600 Received: from jadmar.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 wA78RQZu032207; Wed, 7 Nov 2018 02:27:43 -0600 From: Jyri Sarha To: Subject: [PATCH v3 8/8] drm/panel: simple: Add Rockteck RK101II01D-CT panel Date: Wed, 7 Nov 2018 10:27:25 +0200 Message-ID: <1541579245-10715-9-git-send-email-jsarha@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541579245-10715-1-git-send-email-jsarha@ti.com> References: <1541579245-10715-1-git-send-email-jsarha@ti.com> 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.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, subhajit_paul@ti.com, jjhiblot@ti.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for Rockteck RK101II01D-CT, 10.1" 1280x800 TFT with LVDS interface, LED backlight and integrated Goodix GT928 capacitive touch panel. Signed-off-by: Jyri Sarha --- .../display/panel/rockteck,rk101ii01d-ct.txt | 8 ++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/gpu/drm/panel/panel-simple.c | 31 ++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/rockteck,rk101ii01d-ct.txt diff --git a/Documentation/devicetree/bindings/display/panel/rockteck,rk101ii01d-ct.txt b/Documentation/devicetree/bindings/display/panel/rockteck,rk101ii01d-ct.txt new file mode 100644 index 0000000..f7f0f59 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/rockteck,rk101ii01d-ct.txt @@ -0,0 +1,8 @@ +Rockteck 10.1" TFT 1280x800 Pixels +- with LVDS interface, LED Backlight and capacitive touch panel + +Required properties: +- compatible: should be "rockteck,rk101ii01d-ct" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 2c3fc51..2975e88 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -321,6 +321,7 @@ ricoh Ricoh Co. Ltd. rikomagic Rikomagic Tech Corp. Ltd riscv RISC-V Foundation rockchip Fuzhou Rockchip Electronics Co., Ltd +rocktech Rocktech Displays Limited rohm ROHM Semiconductor Co., Ltd roofull Shenzhen Roofull Technology Co, Ltd samsung Samsung Semiconductor diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 97964f7..9bac698 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1926,6 +1926,34 @@ 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, +}; + static const struct drm_display_mode samsung_lsn122dl01_c01_mode = { .clock = 271560, .hdisplay = 2560, @@ -2511,6 +2539,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "rocktech,rk070er9427", .data = &rocktech_rk070er9427, }, { + .compatible = "rockteck,rk101ii01d-ct", + .data = &rocktech_rk101ii01d_ct, + }, { .compatible = "samsung,lsn122dl01-c01", .data = &samsung_lsn122dl01_c01, }, {