Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp804802imm; Wed, 10 Oct 2018 04:43:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV62DAYLLITuGpY2AUCAHPghT2O7z0t0nDRccpiOlt0McPNGnGoqvm6YnuDxzYA6wIAFYLgC7 X-Received: by 2002:a17:902:40d:: with SMTP id 13-v6mr32846341ple.257.1539171801860; Wed, 10 Oct 2018 04:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539171801; cv=none; d=google.com; s=arc-20160816; b=KTNjRU7LzF/s25w69JFhFpb9E02283vW6Z0mqRQVj+kpRlhQdVnrY/UQ6bOPJPTvw7 tq7390sYa/+zN5phcmmfWfgNFS9mMM0qZ2KRVnmkJ/UQ7i1es8l4rs/Y6vmGzo04QGEA mvjgWAoypWelotDT9C+4jimQYCzfPfZzwE5SVPCZ2RGeeXPTZNnSxUUsOLBana2iVRpq ZVsBFEV3DcGqsec0c71yzNn83NKHEhgSOQOEc1s8knZmVc5YvcUknq7fZIccKAcs1fsu prl5xn+VltZgURaD2PXGMJirG4BiHoOeJ5GsDjpMzZ0EXKIBqRmb5cOs0dyI7PYDM2we vrLw== 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; bh=XNCaFn+ru+YqbyYg23G7SEEx3f8Q68/Opcyk0/eMPDA=; b=fTq5sMF+wcHRyv0AUpNuFGWAyKJ69WMj0AqS5AeCfnRdLsEpOlGfAML73ggAIH37Ua cyOORLB7qH9Er90xzlUlWTfdlUWK3tTuTaz0lD2deeCEQ2qIRaedI5UYla3TG7jem3iu 0FgG/hEoIcLG62TNxuJNVXxRD7ieWIsMX/8UaawXVzMVwEDGv7CIo4awHGj2/ZUqGXOQ g17IUlBee0sZc5LOHelPHRV5iyQH6ZvGIB1wvwpNq0Ezl8gUfTpFq9B7SHAqNUe367DG +LrW8o4nblIAFJFacnzFiKXZtPyD3/LR3o+K5vsEWzr8+zgecgKq00eUonLuSuvRW2tE oJeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8-v6si24673775pgh.447.2018.10.10.04.43.07; Wed, 10 Oct 2018 04:43:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726892AbeJJTES (ORCPT + 99 others); Wed, 10 Oct 2018 15:04:18 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:35774 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeJJTES (ORCPT ); Wed, 10 Oct 2018 15:04:18 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 1C2B4C0000; Wed, 10 Oct 2018 13:42:32 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 6414BC100B; Wed, 10 Oct 2018 13:42:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 07D4BC0573; Wed, 10 Oct 2018 13:41:57 +0200 (CEST) From: Paul Kocialkowski To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , David Airlie , linux-sunxi@googlegroups.com, Mark Van den Borre , Gerry Demaret , Luc Verhaegen , Paul Kocialkowski Subject: [PATCH 2/4] drm/panel: simple: Add support for the Lemaker BL035 3.5" LCD Date: Wed, 10 Oct 2018 13:41:32 +0200 Message-Id: <20181010114134.8211-2-contact@paulk.fr> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181010114134.8211-1-contact@paulk.fr> References: <20181010114134.8211-1-contact@paulk.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for the 3.5" LCD panel from Lemaker, sold for use with BananaPi boards. It comes with a 24-bit RGB888 parallel interface and requires an active-low DE signal Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 97964f7f2ace..229080fcf65e 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1461,6 +1461,30 @@ static const struct panel_desc kyo_tcg121xglp = { .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, }; +static const struct drm_display_mode lemaker_bl035_mode = { + .clock = 7000, + .hdisplay = 320, + .hsync_start = 320 + 20, + .hsync_end = 320 + 20 + 30, + .htotal = 320 + 20 + 30 + 38, + .vdisplay = 240, + .vsync_start = 240 + 4, + .vsync_end = 240 + 4 + 3, + .vtotal = 240 + 4 + 3 + 15, + .vrefresh = 60, +}; + +static const struct panel_desc lemaker_bl035 = { + .modes = &lemaker_bl035_mode, + .num_modes = 1, + .size = { + .width = 70, + .height = 52, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_LOW, +}; + static const struct drm_display_mode lg_lb070wv8_mode = { .clock = 33246, .hdisplay = 800, @@ -2456,6 +2480,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "kyo,tcg121xglp", .data = &kyo_tcg121xglp, + }, { + .compatible = "lemaker,bl035", + .data = &lemaker_bl035, }, { .compatible = "lg,lb070wv8", .data = &lg_lb070wv8, -- 2.19.0