From patchwork Thu Nov 28 16:45:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 180440 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp368963ile; Thu, 28 Nov 2019 08:45:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyC3FH953J+mOXQOUCBBCaE7CHuNDAW8zXzusVyzgJUYL1JJgNT4TggcAHrbSP3R8moOp3v X-Received: by 2002:a63:101:: with SMTP id 1mr11871584pgb.336.1574959542963; Thu, 28 Nov 2019 08:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574959542; cv=none; d=google.com; s=arc-20160816; b=0bbnZMj8X32qAwx1GDdcIYDb4mPE06jojXC1OnvFaLNTJx+Tf5HKVSTossr8eJ/92M nAqrMGqc3g0IznAr8cSN4t4fj2b1ElFgBUqFKnSMjrvayo27rv98kphQwOfVD41Z/f2b L4LUi3Hp4h8p9ksL/4P94Ul94LpsPwrl2eEOysZAL1HKtUlSiPsb1Xf0H8PiQhUPM+J4 5EWpWu//FGDwcwah4s4KP+s4dSsOhQhuG9t6phIYfnkWXmdHLYKe0RE6FgvImdZQWTbg 89xZnmD2bMmepMXEqNAxHWMyjF7KwQTsajTTuu2n8Tcnl55VH1XxR+jwHuOK/8X2cM00 io0w== 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=KKcoRLcSyd902MoeE+vCOwjQdV8h6SFGapAD0S6FS2I=; b=ezkKHKHuJI8MG7K4nUOVSbBYZcTndaghm/O+Y0Wj0ErmCiE8Rrye4Y5tnmVDKr0SZ4 /o1+wWtyPqks/sVLK5l2dUFYXe4nDjL/RqS7Hs3U7yOmn8VjWHHjCw+rgfhxrtzzBXER p8PHVzFaoHdG/sc8HZs8FNX4sa5Xh9hDkgGHwvDTv5w+m8aplLeUq/jvjpEe8ng5/OBx J/etP6knM0JXd1z+KH42ppCwl3UbVgvFKW4vCO3Qeeflbuv0tU5Bx00oF2hvyQKHBHf7 0cRBd/KE1muPuvhWPwmQECbmHWSCZIr1HuEaVuZEnPTauCYUW8DnbZqZln4BwMuQ6o92 iaeA== 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 w11si17364620plz.409.2019.11.28.08.45.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Nov 2019 08:45:42 -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 E63996E862; Thu, 28 Nov 2019 16:45:41 +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 76E846E862 for ; Thu, 28 Nov 2019 16:45:40 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xASGjcuD072267; Thu, 28 Nov 2019 10:45:38 -0600 Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xASGjcdh126096; Thu, 28 Nov 2019 10:45:38 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 28 Nov 2019 10:45:36 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) 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; Thu, 28 Nov 2019 10:45:36 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xASGjZXQ122491; Thu, 28 Nov 2019 10:45:35 -0600 From: Jyri Sarha To: , Subject: [PATCH 1/2] dt-bindings: display: DT schema for rocktech, rk101ii01d-ct panel Date: Thu, 28 Nov 2019 18:45:34 +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-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574959538; bh=+cV/xaoWKni6uJVsXA8KD+nVtRVb9rRhaDXvqY781rI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vRsb4zfdBWhOUDZnwkRRjj3FXSE+/YY12NF7BMOB8p8IBqiEslsn+LxFcTUwxQk43 4//ruhYv2aYfNc8yYUW/0r2CcZzbwaU4qx1hTSc0UCrtCnG9/j3E1yahaOW4Stimgd dMfv8at3F5BeqX2jjiGYkWMTXxDN/fQQfufxESjM= 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, robh+dt@kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add DT schema binding for Rocktech Displays Limited RK101II01D-CT 10.1" TFT 1280x800 Pixels with LVDS interface, LED Backlight and capacitive touch panel. Signed-off-by: Jyri Sarha --- .../display/panel/rocktech,rk101ii01d-ct.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,rk101ii01d-ct.yaml diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,rk101ii01d-ct.yaml b/Documentation/devicetree/bindings/display/panel/rocktech,rk101ii01d-ct.yaml new file mode 100644 index 000000000000..09caeee8701d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/rocktech,rk101ii01d-ct.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/dlc,dlc0700yzg-1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rocktech Displays Ltd RK101II01D-CT 10.1" TFT 1280x800 Pixels + +maintainers: + - Jyri Sarha + - Thierry Reding + +allOf: + - $ref: panel-common.yaml# + +description: | + Rocktech Displays Limited RK101II01D-CT 10.1" TFT 1280x800 Pixels + with LVDS interface, LED Backlight and capacitive touch panel. For + touch screen details see "goodix,gt928" in: + Documentation/devicetree/bindings/input/touchscreen/goodix.txt + +properties: + compatible: + const: rocktech,rk101ii01d-ct + + reset-gpios: true + enable-gpios: true + backlight: true + port: true + +required: + - compatible + - power-supply + +examples: + - | + display0 { + compatible = "rocktech,rk101ii01d-ct"; + backlight = <&lcd_bl>; + enable-gpios = <&pca9555 8 GPIO_ACTIVE_HIGH>; + power-supply = <&dummy_supply>; + + port { + lcd_in0: endpoint { + remote-endpoint = <&oldi_out0>; + }; + }; + }; From patchwork Thu Nov 28 16:45:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 180441 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp369164ile; Thu, 28 Nov 2019 08:45:52 -0800 (PST) X-Google-Smtp-Source: APXvYqziXZ5DVlU7rcL3JUq2n2vveF0x1i+schap6UU+aWjjW0gizEBCh0QIQ2A1/GXwgkIr6Z8G X-Received: by 2002:a63:d544:: with SMTP id v4mr11953964pgi.288.1574959552370; Thu, 28 Nov 2019 08:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574959552; cv=none; d=google.com; s=arc-20160816; b=EzDeylwvi6iq7inRVIUiZbNI7xakB0VAnP7C/HZ+iW+VuzlkRlxeQhUfT54jppEGtC Go4KiakaWQfzy6YeU+Z8qt+o1ZC0G/R2Qe+364XpViKJbu09k1ywEhhYycEdOsPJ+igX roLNUdwX8HzJR9niw1Xz0Zd9yy2cFOimXX0RyH5/UurB3KN/olTRruX+yMEsdrk1lLek b+J++xmzrYpZwmrBAtlc/JHPyzuENG0P4vICSuL3EWigsDrv8EerT71S+2zEcVndfj9X yYJfbneA/KWy2AVtGuT4dOAzmXtsP2eHQOFHyqjmzXSIsicYZZlEwYdKAtyZe1Nl+/kz c+PQ== 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=xjhL8lm1JA/Otch1FFfcCLlfS6OtLGU2357TtZVVTcw=; b=uuDPzSwn74rFwDOjxhR8HsJ7IpoSlhUjlUXOjxp/W34/vN8ZUr2u8Zom95XeSJ3+7S XiikLA2KPnWji1ED07m6OmQQVLnW1BEulvMYFEvzS7520ftgbYzvJkAbRlwiZIMJjvA5 Jfi2gcJutc4YVaIWPddzzJt5thouv+uHq3+3OeXUHLh2N+jRhoQbW4yVH9etVfhTDaAv FWwEom4CKFmZDfkSrVGKmClXJbtV/WZK1kwDKY0xURpgzX6e6yOequDcZPvIo/vbnctF vOvSXrZ0RZMF/8xhyFjybjiS3LDxSAkUFBjRMUdO8E81sdpOqD6k4e3e56ffOE56iOwv MPEA== 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 s6si20061263pgm.15.2019.11.28.08.45.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Nov 2019 08:45:52 -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 4AF326E863; Thu, 28 Nov 2019 16:45:51 +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 33C1A6E863 for ; Thu, 28 Nov 2019 16:45:50 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xASGjnqq072292; Thu, 28 Nov 2019 10:45:49 -0600 Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xASGjnGQ013112 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Nov 2019 10:45:49 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 28 Nov 2019 10:45:48 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE115.ent.ti.com (157.170.170.26) 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; Thu, 28 Nov 2019 10:45:48 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xASGjle4077546; Thu, 28 Nov 2019 10:45:47 -0600 From: Jyri Sarha To: Subject: [PATCH 2/2] drm/panel: simple: Add Rocktech RK101II01D-CT panel Date: Thu, 28 Nov 2019 18:45:47 +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-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574959549; bh=DY/65BBuhrEYREBg9H1kW7OV+fDGWg6ueAPaxUuTpQY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=APoNTisaSUhY4f5swQPtyzm7+DDjwsJZuZRGA+E0VG4adqJzEDIaeHCxyQ7Jb75vq PtdkZ5igORdANjidXMob6lvKmzZKWloXHgdfAra++vhmDQVxJBP7WMuCoxEVPQJmQy tI64YVxu7nHaaZQ3nisqreLqAP+oBcD3Ljreq4Lo= 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,