Message ID | 20230731-upstream_csi-v8-4-fb7d3661c2c9@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1881992vqg; Mon, 31 Jul 2023 01:54:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHuSgTLwbR3AsZ4qir0xpPe3/5+FapomwGx+V6IN4FH7I7mWAdqdxTfOJTNnxcVA4Hw91Xw X-Received: by 2002:a05:6a20:a11d:b0:13d:3b4d:e4b4 with SMTP id q29-20020a056a20a11d00b0013d3b4de4b4mr7032153pzk.9.1690793667466; Mon, 31 Jul 2023 01:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690793667; cv=none; d=google.com; s=arc-20160816; b=AfaepTOazT8iId94vUNaVqwMQWZbWHucIrugxcoKAodI5M1iLf07DnEv/tBhAlkD0n fdtNb9uUD22RGZYqSumD03CTBXAsgjt4asB2vMVBv1apL5rwN4v4Lh3uWRNlY1aK1Iax mgTwEHmuZDOC+ea4Fb9I1DHbQfB8yeX1JkpTlkEVDbQBGDMKn/KhW2Mu6YeV5oqJIzX1 esax0wTeCbDZtcNl66LKkk/xIsh3STs3d/C5VSTXvrvYczbu+d8jeQVVE+GhF1WSlq+y ZK8W24zmoVzA+GQZmBFpN8jZJYLgnoEYB5s89PORzHhZeokZz9Hb9OD+BBX05BS59PVh 8g6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=psuyjoOHFt8mMG0vCLisbP0KuLODJVZVf6ULOORRK/g=; fh=V3yzwYxt4PgbnoX3kc2m6CeiASFvGUTpa1ANjIQvoCg=; b=Y+0pvNcEh+EaQ+zVqs2xP6r669OV2VmWcO6l2+yXSWJauc/RTJjHJXdinzU/cY0sun GBg5xfgcA9dSJJ0PDhNZAWIZcSpPL6paq0fPP6dYFTN09hKcL6eIdkhCP0WnsYmsJmGI jNtgU5kxcpXxwx/t7XOjZGx9e9tGycYsAHoJUNRWTQ85+hylgiNIbi42Zr8qLL6xTGPS yBjZssbciYogE2l0KUi2sDdX6r7QyqS+Ad8tYHM7ekuG6QKpv1I9InX7N5p/W6CQyYh5 L90hFhiszHLdOXv56J/JKZcweLmD2EjOwqt/VKFBhHUhpcGaDnUOVRCxr6fR6kvOeBgO i2fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vvgleiXN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a63d211000000b00563d74b6347si6889250pgg.863.2023.07.31.01.54.14; Mon, 31 Jul 2023 01:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vvgleiXN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbjGaIa1 (ORCPT <rfc822;dengxinlin2429@gmail.com> + 99 others); Mon, 31 Jul 2023 04:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbjGaI36 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Jul 2023 04:29:58 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F5A91A6; Mon, 31 Jul 2023 01:29:55 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36V8Td7l128703; Mon, 31 Jul 2023 03:29:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690792179; bh=psuyjoOHFt8mMG0vCLisbP0KuLODJVZVf6ULOORRK/g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vvgleiXNJ22AsdOaKf2voB6bv+K5RKNRFJb7d2QIqkkog02qEdqDUlmLwJahJ+BEj uHKkz+qbNzM5iNLxR6oGJR1qHOwslARNhz3aNfxsBnrzHP67GqXa7YGlnStYw4Ecly wSiviDbECf1R9KtMeRQ6ZAr233xHXGi8ikg0TXHc= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36V8Tdkq011931 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 03:29:39 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 31 Jul 2023 03:29:38 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 31 Jul 2023 03:29:38 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36V8TbgI041857; Mon, 31 Jul 2023 03:29:37 -0500 From: Jai Luthra <j-luthra@ti.com> To: Mauro Carvalho Chehab <mchehab@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Sakari Ailus <sakari.ailus@linux.intel.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> CC: <linux-media@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, Mauro Carvalho Chehab <mchehab+samsung@kernel.org>, Maxime Ripard <mripard@kernel.org>, <niklas.soderlund+renesas@ragnatech.se>, Benoit Parrot <bparrot@ti.com>, Vaishnav Achath <vaishnav.a@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, <nm@ti.com>, <devarsht@ti.com>, <j-luthra@ti.com> Subject: [PATCH v8 04/16] media: cadence: Add support for TI SoCs Date: Mon, 31 Jul 2023 13:59:22 +0530 Message-ID: <20230731-upstream_csi-v8-4-fb7d3661c2c9@ti.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> References: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=936; i=j-luthra@ti.com; h=from:subject:message-id; bh=wjdUIhPTPNUiUl5Zr2G6+NzHU9p5C+CuVkNHv5MyBA4=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx2xmR7LVBmz+F0KVBq81OezqTDhkw6tNDZ2FQ VApmgRbY3mJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMdsZgAKCRBD3pH5JJpx RQKyD/sEM8vWP5l9lPuD8CjQq1lseRX/srB/8lFCIhOdLI71vJ9JxNcX37DhacH6ZdudoevlUlA WNVvZGbrsVOXNQh/at7M8bvPpXFA0ljuHNVEXNHCK6rVN/0tIaSyQE11MiiBtlSEsbd3psUgWP8 yU9bDYoH8Btt4Me/DPY5KI0g3BV0nP+PzbFlg4/FyJ57fb/u+VrMDrkTQ9ySuyVOoFMSvrP90Kj n1k1kMcLpUjJATIAmA+6e/OaO7iMg4jMcl/Q5iDiDdL13L7fqd824/2ZTfMMXd8UBwEbXsm2v4v BBFX1D25oWh7dhg41l/AOgS91WeITuWwtRSH4X6Jb21oJXWxBluLj5AK5++ak2EoUscXbEyFWTl JE2WLzE23tUhVTK0JWeSjuSu8tPjndC02zdXFzv6MImBUQh0Nrxre1RVVnuOPa3hj3XLF7Xts8E wBRFl7w2jqtJff9BvpRVYzvo5wrAyU56AcsCYbu22XJ/N9FtfZ28El59OiK+Lf+VmzdyS6JA/fR zD7d9uKK1LhutJm3qFEADkm3D1BKQVWow7As7KBOQpjGciECmggLfi5Yjo5FY1YI32mO8OOKVUC 1k07nAlVeNdly2aJ8IhgK/boT4TX110msN09Ne5rqUNm0lOUMArVIx0KKXrbWaYYdL8tW5rRu8Q /9MhtQ9N1zKC9sA== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772925660361877058 X-GMAIL-MSGID: 1772925660361877058 |
Series |
CSI2RX support on J721E and AM62
|
|
Commit Message
Jai Luthra
July 31, 2023, 8:29 a.m. UTC
Multiple TI SoCs (J721E, AM62) use this CSI2RX receiver, integrated with
an external DPHY and a pixel-grabber IP that unwraps the pixel data and
send it to memory via DMA.
Add a separate compatible for the TI-specific version of this IP.
Signed-off-by: Jai Luthra <j-luthra@ti.com>
---
New in v8
drivers/media/platform/cadence/cdns-csi2rx.c | 1 +
1 file changed, 1 insertion(+)
Comments
On 31/07/2023 10:29, Jai Luthra wrote: > Multiple TI SoCs (J721E, AM62) use this CSI2RX receiver, integrated with > an external DPHY and a pixel-grabber IP that unwraps the pixel data and > send it to memory via DMA. > > Add a separate compatible for the TI-specific version of this IP. > > Signed-off-by: Jai Luthra <j-luthra@ti.com> > --- > New in v8 > > drivers/media/platform/cadence/cdns-csi2rx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c > index 0d879d71d818..b087583d636f 100644 > --- a/drivers/media/platform/cadence/cdns-csi2rx.c > +++ b/drivers/media/platform/cadence/cdns-csi2rx.c > @@ -559,6 +559,7 @@ static void csi2rx_remove(struct platform_device *pdev) > > static const struct of_device_id csi2rx_of_table[] = { > { .compatible = "starfive,jh7110-csi2rx" }, > + { .compatible = "ti,j721e-csi2rx" }, Why do you need it? It's redundant - already compatible with cdns. No need to add empty match entries. > { .compatible = "cdns,csi2rx" }, > { }, Best regards, Krzysztof
Hi Krzysztof, Thanks for the review. On Aug 05, 2023 at 23:06:43 +0200, Krzysztof Kozlowski wrote: > On 31/07/2023 10:29, Jai Luthra wrote: > > Multiple TI SoCs (J721E, AM62) use this CSI2RX receiver, integrated with > > an external DPHY and a pixel-grabber IP that unwraps the pixel data and > > send it to memory via DMA. > > > > Add a separate compatible for the TI-specific version of this IP. > > > > Signed-off-by: Jai Luthra <j-luthra@ti.com> > > --- > > New in v8 > > > > drivers/media/platform/cadence/cdns-csi2rx.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c > > index 0d879d71d818..b087583d636f 100644 > > --- a/drivers/media/platform/cadence/cdns-csi2rx.c > > +++ b/drivers/media/platform/cadence/cdns-csi2rx.c > > @@ -559,6 +559,7 @@ static void csi2rx_remove(struct platform_device *pdev) > > > > static const struct of_device_id csi2rx_of_table[] = { > > { .compatible = "starfive,jh7110-csi2rx" }, > > + { .compatible = "ti,j721e-csi2rx" }, > > Why do you need it? It's redundant - already compatible with cdns. No > need to add empty match entries. > Understood, will drop this patch in the next revision and re-introduce later whenever we add something SoC specific in the driver. > > { .compatible = "cdns,csi2rx" }, > > { }, > > > Best regards, > Krzysztof >
diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c index 0d879d71d818..b087583d636f 100644 --- a/drivers/media/platform/cadence/cdns-csi2rx.c +++ b/drivers/media/platform/cadence/cdns-csi2rx.c @@ -559,6 +559,7 @@ static void csi2rx_remove(struct platform_device *pdev) static const struct of_device_id csi2rx_of_table[] = { { .compatible = "starfive,jh7110-csi2rx" }, + { .compatible = "ti,j721e-csi2rx" }, { .compatible = "cdns,csi2rx" }, { }, };