Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26104770rwd; Mon, 3 Jul 2023 05:36:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fyw+5I8mz6sKf099ZRERIqJ5cXBAuXLt/va9atEypA79jpsiAdbaEZfr36gA77uYnMrQC X-Received: by 2002:a17:90b:378b:b0:262:e697:f367 with SMTP id mz11-20020a17090b378b00b00262e697f367mr20895644pjb.15.1688387803458; Mon, 03 Jul 2023 05:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688387803; cv=none; d=google.com; s=arc-20160816; b=Nghayii9/rNKU+1IlKCgOF2asONFIN9V1519M0PFAlJsLbCQz9204syNQhRCC0xk9g L2rJkn3WUC96BedEFoT+aon/opTTiRzTL/0xWTOeYEbqjF9NOpphU4/cAT7uD8JJjeoB 5/hWGwkuJWyYNOYNkW+UhJi3NXFlnpO3s+2pOOxBbB4k2qsEY39QcBveAjMZ86Nu8KIr 2ao1ikJhmfSJ44h7lbgbfSL50/0ztR4FvWhcEJwXpuBg4OasCC2hqnV5A4LRXjFOsNv5 XExsZ9BBL/YvQPqWoEic8y1CFG780xgw4MKP5oxc1e4a/N2X2f+hb72LazYRi92aL3+X CP1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WBBrl2yRmSkTrSTgs6u/GAQ2TomFF1IMcnAHdsHESwo=; fh=UuFMsoF1RJNv3vFZvdZ/1JCL27RLgT0u7odBhU+geZk=; b=OYwuKsPFZx6ds4G1tDpz7A+95hO2fMDLOmctttM8LDE1roMQ2DGiN8WtQsYv29DTZX Nf7waQFmA3jr6cx45X6KKjl89dz2XlxPybFjQkuoNgeqDOzdnYX6POyQmRcAU9WGFh5c Qhd2GGV3zsINuvCo7Palr/WQYbmTWIjzKvvTOOhj+OITDIyahqohrV7Q79MdNHMbYKF0 0LWmgMMY7PNl1B0gcyGbq+ym9+uo72z4dfSls/BTLKVw57HUInlqteWE7BCOUawJqzML COAU+EQL8NSrVsl93F9s8K8zw+2f7AaJnJ0QJuCKS5L2KJA8bqh+KHvFIVzDWCNzO+9u Tqew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="BeL/PXXM"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a17090a02c200b00259aa59bf3esi19527222pjd.176.2023.07.03.05.36.30; Mon, 03 Jul 2023 05:36:43 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="BeL/PXXM"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231256AbjGCMTM (ORCPT + 99 others); Mon, 3 Jul 2023 08:19:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjGCMTF (ORCPT ); Mon, 3 Jul 2023 08:19:05 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B30C41AD; Mon, 3 Jul 2023 05:18:55 -0700 (PDT) Received: from pendragon.ideasonboard.com (85-160-45-219.reb.o2.cz [85.160.45.219]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A02C2512; Mon, 3 Jul 2023 14:18:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688386689; bh=fHLoFwnP7N99CrLDMZJdiDw1fOyEzuyRgMPQdQXI1bU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BeL/PXXMRb5rPrT9rJQ8tmN4prPUpakUuz4df5PMhJs27sLZ7P4kNDeafB1Icx4tX eBuib0hIyGK/MxkYdkwj1F13VU5uOxsYcdn7PeldXy1lTut1BVoJhmuxSBwR7H6oFO QMPMnGdAJiZKAczkIOUqB8QKQVApL8w3eoNFfLV0= Date: Mon, 3 Jul 2023 15:18:53 +0300 From: Laurent Pinchart To: Chun-Kuang Hu Cc: Julien Stephan , Louis Kuo , Phi-bang Nguyen , Florian Sylvestre , Alexander Gordeev , Andy Hsieh , AngeloGioacchino Del Regno , Conor Dooley , daoyuan huang , devicetree@vger.kernel.org, Hans Verkuil , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, Matthias Brugger , Mauro Carvalho Chehab , Moudy Ho , Rob Herring , Vasily Gorbik Subject: Re: [PATCH v2 2/4] media: platform: mediatek: isp_30: add mediatek ISP3.0 sensor interface Message-ID: <20230703121853.GA16531@pendragon.ideasonboard.com> References: <20230630100321.1951138-1-jstephan@baylibre.com> <20230630100321.1951138-3-jstephan@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 02, 2023 at 05:20:25PM +0800, Chun-Kuang Hu wrote: > Chun-Kuang Hu 於 2023年7月2日 週日 上午7:35寫道: > > Julien Stephan 於 2023年6月30日 週五 下午6:05寫道: > > > > > > From: Louis Kuo > > > > > > This will add the mediatek ISP3.0 seninf (sensor interface) driver found > > > on several Mediatek SoCs such as the mt8365. > > > > > > Then seninf module has 4 physical CSI-2 inputs. Depending on the soc they > > > may not be all connected. > > > > > > Signed-off-by: Louis Kuo > > > Signed-off-by: Phi-bang Nguyen > > > Signed-off-by: Florian Sylvestre > > > Signed-off-by: Laurent Pinchart > > > Signed-off-by: Julien Stephan > > > > > > > [snip] > > > > > + > > > +static const struct mtk_seninf_conf seninf_8365_conf = { > > > + .model = "mtk-camsys-3.0", > > > + .nb_inputs = 4, > > > + .nb_muxes = 6, > > > + .nb_outputs = 4, > > > +}; > > > + > > > +static const struct of_device_id mtk_seninf_of_match[] = { > > > + { > > > + .compatible = "mediatek,mt8365-seninf", > > > + .data = &seninf_8365_conf, > > > > Now only support one SoC, so it's necessary to select the SoC data and > > you could directly place the data in the code. After support other > > Typo. > > Now only support one SoC, so it's not necessary to select the SoC data > and you could directly place the data in the code. I think Julien has visibility on other SoCs that could use the same driver, and has designed the mtk_seninf_conf structure accordingly. I'll let Julien confirm (or tell I'm wrong). > > SoC, so we could know what should be placed in struct mtg_seninf_conf > > (Now we have no any information). > > > > > + }, > > > + { > > > + }, > > > +}; > > > +MODULE_DEVICE_TABLE(of, mtk_seninf_of_match); -- Regards, Laurent Pinchart