Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp562194ybh; Tue, 10 Mar 2020 04:09:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt7wkXbrP8NNtaNyKJ96M8I25sBMEEPOpcba82dOnw/+1qsI7cU9PrkuKnup9efE2yWcKJK X-Received: by 2002:a9d:882:: with SMTP id 2mr1592835otf.198.1583838590975; Tue, 10 Mar 2020 04:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583838590; cv=none; d=google.com; s=arc-20160816; b=DXyWXkffd1TEYBLLck3FF+1rQarL4nPmgBcitdHWC08oG0xBTz9+LMh4JuB3VHbxya RvNggQAlJdrM3t+qbha/iijoMikcPqgygOYYFEn/pGe5F62dhcjTVUDPjg+64eEVtj1a ISNPVdr9QBYJfBpu7bS62f7wKtpvruHZKsGYXBfR31kAI7d6Bg9l3gHoFXUVhrPPo52I hyP6A9kKCoPvE78IfVWvHh9oHGI4rH2UtlBocUR214bVFBVejZLDEzulRc8LJHjC6IPJ fnMOltDUe5EMotovjndCpYNy+UKR+Eiy0/1PdH9GjZgf6F3cB/JDqog2LNV+2f/P2BVV tfAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3IKSYKtw2n6yNxpaRbwsTLkcDXqG5XqbFrwDDbF1iTo=; b=phL2AFlooHMX515iDSbLw3dnCinE1nlN9uA0qULMsL5MjCFjG4aPauWZ/6sSlQdpBr U1obxCCqr1CbtuhRcRCPAoSq9W7DYdYoue0lDT6T0GXxj49ek/5AY+hLxRUqVg6lOwDc MnQSEkxCYQKSQVnd3em4msRh3dYco/szThp4f956i2e2PxrtYoj5wcdwF4mFIyj6rG4T pXb0hA0Y3UIqq4BnmkIC24MiSjCo4FHRpSV5OLrSNMtXHxVcfYs+G3EyLZg5kCC4c44B Z6Rp0PBckNv1IQpg2z2QQwQMQnSRkVmEeOePcSXgzBiB5cVT48Upzgjgs1+ANY+A/i6c RAPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=q2+FGgY0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si7530991oti.124.2020.03.10.04.09.37; Tue, 10 Mar 2020 04:09:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=q2+FGgY0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726295AbgCJLJT (ORCPT + 99 others); Tue, 10 Mar 2020 07:09:19 -0400 Received: from web0081.zxcs.nl ([185.104.29.10]:43580 "EHLO web0081.zxcs.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbgCJLJS (ORCPT ); Tue, 10 Mar 2020 07:09:18 -0400 X-Greylist: delayed 2469 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 Mar 2020 07:09:17 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pascalroeleven.nl; s=x; h=Content-Transfer-Encoding:MIME-Version:References :In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3IKSYKtw2n6yNxpaRbwsTLkcDXqG5XqbFrwDDbF1iTo=; b=q2+FGgY0n/8I2ypRNbhdzFXmqe v0RSk3+nlIPz7V1WNA4b2mV2GDPyr7Zu2w2nsC6m6IDsFTa+C/EvGl5f7bD3ICTSHBttf2qA7ew/B xlpjY0minYaq3RrdJDEh/ik+cnx1GxwSl2Mmh/n4X+n7gKtdx6y5qTBj3lis5R43C43SG74Aj8M/K Umi/D9E+BWGRi7OdWzpUKecpD+kPoF42Tc6HVsAJ9D6BmYo4irlzvlUZOiY6Cn6zqP0ZnYOfpJmPc z2niDfCBx86K/mz0ndvyQrDg7iXNLXSfbvMUo2PvgpBgtNGsvsXWhyk50Xq/25ZVA7amTh977Ogf7 WFyBuphg==; Received: from ip565b1bc7.direct-adsl.nl ([86.91.27.199]:35430 helo=localhost.localdomain) by web0081.zxcs.nl with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1jBc7q-0017It-Mh; Tue, 10 Mar 2020 11:28:38 +0100 From: Pascal Roeleven To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-sunxi@googlegroups.com, Pascal Roeleven Subject: [PATCH 1/2] drm/panel: Add Starry KR070PE2T Date: Tue, 10 Mar 2020 11:27:23 +0100 Message-Id: <20200310102725.14591-2-dev@pascalroeleven.nl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200310102725.14591-1-dev@pascalroeleven.nl> References: <20200310102725.14591-1-dev@pascalroeleven.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: dev@pascalroeleven.nl Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The KR070PE2T is a 7" panel with a resolution of 800x480. KR070PE2T is the marking present on the ribbon cable. As this panel is probably available under different brands, this marking will catch most devices. Signed-off-by: Pascal Roeleven --- .../display/panel/starry,kr070pe2t.txt | 7 +++++ drivers/gpu/drm/panel/panel-simple.c | 26 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt diff --git a/Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt b/Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt new file mode 100644 index 000000000..699ad5eb2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt @@ -0,0 +1,7 @@ +Starry 7" (800x480 pixels) LCD panel + +Required properties: +- compatible: should be "starry,kr070pe2t" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index e14c14ac6..027a2612b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2842,6 +2842,29 @@ static const struct panel_desc shelly_sca07010_bfn_lnn = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct drm_display_mode starry_kr070pe2t_mode = { + .clock = 33000, + .hdisplay = 800, + .hsync_start = 800 + 209, + .hsync_end = 800 + 209 + 1, + .htotal = 800 + 209 + 1 + 45, + .vdisplay = 480, + .vsync_start = 480 + 22, + .vsync_end = 480 + 22 + 1, + .vtotal = 480 + 22 + 1 + 22, + .vrefresh = 60, +}; + +static const struct panel_desc starry_kr070pe2t = { + .modes = &starry_kr070pe2t_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 152, + .height = 86, + }, +}; + static const struct drm_display_mode starry_kr122ea0sra_mode = { .clock = 147000, .hdisplay = 1920, @@ -3474,6 +3497,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "shelly,sca07010-bfn-lnn", .data = &shelly_sca07010_bfn_lnn, + }, { + .compatible = "starry,kr070pe2t", + .data = &starry_kr070pe2t, }, { .compatible = "starry,kr122ea0sra", .data = &starry_kr122ea0sra, -- 2.20.1