From patchwork Mon Nov 9 09:46:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 11890819 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=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 CF9D1C2D0A3 for ; Mon, 9 Nov 2020 09:48:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6814D206ED for ; Mon, 9 Nov 2020 09:48:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RfmhaqBd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6814D206ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=puri.sm Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LudGMfTfRqE71snIulbIPx4UBJPAX/WMHDB4SSkHYjM=; b=RfmhaqBdpiJ5TbfhPs6DHM2M+J Reon9dPM1LFRJAII2X+9hry0hVGatWbMXGjV+KE6PkDjDBx+vMT5ikRRWdNngt8lS5pbntsa1XGOF LxMd1YbcqqUOYs9+nsaDvP3Z9RpIYzcIkC6+v44IzKWYIG1qFi6C/i3c5YFbl0KfwfI9POgKVp3G1 tdO0TN9c49Ntl+fRE+RDwmsp6cLzdKAK1wfUBQQ3HJH+7nLQp1OLBFEjwprTrHpW2wLKNe09h0kW7 +nhgW73z3nsRoVf9dMy30E+xhj0iFwCfmcxZVw/tT2rJ75qDgb7+lq35Ew9FIyvminv/Ia/MySUuf P7hfiyjQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc3lE-0000r9-EY; Mon, 09 Nov 2020 09:46:52 +0000 Received: from comms.puri.sm ([159.203.221.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc3lB-0000qB-AM for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 09:46:49 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 275A4E03D9; Mon, 9 Nov 2020 01:46:48 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W6rHdbftXP-5; Mon, 9 Nov 2020 01:46:47 -0800 (PST) From: Martin Kepplinger To: rogerio.silva@nxp.com, slongerbeam@gmail.com, p.zabel@pengutronix.de, mchehab@kernel.org, shawnguo@kernel.org, festevam@gmail.com Subject: [PATCH] staging: media: imx: Split config option in 2 Date: Mon, 9 Nov 2020 10:46:33 +0100 Message-Id: <20201109094633.13518-1-martin.kepplinger@puri.sm> In-Reply-To: <2aec3ae20bf5a9eefbe691a69c76c91b09af2a35.camel@pengutronix.de> References: <2aec3ae20bf5a9eefbe691a69c76c91b09af2a35.camel@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_044649_418885_5A21E0DC X-CRM114-Status: GOOD ( 10.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Kepplinger , kernel@puri.sm, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, iain.galloway@nxp.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As described in NXPs' linux tree, the imx8m SoC includes the same CSI bridge hardware that is part of imx7d. We should be able to use the "fsl,imx7-csi" driver for imx8m directly. Since ipuv3 is not relevant for imx8m we create VIDEO_IMX7_MEDIA and split up the configuration option in 2 menus (on 1 entry each for now but that can be changed later). Signed-off-by: Martin Kepplinger --- thanks, you're right. did you have something like this in mind? martin drivers/staging/media/imx/Kconfig | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig index f555aac8a9d5..a888d9b918b5 100644 --- a/drivers/staging/media/imx/Kconfig +++ b/drivers/staging/media/imx/Kconfig @@ -13,6 +13,20 @@ config VIDEO_IMX_MEDIA Say yes here to enable support for video4linux media controller driver for the i.MX5/6 SOC. +config VIDEO_IMX7_MEDIA + tristate "i.MX7/8 V4L2 media core driver" + depends on ARCH_MXC || COMPILE_TEST + depends on VIDEO_V4L2 + select MEDIA_CONTROLLER + select VIDEO_V4L2_SUBDEV_API + depends on HAS_DMA + select VIDEOBUF2_DMA_CONTIG + select V4L2_FWNODE + select V4L2_MEM2MEM_DEV + help + Say yes here to enable support for video4linux media controller + driver for the i.MX7/8M SOC. + if VIDEO_IMX_MEDIA menu "i.MX5/6/7 Media Sub devices" @@ -23,12 +37,19 @@ config VIDEO_IMX_CSI help A video4linux camera sensor interface driver for i.MX5/6. +endmenu +endif + +if VIDEO_IMX7_MEDIA +menu "i.MX7/8 Media Sub devices" + config VIDEO_IMX7_CSI - tristate "i.MX6UL/L / i.MX7 Camera Sensor Interface driver" - depends on VIDEO_IMX_MEDIA && VIDEO_DEV && I2C + tristate "i.MX7 / i.MX8M Camera Sensor Interface driver" + depends on VIDEO_IMX7_MEDIA && VIDEO_DEV && I2C default y help Enable support for video4linux camera sensor interface driver for - i.MX6UL/L or i.MX7. + i.MX6UL/L, i.MX7 or i.MX8M. + endmenu endif