From patchwork Fri Dec 4 08:19:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11950933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C425C433FE for ; Fri, 4 Dec 2020 08:20:03 +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 24B5022573 for ; Fri, 4 Dec 2020 08:20:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24B5022573 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com 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 757976E138; Fri, 4 Dec 2020 08:20:01 +0000 (UTC) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id C42076E134 for ; Fri, 4 Dec 2020 08:19:59 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id 23so4423017wrc.8 for ; Fri, 04 Dec 2020 00:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uFjKy1JMQGds6QCWv9HgfQo7basi56RFkixKbM89qBQ=; b=iLmFK7YliCdlWPtPemg20hSOC9+X0t97zFpxwojlugyjm5Ntx5rhE2aymcQjZFsI7A FcAkMDcv4bJ4q7Wv/C9JK60TLmp0sRkQFNE1k8Qk8lt2bSoIoKCak+UH5vbtlcXeBdRz m73MSfm60b/c4NPBoAaarCInCaV2yx1Wh1KIbMGbBprjxwQ89iAlXD+IAvlGY4vCFtql iMb/7WcIp3bpSXipN7GY2Ex9qkHJ2SXlMY51CpWW61OJbWOa1UcTNcSJ8TvaHl/2f07E q+lqbW/z1pxM8yXsNze2PxmqhbgYt/FAaYzbN5JslOIwNF1R+ghXS6L3AxwFYKxsAino 2smg== 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=uFjKy1JMQGds6QCWv9HgfQo7basi56RFkixKbM89qBQ=; b=tLWg9+PWxST2WOwlZ6WMj/40TBOxCl9X9MQgTkTx+B71cEAlr0TpGMFF4RE4sC3Pua C1Z6DV100RPTNXeN456d5PUt8yNngOu86OPdp7qHabSbiuz4Yym7NNIHz6Z8pZ4zaUdH wvSLhUU5LGCV6h5odDwB9QiGRgwY7GbzC5Oxh2GETLcNosJl+AT94lDhFq3h6BMd69W1 RT6hD19wcWuZGZlo1JOtCJEBY1szLssTmQ4lvAcs8Jfl3ej9h49QXUuFklozNrMQK5tw 2GdhKcw7XtAbW72262AOYB0VeEr64slm77EEjl08EAELZVenz/aYPCqciZE3WJXZC/TT CObw== X-Gm-Message-State: AOAM530NYRmd0CwCpCktCnY0enTjWj/si0MKTIYHtRhyKiC5etIq0mzE 4Vn1zfXXCy7hsm/Vm4BpRQe4GQ== X-Google-Smtp-Source: ABdhPJykB+eU1y7MuAmsKGB/sLYnbS2V5dqlJBOTpU3F9+1gTVE8TYjBwDFd8NbGB5pAHfOHTslnWA== X-Received: by 2002:a5d:634c:: with SMTP id b12mr3477924wrw.130.1607069998193; Fri, 04 Dec 2020 00:19:58 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2ec0:82b0:296a:40d9:d5a0:bbc5]) by smtp.gmail.com with ESMTPSA id b17sm1691156wrv.10.2020.12.04.00.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 00:19:57 -0800 (PST) From: Neil Armstrong To: sam@ravnborg.org Subject: [PATCH v2 0/2] drm: panel: add support for the Khadas TS050 panel Date: Fri, 4 Dec 2020 09:19:47 +0100 Message-Id: <20201204081949.38418-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 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: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Neil Armstrong Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This add support & bindings for the Khadas TS050 1080x1920 5" LCD DSI panel designed to work with the Khadas Edge-V, Captain, VIM3 and VIM3L Single Board Computers. It provides a MIPI DSI interface to the host, a built-in LED backlight and touch controller. Changes since v1: - removed drm_print include - added reset_gpio to 1 after prepare failure - now ignore regulator_disable() on prepare failure - mark prepared=false whatever the result of the unprepare function errors - also reset_gpio to 1 on unprepare - do not return on mipi_dsi_dcs_enter_sleep_mode error on unprepare - mark enabled=true unconditionnally - use dev_err_probe in probe() Neil Armstrong (2): dt-bindings: panel-simple-dsi: add Khadas TS050 panel bindings drm: panel: add Khadas TS050 panel driver .../display/panel/panel-simple-dsi.yaml | 2 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-khadas-ts050.c | 866 ++++++++++++++++++ 4 files changed, 880 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-khadas-ts050.c