Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1868549imm; Thu, 20 Sep 2018 04:19:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZi5JgLL4/P5jFR/HK4bXAWoNLpUV43fAaYUi4r2EsMNmkBg2nonMgVKuONkDKJEQJx8QWI X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr37939081pld.227.1537442364035; Thu, 20 Sep 2018 04:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537442364; cv=none; d=google.com; s=arc-20160816; b=BSAaL9XrKNVY9pAcRUgX2UFZQIKuKKdv7YsAGkCqwPJaql4zAs/aLw+fyvLOq+wslO PdOGOwz2Ngb4WLwOdlHEuN9gMpLYwvd8jOXMldLLrogWIWsie5Dp5/6EiOIvTkZJ4a+s zYGSccQvjYT/GzSWNcd7HF7Wvd+8H+4SNvyBPPD293j1kj3md6/4d7VcGfc76XIW2CUX A+ZltrM/Oz/BadV25kTVTJag/Wriw/Ja6FRhB18JPiC3PKD5L7w4tAiFg1OSaA9zvAnj eRkjCJL4VBuH25ruR4Ea9oAPXueSQcF3fC9QaTA/nk280nh7YVGVQT7Loaw2brSnrg/K 1e8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=4Y2IQ4VtN+rezEU25V+k5Xsfk5fjoCJxLbwMiLo5gs8=; b=ZiCCkEeDV8H/W6byb6qW9WghiNkWxkofSn823Q69u4hZYlCKIdR5NP6F2pmFO5tG1n TpA2jas6J8zOO6VO/niG5vPGWuD13xlCfboiKO5C2os3dAjuElpnpNERAtT1SJ+h23HK ODgee67u6GiRQbu5DGk7VcTKWtuFLYYqL1nPMJ8V3gSypwnCu347caavVBCxl/jPDxGg NYRvKQolbyYydQ/08US1SpqFs7w6gpVarvLZ7r61lsori+2zRHsTAkL9CYnRJgbmxCyc EIMSu0TR7qIoUitf2MgoNfUoAv8w8Q4BoE9Tqu/HxvQAQoHk3IVRP5kHvjqspnxozhNw fS3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=iNskHUS1; 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 p24-v6si23965599plo.52.2018.09.20.04.19.07; Thu, 20 Sep 2018 04:19:23 -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=iNskHUS1; 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 S1732499AbeITRBz (ORCPT + 99 others); Thu, 20 Sep 2018 13:01:55 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:35806 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731580AbeITRBz (ORCPT ); Thu, 20 Sep 2018 13:01:55 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5C08D24E11DC; Thu, 20 Sep 2018 04:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1537442336; bh=oXnQNihPmc0fk9RZ4hzCJqavtVIRLP6VcU68oPTG4Q4=; h=From:To:Cc:Subject:Date:From; b=iNskHUS1AbvivhBk8tDDnRncBtSGvRVbLjEzdAx1wLDOFUnCZhsfU8u3JzNWVCfyF Mx2zKDrYmpmvTkU3DjgA4tWyuhgepmSY/OQc0/mZt+Yn5ytlf++DRnTPf5FgeCBDM4 B35rrmgc8PoQB/28LChBsk5F86SWhFkWGhWR+GtKmz/6dQuZvQ0o97zbTrRyX9N/Vt spwayUxqCmbxaSoQZ597Y0U0oQameU0q817SbdBFRDOaaGm7zAh3XABrUJuxE7Tp6Z zFAbzlDvY6AxY214vZLD3xSJFr+34Nn39qQxKw4MH9qNiLpDPJ1kGc+8lj2nYTQ70B DKfnoBLCbqsYQ== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 99B593BC6; Thu, 20 Sep 2018 04:18:52 -0700 (PDT) Received: from de02dwemt291.internal.synopsys.com (de02dwemt291.internal.synopsys.com [10.225.18.65]) by de02.synopsys.com (Postfix) with ESMTP id 77E333E49A; Thu, 20 Sep 2018 13:18:51 +0200 (CEST) Received: from de02dwemt291.internal.synopsys.com (localhost [127.0.0.1]) by de02dwemt291.internal.synopsys.com (8.14.4/8.12.3) with ESMTP id w8KBIpGl028417; Thu, 20 Sep 2018 13:18:51 +0200 Received: (from lolivei@localhost) by de02dwemt291.internal.synopsys.com (8.14.4/8.14.4/Submit) id w8KBIg4P028372; Thu, 20 Sep 2018 13:18:42 +0200 From: Luis Oliveira To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joao.Pinto@synopsys.com, festevam@gmail.com, Luis Oliveira , Mauro Carvalho Chehab , Luis Oliveira , Hans Verkuil , Geert Uytterhoeven , Laurent Pinchart , Arnd Bergmann , Jacob Chen , Neil Armstrong , Keiichi Watanabe , Kate Stewart , Philipp Zabel , Todor Tomov Subject: [V2, 0/5] platform: dwc: Add of DesignWare MIPI CSI-2 Host Date: Thu, 20 Sep 2018 13:16:38 +0200 Message-Id: <20180920111648.27000-1-lolivei@synopsys.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for Synopsys MIPI CSI-2 Host and MIPI D-PHY. The patch series include support for initialization/configuration of the DW MIPI CSI-2 controller and DW MIPI D-PHY and both include a reference platform driver. This will enable future SoCs to use this standard approach and possibly create a more clean environment. This series also documents the dt-bindings needed for the platform drivers. This was applied in: https://git.linuxtv.org/media_tree.git Luis Oliveira (5): media: platform: Add a DesignWare folder to have Synopsys drivers Documentation: dt-bindings: Document the Synopsys MIPI DPHY Rx bindings media: platform: dwc: Add DW MIPI DPHY Rx platform Documentation: dt-bindings: Document bindings for DW MIPI CSI-2 Host media: platform: dwc: Add MIPI CSI-2 controller driver .../devicetree/bindings/media/snps,dw-csi-plat.txt | 74 +++ .../devicetree/bindings/phy/snps,dphy-rx.txt | 36 ++ MAINTAINERS | 11 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 3 + drivers/media/platform/dwc/Kconfig | 43 ++ drivers/media/platform/dwc/Makefile | 4 + drivers/media/platform/dwc/dw-csi-plat.c | 508 ++++++++++++++++++ drivers/media/platform/dwc/dw-csi-plat.h | 76 +++ drivers/media/platform/dwc/dw-dphy-plat.c | 365 +++++++++++++ drivers/media/platform/dwc/dw-dphy-rx.c | 594 +++++++++++++++++++++ drivers/media/platform/dwc/dw-dphy-rx.h | 176 ++++++ drivers/media/platform/dwc/dw-mipi-csi.c | 490 +++++++++++++++++ drivers/media/platform/dwc/dw-mipi-csi.h | 202 +++++++ include/media/dwc/dw-mipi-csi-pltfrm.h | 101 ++++ 15 files changed, 2684 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt create mode 100644 Documentation/devicetree/bindings/phy/snps,dphy-rx.txt create mode 100644 drivers/media/platform/dwc/Kconfig create mode 100644 drivers/media/platform/dwc/Makefile create mode 100644 drivers/media/platform/dwc/dw-csi-plat.c create mode 100644 drivers/media/platform/dwc/dw-csi-plat.h create mode 100644 drivers/media/platform/dwc/dw-dphy-plat.c create mode 100644 drivers/media/platform/dwc/dw-dphy-rx.c create mode 100644 drivers/media/platform/dwc/dw-dphy-rx.h create mode 100644 drivers/media/platform/dwc/dw-mipi-csi.c create mode 100644 drivers/media/platform/dwc/dw-mipi-csi.h create mode 100644 include/media/dwc/dw-mipi-csi-pltfrm.h -- 2.9.3