Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2923141ybz; Mon, 27 Apr 2020 07:02:58 -0700 (PDT) X-Google-Smtp-Source: APiQypK0hZdnTiRdHPppjVwD5Z418F6Slnzux/XVSgMZzOB5V+BlrnuX6Pq1jk2KAkI402NyQAbH X-Received: by 2002:aa7:c453:: with SMTP id n19mr18507099edr.218.1587996178673; Mon, 27 Apr 2020 07:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587996178; cv=none; d=google.com; s=arc-20160816; b=zCAq72qDCm3BCGvX3pQahdrky0P1VuYvYng9iySTE+Gqi0UOTWz5tKrQVKdH9t204R myu8w2v0+8CGuL8PPbMoPZxgW+durhC0PBagBYB0tQunqUK2gjY4zMerxU/eAzUq+OxP 7RJR/VN1K6RcQoNCn6Zmv4ufkPH5hZH2FdJ6VBY05NBx/CD3+G7rCDqoLfmOOyUJ/J5I eCERs8fXLY5J8YwdSWIlHVaZX3PS2hAiAPAqnghAIu1JzwjtNFxhd6WZKasbGT/grh31 4aEFCXNI3mCt3+X5h8RByfO9l49LLWIRz3u7KMF2wDKdzIDHn7wtoUxbQq+KZdDs7Bef Qo8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=05TgwCWUZqqp0HxW9sExAGDT3q0tdf9JvvPzNZjhAHk=; b=vb7i7NdIXd3i0gR2m3DLyEvpWDCo7YYSkjlfPTlTQTQAq467KSxXN0m7omA7UoICGU PR6tHfqT0lzymn2xUqgMAAwDYsJbZ149D9w5BjxuTVYLt6yWtSfT/A2Xr8Wa6OOQUqm5 Ehxkhr684vUjvKolV6j04z2XZpIuENyRZ6NVK+NvKO5c3+8XSmtDEsq/T+lfH8SXO5hI 1n/lAb3PwGttvIZfdTvN9BTBsD1vkRsy9SxUnbU7p7u2m0f1oIzqa4zYYesiGjXSs+qV 1uNISxfqWfpJ0m3YK1BhKElfu3yfDcH8uBlyYj+eoo17La9apb6w9QO1NrwHr2ma515l TkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=D30c8ehs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si8197491ejb.97.2020.04.27.07.02.22; Mon, 27 Apr 2020 07:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=D30c8ehs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727919AbgD0OAu (ORCPT + 99 others); Mon, 27 Apr 2020 10:00:50 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:55968 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727824AbgD0OAs (ORCPT ); Mon, 27 Apr 2020 10:00:48 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 0EB5B40216; Mon, 27 Apr 2020 14:00:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1587996048; bh=OMUm9oUj6exviV94c+1DzYj85Ju6/SuvbzNjc27vPHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=D30c8ehsSglTRqMTjW+6knFFbUHtyX9ZxudpzlPHQOEJviujGOpT9FyeDD9rJMcMp Q0FdxKxvt5bahmGb72NBSHG/ocd7ntd7sGYJDjcMqUjeo1FElHTS4u7SyBde74irse yUhu/F8jsRoDLyNSmqrzfX9UgjitQVLkhUT/AuhpCeXG3rTdhTfCRL23RzZrO9WRv7 rH1RUP7t0NdNmk128RlW6+EWQlmTVmKBJe2JviuZeBcGzUgVXXogH21DTuE10G/pq6 /xDgRYuCi3Cel6x6ryoAMZejjG0HS2d54/tFTKXzcQ25Gp9kM8gk4+BL27y0V3H4IM /h9cnngpwGn4g== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 52027A0069; Mon, 27 Apr 2020 14:00:45 +0000 (UTC) From: Angelo Ribeiro To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Angelo Ribeiro , Maarten Lankhorst , Maxime Ripard , David Airlie , Daniel Vetter , Sam Ravnborg , Gustavo Pimentel , Joao Pinto Subject: [PATCH v3 3/4] drm: ipk: Add extensions for DW MIPI DSI Host driver Date: Mon, 27 Apr 2020 16:00:35 +0200 Message-Id: <24372475c0afe1e88f323efec16300903d1c6294.1587992776.git.angelo.ribeiro@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Synopsys DesignWare IPK specific extensions for Synopsys DesignWare MIPI DSI Host driver. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: Sam Ravnborg Cc: Gustavo Pimentel Cc: Joao Pinto Signed-off-by: Angelo Ribeiro --- Changes since v3: - Rearranged headers. --- drivers/gpu/drm/ipk/Kconfig | 9 + drivers/gpu/drm/ipk/Makefile | 2 + drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c | 557 ++++++++++++++++++++++++++++++++++ 3 files changed, 568 insertions(+) create mode 100644 drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c diff --git a/drivers/gpu/drm/ipk/Kconfig b/drivers/gpu/drm/ipk/Kconfig index 1f87444..49819e5 100644 --- a/drivers/gpu/drm/ipk/Kconfig +++ b/drivers/gpu/drm/ipk/Kconfig @@ -11,3 +11,12 @@ config DRM_IPK Enable support for the Synopsys DesignWare DRM DSI. To compile this driver as a module, choose M here: the module will be called ipk-drm. + +config DRM_IPK_DSI + tristate "Synopsys DesignWare IPK specific extensions for MIPI DSI" + depends on DRM_IPK + select DRM_DW_MIPI_DSI + help + Choose this option for Synopsys DesignWare IPK MIPI DSI support. + To compile this driver as a module, choose M here: the module + will be called dw-mipi-dsi-ipk. diff --git a/drivers/gpu/drm/ipk/Makefile b/drivers/gpu/drm/ipk/Makefile index 6a1a911..f22d590 100644 --- a/drivers/gpu/drm/ipk/Makefile +++ b/drivers/gpu/drm/ipk/Makefile @@ -2,3 +2,5 @@ ipk-drm-y := dw-drv.o dw-vpg.o obj-$(CONFIG_DRM_IPK) += ipk-drm.o + +obj-$(CONFIG_DRM_IPK_DSI) += dw-mipi-dsi-ipk.o diff --git a/drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c b/drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c new file mode 100644 index 0000000..f8ac4ca --- /dev/null +++ b/drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c @@ -0,0 +1,557 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2019-2020 Synopsys, Inc. and/or its affiliates. + * Synopsys DesignWare MIPI DSI solution driver + * + * Author: Angelo Ribeiro + * Author: Luis Oliveira + */ + +#include +#include +#include +#include +#include + +#include