Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5066490ybb; Tue, 24 Mar 2020 10:19:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGiBHbUnj5r5D2LjqpvLScv78dOtxW0nIp20sUhujZP1J+jUhG0BwpgJe0F+3X67qHzu2M X-Received: by 2002:a4a:d794:: with SMTP id c20mr2335975oou.77.1585070395796; Tue, 24 Mar 2020 10:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585070395; cv=none; d=google.com; s=arc-20160816; b=KblX7C06UpBSotAcREgGoXboNFkLgNAykGcsTquXC1EWogdnuSQxz3MyXrvZx6siOf 01EnfuyF/FDbujHb8w8IcxgJ6nycU13itENNNoJQxa9YnkSj+b8YYXrLanjb+CrUt83n rUfN2l0G00O3aORmsJ1t440dHmymtEKaOCn4hSUWOR8Q5ZcXaMCXvLPXTm7InIqnKos9 45oyjiVD0U9mAI+reA5c191fcFALhQt9c/izQXRNICsZLCW4plyan75JYWC7+PJDL5Cq FqQU2uVwE+22HZxd842YosHLcqFySbnryRKIon/HG9bOdCxAIsjRf7bbGcDpOugMm4qU dbKw== 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=IXsBIUTUdMGxXmAB0VVdCIKuJVeKuQbk53+zCX84Z64=; b=yj1E4Cxcn/M3qU0hRTioo8xMZmC7r+RkxtyNdk6Km/kGS/8BAesD8Yfud6AbLss6hG Xg9r1UUVjkd5esRD+MJEok4KczS/hATsywNj6Bd3/1U7OkvuCjgYoMAktQDgJGicUrz0 jnImRYVKGQzlCR3AVW1lGNV9y+oFjBZMO9eiwn0qEhHIJ3286PriJ+Au2XVU7DmuysZr XUG4OMdrBS5X9+DjNRZ5zGLfmePrk6iBaN8XWnvi5yhPtidu6burFVKEFcgew2KMIp3b TT+u5PT88Ckb3xVjvpG3fIkksgSc2ZdykvP79zihvf1ax8gHwQBzhvsQZxJYqE1XMlAy BQlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=kBGmh0Is; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n64si7255593oih.256.2020.03.24.10.19.44; Tue, 24 Mar 2020 10:19:55 -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=pass header.i=@synopsys.com header.s=mail header.b=kBGmh0Is; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbgCXRTW (ORCPT + 99 others); Tue, 24 Mar 2020 13:19:22 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:51420 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727618AbgCXRTU (ORCPT ); Tue, 24 Mar 2020 13:19:20 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (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 2B710C0AB6; Tue, 24 Mar 2020 17:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1585070359; bh=2QP/AMCYY5OZlhosxCkkAXzxRgBxPrrSDdzsBqHJb9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=kBGmh0Is46AcIlilm+IgEgEZKGN0KB31js2bxCmgWDxD6JrBxUbNXtpNgCrM7nBuO rV1HfYLTVgsX65Z3imFJoYQ3/ofDYDsEJ/c46lIJm2u5Hdcjq3eDubynbHOgj9S7FL Oqf+iqXU7Fp6CFP5v2nuQ+joyq6w8hK3mFO1VXuAfLr8IBtY85Fa3NBj6lMuIL9DF+ OLfZDI+8YJNlgA4iyrtps+b7hGLgvAfe/3/2n7jHgEgdMzVwFWez1v4b2UDma9aVnE zDGcvXTsG7JNLC8FQeFUX8J24UYiWg3AhPlIOorGofGKSeopKSYF8F5PpFkdmbqxWr w3YhLR+lQWfvg== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id B5A41A0061; Tue, 24 Mar 2020 17:19:16 +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 , Gustavo Pimentel , Joao Pinto Subject: [PATCH 3/4] drm: ipk: Add extensions for DW MIPI DSI Host driver Date: Tue, 24 Mar 2020 18:18:21 +0100 Message-Id: <8ee8c9ccec2856c81cb3a6decacbc6739e20bae5.1585067507.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: Gustavo Pimentel Cc: Joao Pinto Signed-off-by: Angelo Ribeiro --- drivers/gpu/drm/ipk/Kconfig | 9 + drivers/gpu/drm/ipk/Makefile | 2 + drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c | 556 ++++++++++++++++++++++++++++++++++ 3 files changed, 567 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 51d2774..c80503f 100644 --- a/drivers/gpu/drm/ipk/Makefile +++ b/drivers/gpu/drm/ipk/Makefile @@ -4,3 +4,5 @@ ipk-drm-y := \ 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..070eccb --- /dev/null +++ b/drivers/gpu/drm/ipk/dw-mipi-dsi-ipk.c @@ -0,0 +1,556 @@ +// 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