From patchwork Fri Feb 16 09:54:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 202058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp412651dyb; Fri, 16 Feb 2024 02:11:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJQAi4OZ+pyVbdZCedEIerry0uwpLTfgHxM9/4tqpVZCK9k2IwWMD0QvXUqSAwv790m3H1IZ27Wbtgm/pUJvVWtImozg== X-Google-Smtp-Source: AGHT+IFx0FL+8WugJKUcgC/wq75djAE6JmlCefL4cE40Cr1+AwLJ66dEthdHwh2oLTuwDOG3Le0d X-Received: by 2002:a05:6358:339d:b0:17b:11a5:6dd with SMTP id i29-20020a056358339d00b0017b11a506ddmr4946147rwd.14.1708078271284; Fri, 16 Feb 2024 02:11:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708078271; cv=pass; d=google.com; s=arc-20160816; b=cDE6r6sSHtiOYy7OxiygCTLB8Iniz2gbLlPrORejf0n4PWCgTF7nauYIF4viLygWQ6 UVHk0sfjqKFUxytIgqraEh2VfFuLItNDoSOYQEwKJ90RK/Uqb+HbC2tRduWoQhcGQerX PfIOE7PIfrxbr1jTooza749XoXOsH3NgqoimCGdBbfWx8cwZol5DKiSw1+6HxORQ/O5i llFyHibo9m+7B3qVYTyvAweWdNQbm8kYzX1Mt1mNqRBk7sNKTctep+fV2D+rRTjfcPOH RVRpAleH6CPI07XGmjf16TkEPmqXPOpk/MHHTAGq41xq9KFEuPUHafsi1zSpmL6O7AEe 6uMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=n1Nhg3yLfIh60G1AeRWtBaJrb9OLb9kPT6wyMj3k4RQ=; fh=xDMKQ+1BNi1UtGo3kM0bUs3bKDAdyTN939W944OQMQQ=; b=W20G48/qf7NjcwPvqRGNb1GeLfzmnWs6NzkO6O2TMeFu9m2Xzld22kKSn2YCRM7zLQ 5Ig9ZBT0ACsMFbEm8mnotCrwwvDQvTHpMUzpvfSAGRSddWzr5X2Vo9X9O+4rGNYMaa1Q LJT1Un4LUtTqtrS/Q1l5y1xL80B13Gi7Vwcdfj9J6Dmse+qZbUwMkYkusoLGl13xTnLS KyWgnY3dfQf+ivd97xeW5YgsnkMY5sOgETMpD7UeDo8BcQ/Qt21CRiLiCfMk4fx3xhNz fOtKJlQ+EXrjVrkNYpe6m96FZX5TKoQsu2DUpU+I4ahC7zKvJwNbG/aZnKt0n97TyTyX I1BA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PQDdJ0g0; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-68396-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68396-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w20-20020a639354000000b005cdfb96ea62si2740478pgm.243.2024.02.16.02.11.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:11:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68396-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PQDdJ0g0; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-68396-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68396-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C332AB26546 for ; Fri, 16 Feb 2024 10:00:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E8052D03B; Fri, 16 Feb 2024 09:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="PQDdJ0g0" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 775E72C68D; Fri, 16 Feb 2024 09:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077381; cv=none; b=jmOjwh8ftRc20k7DJzZ7KxlP+piZPZdPnna0ZNFEwV8+gya3+GwzCVK/omUcQXCwOHZciYJ4n/sgKJx9Wr4W1XBFbI/iBiBUw44fMAqWD7kmCjJgf1Gjj+a5TKzmjYdhpB5PqXC1au6PKfjSJuLutu8eCPe2EpuXBgihQiADens= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077381; c=relaxed/simple; bh=Ia/EeMxNOFHxbWUjhUliBdY0W0mfcl3fiQng0g4Ephg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=j7x9YKKwYL/9T/MR+sUv1YA4jJO5R6aMiSp1JIBgYu2rMwLNvrYHyRAk3BoJnC1YTWp5kq+G5cibDV0cYhL/mwilAYG1eRyZTTalKeEhSoC8y6ty43IntXtmWEEX+aqTUzX8dTcaOqsvP4g41mcBNGJxopxfcE9KGOinn83zUcQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=PQDdJ0g0; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pyrite.hamster-moth.ts.net (h175-177-049-156.catv02.itscom.jp [175.177.49.156]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3FE1C6B3; Fri, 16 Feb 2024 10:56:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1708077374; bh=Ia/EeMxNOFHxbWUjhUliBdY0W0mfcl3fiQng0g4Ephg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PQDdJ0g0Xz87VPF/G6ehXBcEsmJ2/7t1FQnkG8jHFalSifaKYFll54ZjpUboHDz87 KghpH435VnkuJQ0Yhbmo50rCvHuaBrv++pzwQL7/LlRpnjGAkmNsfeBsv/IPNIxS8L FPTaC2P/7nM5fPRdO6HZt5m7cn8z2RFhRPD5/kEQ= From: Paul Elder To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Cc: kieran.bingham@ideasonboard.com, tomi.valkeinen@ideasonboard.com, umang.jain@ideasonboard.com, aford173@gmail.com, Paul Elder , Rob Herring , Alexander Stein , Dafna Hirschfeld , Laurent Pinchart , Mauro Carvalho Chehab , Heiko Stuebner , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Rockchip SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v12 12/12] media: rkisp1: Add match data for i.MX8MP ISP Date: Fri, 16 Feb 2024 18:54:58 +0900 Message-Id: <20240216095458.2919694-13-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240216095458.2919694-1-paul.elder@ideasonboard.com> References: <20240216095458.2919694-1-paul.elder@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791049881167880871 X-GMAIL-MSGID: 1791049881167880871 Add match data to the rkisp1 driver to match the i.MX8MP ISP. Signed-off-by: Paul Elder Reviewed-by: Rob Herring Tested-by: Alexander Stein Tested-by: Adam Ford Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- Changes in v12: - move out adding the version enum --- .../platform/rockchip/rkisp1/rkisp1-dev.c | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c index 54a62487a4e8..a6b47f0af467 100644 --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c @@ -533,6 +533,26 @@ static const struct rkisp1_info rk3399_isp_info = { | RKISP1_FEATURE_DUAL_CROP, }; +static const char * const imx8mp_isp_clks[] = { + "isp", + "hclk", + "aclk", +}; + +static const struct rkisp1_isr_data imx8mp_isp_isrs[] = { + { NULL, rkisp1_isr, BIT(RKISP1_IRQ_ISP) | BIT(RKISP1_IRQ_MI) }, +}; + +static const struct rkisp1_info imx8mp_isp_info = { + .clks = imx8mp_isp_clks, + .clk_size = ARRAY_SIZE(imx8mp_isp_clks), + .isrs = imx8mp_isp_isrs, + .isr_size = ARRAY_SIZE(imx8mp_isp_isrs), + .isp_ver = RKISP1_V_IMX8MP, + .features = RKISP1_FEATURE_MAIN_STRIDE + | RKISP1_FEATURE_DMA_34BIT, +}; + static const struct of_device_id rkisp1_of_match[] = { { .compatible = "rockchip,px30-cif-isp", @@ -542,6 +562,10 @@ static const struct of_device_id rkisp1_of_match[] = { .compatible = "rockchip,rk3399-cif-isp", .data = &rk3399_isp_info, }, + { + .compatible = "fsl,imx8mp-isp", + .data = &imx8mp_isp_info, + }, {}, }; MODULE_DEVICE_TABLE(of, rkisp1_of_match);