Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1278292imd; Thu, 1 Nov 2018 13:04:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5fRqUWgInIW8qeUeTfsDt+kK4x7yau4DLLgZ9dd6i6VaNHBEVPA8exmOdTRHfuEu5zEt3Y6 X-Received: by 2002:a63:2315:: with SMTP id j21mr8472901pgj.297.1541102693340; Thu, 01 Nov 2018 13:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541102693; cv=none; d=google.com; s=arc-20160816; b=PRXMMfKvI/bFLhDS+OtH86S6m7UGYI4vWLkOiyL6ZX2UbjU6sanbbHz6eA10xcmzh1 LoBzhOuL/QOJhieEM3QLNifxCDZ7nBMN7MYRba390pwdEzGFB/zOeHcMJtXk5cuUDkdM nyA19OJPwKUEggTdEu/vmC9+bAPdJK8VHKOhx60z+EKRkC4JXiq1nWSra7ZmIDK8kmv9 Sja/aUfbnMPbdsNfq3XSkVFmwAgXNfmJ0xAVDd8+piRH9QAkv/V54sbEbfjQiaCuumoX PyPb4O8oa33SbP1InWz3WxUDA9kF9kHB8G4Znf7NK5pcY0D7fUmFhFDJJdsfhtOGaqbr 9Bag== 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=e6j07Rp0D45TvesVDw+5NPlJLsPyJpnqWMk/pg8YViU=; b=EWdr45QIfWw8mUlcE6p6V9kLLlAXEe7N8GugXk5liKvMk2s6KaDUNrnuTuk8SQrgup oYF74giPw1bkWQMSfxATB6ztJkCofoubr4eFyeQSVZPsjletaAc8Gl3hAEG6u2Ttkf4B /jKWM41UFbHOUj8UovGu6KAcd1cRexiqT2T9RTVG/e1gKmGZTxfP+mdWYV8SH580eOoU N0sAhts1AdAej285M9VtvB3LnrF5KfMUV0SdqaOw84O2FQwUFjfa+KUycm0x2wcYq1N9 vzb6LYCOSqm88Ocnjni/+OiszKGKoTAOqjesQMMLXdruNBTe8FII/86MvTsN329kPV4E tmdg== 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 b13-v6si506188plm.316.2018.11.01.13.04.37; Thu, 01 Nov 2018 13:04:53 -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 S1727764AbeKBFG5 (ORCPT + 99 others); Fri, 2 Nov 2018 01:06:57 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:46024 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbeKBFG4 (ORCPT ); Fri, 2 Nov 2018 01:06:56 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 65308BFA47; Thu, 1 Nov 2018 21:02:30 +0100 (CET) Received: by gagarine.paulk.fr (Postfix, from userid 114) id DBFCCC107E; Thu, 1 Nov 2018 21:02:29 +0100 (CET) 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 E7FDAC1043; Thu, 1 Nov 2018 21:00:34 +0100 (CET) From: Paul Kocialkowski To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , linux-sunxi@googlegroups.com, Paul Kocialkowski Subject: [PATCH v2 5/7] drm/panel: simple: Add support for the LeMaker BL035-RGB-002 3.5" LCD Date: Thu, 1 Nov 2018 21:00:43 +0100 Message-Id: <20181101200045.6078-6-contact@paulk.fr> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181101200045.6078-1-contact@paulk.fr> References: <20181101200045.6078-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 90296090340e..8e147cfa7b88 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1562,6 +1562,30 @@ static const struct panel_desc kyo_tcg121xglp = { .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, }; +static const struct drm_display_mode lemaker_bl035_rgb_002_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_rgb_002 = { + .modes = &lemaker_bl035_rgb_002_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, @@ -2569,6 +2593,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "kyo,tcg121xglp", .data = &kyo_tcg121xglp, + }, { + .compatible = "lemaker,bl035-rgb-002", + .data = &lemaker_bl035_rgb_002, }, { .compatible = "lg,lb070wv8", .data = &lg_lb070wv8, -- 2.19.1