From patchwork Tue Mar 30 17:33:32 2021
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pratyush Yadav
X-Patchwork-Id: 12173339
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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,
INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT
autolearn=unavailable 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 D9704C433F1
for ; Tue, 30 Mar 2021 17:35:15 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [23.128.96.18])
by mail.kernel.org (Postfix) with ESMTP id 9B4A3619D7
for ; Tue, 30 Mar 2021 17:35:15 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S232455AbhC3Ren (ORCPT );
Tue, 30 Mar 2021 13:34:43 -0400
Received: from fllv0016.ext.ti.com ([198.47.19.142]:59520 "EHLO
fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S232311AbhC3Re2 (ORCPT
);
Tue, 30 Mar 2021 13:34:28 -0400
Received: from lelv0265.itg.ti.com ([10.180.67.224])
by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12UHXtnt056809;
Tue, 30 Mar 2021 12:33:55 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com;
s=ti-com-17Q1; t=1617125635;
bh=klDN3SRCgEm92mzhH+b10dVnhg4f/bIDdg6mQxTtm4o=;
h=From:To:CC:Subject:Date;
b=DHU9Kl08+poeyMRGZ5LTonGYtO7avzKKZPcvTTCoiUpl9Ktnuu2CYUcLN67MxO0QL
c+PXjfelxxXwJx/WMkyYUeY9TaFO46ja46uDOiAAch4VTI8+pakFrtBXwEZcgahdv7
1n+BOxAQcroO2uGMB0Xv+sHyr8gCxw9jq+Jx1qRI=
Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34])
by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12UHXtdE031312
(version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL);
Tue, 30 Mar 2021 12:33:55 -0500
Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE113.ent.ti.com
(10.64.6.34) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 30
Mar 2021 12:33:55 -0500
Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE112.ent.ti.com
(10.64.6.33) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via
Frontend Transport; Tue, 30 Mar 2021 12:33:55 -0500
Received: from pratyush-OptiPlex-790.dhcp.ti.com (ileax41-snat.itg.ti.com
[10.172.224.153])
by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12UHXmgh125244;
Tue, 30 Mar 2021 12:33:49 -0500
From: Pratyush Yadav
To: Mauro Carvalho Chehab ,
Rob Herring ,
Kishon Vijay Abraham I ,
Vinod Koul ,
Peter Ujfalusi ,
Maxime Ripard ,
Benoit Parrot ,
Hans Verkuil ,
Alexandre Courbot ,
Laurent Pinchart ,
Stanimir Varbanov ,
Helen Koike ,
Michael Tretter ,
Peter Chen ,
Chunfeng Yun ,
, ,
, ,
CC: Pratyush Yadav ,
Vignesh Raghavendra ,
Tomi Valkeinen
Subject: [PATCH 00/16] CSI2RX support on J721E
Date: Tue, 30 Mar 2021 23:03:32 +0530
Message-ID: <20210330173348.30135-1-p.yadav@ti.com>
X-Mailer: git-send-email 2.30.0
MIME-Version: 1.0
X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180
Precedence: bulk
List-ID:
X-Mailing-List: linux-media@vger.kernel.org
Hi,
This series adds support for CSI2 capture on J721E. It includes some
fixes to the Cadence CSI2RX driver, adds Rx support to Cadence DPHY
driver, and finally adds the TI CSI2RX wrapper driver.
Tested on TI's J721E with OV5640 sensor.
Paul Kocialkowski (1):
phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes
Pratyush Yadav (15):
phy: cdns-dphy: Prepare for Rx support
phy: cdns-dphy: Allow setting mode
phy: cdns-dphy: Add Rx support
media: cadence: csi2rx: Add external DPHY support
media: cadence: csi2rx: Soft reset the streams before starting capture
media: cadence: csi2rx: Set the STOP bit when stopping a stream
media: cadence: csi2rx: Fix stream data configuration
media: cadence: csi2rx: Turn subdev power on before starting stream
media: cadence: csi2rx: Add wrappers for subdev calls
dmaengine: ti: k3-psil-j721e: Add entry for CSI2RX
dt-bindings: media: Add DT bindings for TI CSI2RX driver
media: ti-vpe: csi2rx: Add CSI2RX support
dt-bindings: phy: Convert Cadence DPHY binding to YAML
dt-bindings: phy: cdns,dphy: make clocks optional
dt-bindings: phy: cdns,dphy: add power-domains property
.../devicetree/bindings/media/ti,csi2rx.yaml | 70 ++
.../devicetree/bindings/phy/cdns,dphy.txt | 20 -
.../devicetree/bindings/phy/cdns,dphy.yaml | 52 +
MAINTAINERS | 7 +
drivers/dma/ti/k3-psil-j721e.c | 10 +
drivers/media/platform/Kconfig | 11 +
drivers/media/platform/cadence/cdns-csi2rx.c | 269 ++++-
drivers/media/platform/ti-vpe/Makefile | 1 +
drivers/media/platform/ti-vpe/ti-csi2rx.c | 964 ++++++++++++++++++
drivers/phy/cadence/cdns-dphy.c | 407 +++++++-
include/linux/phy/phy-mipi-dphy.h | 13 +
11 files changed, 1754 insertions(+), 70 deletions(-)
create mode 100644 Documentation/devicetree/bindings/media/ti,csi2rx.yaml
delete mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy.txt
create mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy.yaml
create mode 100644 drivers/media/platform/ti-vpe/ti-csi2rx.c
---
2.30.0