From patchwork Fri Aug 21 15:35:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Anderson X-Patchwork-Id: 11729799 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F06C01575 for ; Fri, 21 Aug 2020 15:35:40 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CEEDB20FC3 for ; Fri, 21 Aug 2020 15:35:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="K4xOshzv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CEEDB20FC3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E2D76E854; Fri, 21 Aug 2020 15:35:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0858F6E854 for ; Fri, 21 Aug 2020 15:35:36 +0000 (UTC) Received: by mail-pj1-x1044.google.com with SMTP id mt12so970827pjb.4 for ; Fri, 21 Aug 2020 08:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KlcOztWWQPRGdO3GJ4i5K8dX5Ri0O0Yjm2p6XeAjX5c=; b=K4xOshzvJr7aCXXwH4DAQRpEXUsdEQHd4W+925408O95RPmPvEx9o1Qfb37SCB1Gho oJJeNwvIk992gMb+wjm4aBzLv0AwDdFpQqg6Sx9dh4vQgCXUjAupJMC3PN+v7fFX+V4c 9ww3RJgSeDEiwb0n5vIcXlfAHk3l6xWnlYojk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KlcOztWWQPRGdO3GJ4i5K8dX5Ri0O0Yjm2p6XeAjX5c=; b=UJL2VEsn0fyHIIwVJAr2IMHQM30DShNeFmE+8QNPcMoXEaUuwFUF/UMX03pS8a+A6P 7TuWX3UnVf1hAGQ870R2ChX31QzHABDRyVB7b0c8gzM6TZhlGsief9msyrEAbw1Yctw/ NjnoZGmHWjwcWx5PNLxTCAtJzbatnXp2kmq95qEXCYuBWSF0VraGL/qaBt68dGu9Eztr cXOo1cyLLafvd7HhgQs0VJJL5dYbWKZlnPprQK6tyA6VEO4QjZLo0JHYH8a1rodeE+h3 oAeUaeP73Hv5Qr1diB4HTNB85b9ov62yMUNN5dJCWuLBF3XAXPT7k7R3TIJpKu1adO32 HyZg== X-Gm-Message-State: AOAM5317XNI6FaJ7E+pqFtgx/P2nlH2OI+rxd/KpKGfdEv0FSj8gEgSF 5p4birkrGz9QTC9vBnsxrafcdQ== X-Google-Smtp-Source: ABdhPJwZXxjhNDGxHTeRfEsG36o7sm8xNgtpV6HgMuiEo8kAPWL1TyuKck2o9/PPo4gkANxrXbSxMQ== X-Received: by 2002:a17:90a:5b:: with SMTP id 27mr2784374pjb.188.1598024135637; Fri, 21 Aug 2020 08:35:35 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id u8sm2200720pjy.35.2020.08.21.08.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 08:35:35 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Sam Ravnborg Subject: [PATCH 1/2] dt-bindings: display: simple: Add KD116N21-30NV-A010 compatible Date: Fri, 21 Aug 2020 08:35:14 -0700 Message-Id: <20200821083454.1.I61e6248813d797c9eeebfbb7019c713aa71c4419@changeid> X-Mailer: git-send-email 2.28.0.297.g1956fa8f8d-goog MIME-Version: 1.0 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: robdclark@chromium.org, devicetree@vger.kernel.org, David Airlie , Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rob Herring Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The KD116N21-30NV-A010 is a pretty standard eDP panel. Add it to the list of compatible strings. Signed-off-by: Douglas Anderson --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 47247ace86ac..f2204f17a9dc 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -161,6 +161,8 @@ properties: - innolux,n156bge-l21 # Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel - innolux,zj070na-01p + # King & Display KD116N21-30NV-A010 eDP TFT LCD panel + - kingdisplay,kd116n21-30nv-a010 # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel - koe,tx14d24vm1bpa # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel From patchwork Fri Aug 21 15:35:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Anderson X-Patchwork-Id: 11729801 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AC3D1744 for ; Fri, 21 Aug 2020 15:35:44 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DD55C2063A for ; Fri, 21 Aug 2020 15:35:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="OfV+SpGv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD55C2063A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75F026E85B; Fri, 21 Aug 2020 15:35:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by gabe.freedesktop.org (Postfix) with ESMTPS id 01E486E859 for ; Fri, 21 Aug 2020 15:35:36 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id r4so1041005pls.2 for ; Fri, 21 Aug 2020 08:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=soERAZs9Qqj0stxZ21kcyBQ2mrcQaIYycZ2RGXP4UCc=; b=OfV+SpGv14O8eiiPmbak3/VqcCOP9Svc+4+NW66iyBfeZw0VYn9jzvZx5zJ/Si9JoT ie98uM6X+4gO7ltkaWyLLJ/ZLfDpilz/pNVH+ptOfmPx16/pJ4DFURvLiqHs+sgbLep8 BzoHATwNhB5btbStuIJQ9WkhhES9xSiuZ6+1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=soERAZs9Qqj0stxZ21kcyBQ2mrcQaIYycZ2RGXP4UCc=; b=F3O7Jfb6gXL/6Rlg8sbrK16oGgy2Pw/rSygEDRTMMzdJZpciiqhI3elb1CKZB3+GtU LjOP50nhRdtX7T8iuXZ8bpNQwZ46uzb/cPDiEXU9bLv14eKtzOO12qNeg0+XKV9DR7by 0kC5Errnz+E5HeEnWaoNhnQW07xzdzCsCPfMHC8iABvi9Ezl/mgLgOLLlIheDTJ8FKZi IZ96ZJLoxmrBZ0uI3NwPk7WvzztVZoq1x8cO/XL7ZF9R3A4fZN6slPrSzsB8jX9UDmzZ ySl1TsVO8bqwELcsUaPHnjedrgkEwhbtUYna2GduQZtM6F/DQANt6NDIRGhx0Ql0bPza eMTg== X-Gm-Message-State: AOAM532REJ4bdaybeJ8SrqfqO0UUdOtY2Q3iViRiR/cMJT3f6xc62EeV WkRIt2UGUxTitFdcM3SjMLMPCg== X-Google-Smtp-Source: ABdhPJz5/8mxA1qiicGG2N+7IOeZNeMhwEcpWMGEM59KuhuEqOcUCsU/8VVBUQ8LHzl67/I3gKACyw== X-Received: by 2002:a17:90a:de83:: with SMTP id n3mr2784787pjv.62.1598024136533; Fri, 21 Aug 2020 08:35:36 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id u8sm2200720pjy.35.2020.08.21.08.35.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 08:35:36 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Sam Ravnborg Subject: [PATCH 2/2] drm: panel: simple: Add KD116N21-30NV-A010 Date: Fri, 21 Aug 2020 08:35:15 -0700 Message-Id: <20200821083454.2.Idf25356dff4b36c62704188c3e3d39a2010d6f6a@changeid> X-Mailer: git-send-email 2.28.0.297.g1956fa8f8d-goog In-Reply-To: <20200821083454.1.I61e6248813d797c9eeebfbb7019c713aa71c4419@changeid> References: <20200821083454.1.I61e6248813d797c9eeebfbb7019c713aa71c4419@changeid> MIME-Version: 1.0 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: robdclark@chromium.org, David Airlie , Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Values come from the vendor and have been tested on hardware. Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 4eabfdd3be2d..f499de71ab3d 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2341,6 +2341,34 @@ static const struct panel_desc ivo_m133nwf4_r0 = { .connector_type = DRM_MODE_CONNECTOR_eDP, }; +static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = { + .clock = 81000, + .hdisplay = 1366, + .hsync_start = 1366 + 40, + .hsync_end = 1366 + 40 + 32, + .htotal = 1366 + 40 + 32 + 62, + .vdisplay = 768, + .vsync_start = 768 + 5, + .vsync_end = 768 + 5 + 5, + .vtotal = 768 + 5 + 5 + 122, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc kingdisplay_kd116n21_30nv_a010 = { + .modes = &kingdisplay_kd116n21_30nv_a010_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 256, + .height = 144, + }, + .delay = { + .hpd_absent_delay = 200, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + static const struct display_timing koe_tx14d24vm1bpa_timing = { .pixelclock = { 5580000, 5850000, 6200000 }, .hactive = { 320, 320, 320 }, @@ -4047,6 +4075,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "ivo,m133nwf4-r0", .data = &ivo_m133nwf4_r0, + }, { + .compatible = "kingdisplay,kd116n21-30nv-a010", + .data = &kingdisplay_kd116n21_30nv_a010, }, { .compatible = "koe,tx14d24vm1bpa", .data = &koe_tx14d24vm1bpa,