From patchwork Mon Dec 9 15:45:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 181056 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4520939ile; Mon, 9 Dec 2019 07:45:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy3Hhkj8xpLJ30ioS9w+Pc6qlBy9BFrRXbLIb4Hdngc/yIWzsYLZlPp3T9nqohuPXZBH7rI X-Received: by 2002:a63:5104:: with SMTP id f4mr19200225pgb.192.1575906347105; Mon, 09 Dec 2019 07:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575906347; cv=none; d=google.com; s=arc-20160816; b=KdatCrKHrxiXzLwm4dzqTpaCqZBm3PuTK6mZIzo0KZSoqsPweKhfpkqonpxTTMNM9V HoVHuiHF/dXAAzgOkqOMBC83Kbygzb/ztzD1fUHCp6jWBVARFK1XNyNxxIWQUTj/bs59 5Gm7LeyM9FAptw65gTnrw2cfoZh7x/yyEQyS2I56vCPRNnwH3CyQy645pogbEW42OU3c xmZLpHuoH869MsqinDFYBVSspC/w5zGlZ44UNrpoIWN9RRwl3k4HEiyEUv0raDbXn0lb 2ftixxC2DfmP0abF4ztOfRM1mwtYY0BOHmyjD3igPiikKfK2hYHPQHLFrifUbmnSfHaM HJ0w== 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=j/cdL28g0xKNf3Z1arjhQqgPThlSjamS9JYgouoKu8I=; b=qvRMj81SBlDCeIeX8zqTrQqd6bEsm7btVdQRKj5wAF6d3YOOaCevhZMz6QdBsLt22M u+bz1St9IEbhd3cve1ZCJZ3rkux1m3bxh7x9E7YlKkqqM/UsphqkdieZ2z4cBoCNIsWz iRRG2X2jGNe2Nq3U2hDpT4BkWWXxd/U1AItzYAUHhI/i1Y881xmO3ngqSY6a6ZAzNTXN MljZjtRrYqb8xnjVisngG7QxFbHu1IxUnZeNsPa9u1AAUKAP8CZkbsis5ffjiSKAYKXQ b1gR+KZSsvgrY6Ec7GfINijYkvl9XN+YMHYjlRgT80YZI88bcvf9mHzezVG3be/Jjmt0 ZHug== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id g129si98377pgc.444.2019.12.09.07.45.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Dec 2019 07:45:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 1D5616E4B3; Mon, 9 Dec 2019 15:45:46 +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 130736E4B3 for ; Mon, 9 Dec 2019 15:45:44 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xB9Fjhxn013555; Mon, 9 Dec 2019 09:45:43 -0600 Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xB9FjgrI079227 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 9 Dec 2019 09:45:43 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) 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; Mon, 9 Dec 2019 09:45:42 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) 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:42 -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 xB9Fjf5I112084; Mon, 9 Dec 2019 09:45:41 -0600 From: Jyri Sarha To: , Subject: [PATCH v2 1/2] dt-bindings: display: DT schema for rocktech, rk101ii01d-ct panel Date: Mon, 9 Dec 2019 17:45:40 +0200 Message-ID: <60034f9cd4580bf3b7c8c5c87bb9247fdc3f345a.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=1575906343; bh=4Q9QtNIx1DUqHBCmQZLSWE7fPvofI6doebRsNcHjlSg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YmoFYuB9zYYo0cCGVVwEoN5RKzmoLZ5c+7qXgeSutFRgm95mpUuwrX5gxGvXI0C+X wzlQ06FjXwljk2eRjJp6uV26vbVTAW1y9m9uTgdkFEZ0z7n7cd4mwHkSaa0X1c0FcR rvNg1VGZ3VkozNxBI0HtVTu+T+1Y9wYkOmL8a9DQ= 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 Reviewed-by: Rob Herring --- .../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..b37f89ca4bd0 --- /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/rocktech,rk101ii01d-ct.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 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,