Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24290967rwd; Sat, 1 Jul 2023 17:02:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJLxRN4UN5EnPGHDpDQgbUt4PFG0+UqgPJiouu97hiu68jbrMpRFZflbEsB8ye7V753n7F X-Received: by 2002:a17:90a:1a46:b0:262:fc3d:9122 with SMTP id 6-20020a17090a1a4600b00262fc3d9122mr7014944pjl.17.1688256155138; Sat, 01 Jul 2023 17:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688256155; cv=none; d=google.com; s=arc-20160816; b=xe/alGhtVVY7/a+TZyjMIoQZv2NpI9fYBNwXBi/lJD2ZnaktHQc0+qV6WISAAy2HsR mChQcgUz6RqaX+R55TscpXUpa6/epNNDzztOGo7xU8EM3FBbclY6ZU+ku2uWca987aVg 5E7nwt5g8VRaFH4Tis+VG/4jNdi8OmZwdFYyMampsLRHewksYAbgKf+df6FiIxzn6zSm TpDkzfAN/boAXukE0ycpLcp7nW/mHEKeGKbANsCpOu9lbVnpBK8m1wApbJAZC1F1Lvq3 op0z9eXkGYL1oSuJKDWK0Ls38KntBKhope+O8e16/A1R790QmduhAZBB/Mjj4gEYSWkg XQ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PnU8AK7Y3gGvWOHP+g1W4GHtTC+5dcfW7t19l1xZwuU=; fh=pxnoB/Mli2EUhXzrZpnwvNBMcHwa5+/WF77uM8eut8w=; b=V6mP8NIN9zgTdliiYHVH8Iyixl9/zbhM3cMioxOReZkxDIZOf1d6RRQol7m5RJvn1U XY8IYsZqzE2MRg4AlB3xGniEHv550iG1m1FeukKGgLJ86RXVtfzf3CaU9lGZB9uqda0W 3dU7u9nCzgYS9MM2A7EzQlLcny6bBxujd2Iqmtf2jQSPTLCx6zPe+sCsNkQFio4/uIrs aFnE/OuW3bBaQP+elg0lPwH9I0i64tulGTnghbGh61doSyvujuHij16f74MLIsxzvokj InEoOPdRO5Sq+iinDJ2GZTjB34DDyg+Q5EHfjwAcq/1yyUDxARoxNxx+mGbruxzVFtzj 5yzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ImIdfomf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a17090ade8800b00262fc8d4dfesi11340359pjv.108.2023.07.01.17.02.22; Sat, 01 Jul 2023 17:02:35 -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=@kernel.org header.s=k20201202 header.b=ImIdfomf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbjGAXf3 (ORCPT + 99 others); Sat, 1 Jul 2023 19:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGAXf2 (ORCPT ); Sat, 1 Jul 2023 19:35:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50A8A1725; Sat, 1 Jul 2023 16:35:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DAA5860B41; Sat, 1 Jul 2023 23:35:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CE0EC433CB; Sat, 1 Jul 2023 23:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688254526; bh=PJQy4/1p5EsjFhKhO/qYY2FRfK0oK1uwx8Obk6wyd3o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ImIdfomfjxVZZ0ycehvi+hOi7iRCrcFuxAmQNRY0/n40l4c0ACk7KUddmkDzXw0zA 6FimANH9VzNgmTdfWB6/BRCHh5wzRB70cdhT5nItmFjwToX5I5Lw8HQp7mqAt+nDQ4 pQZTUsac+vEjiBj4ZkxLdHDUNcq0OGy7Vs80jvJgeY50p6jRwxY7kvjmf2aikP4vw3 hfRVc5bZkRF4adFrJpzkpllK9GS94DOH4MUqQ22rXhCmQgOUpVaWSsozaqN1V5cpoX J/5u3Gx9ihPhWrsNxU1fkE3X1t8yS0BznuQPUzJDNc/e1ke8+P+/lfWRiMzv1pbvsr dLydA7KNsMx1A== Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2b69a48368fso49636981fa.0; Sat, 01 Jul 2023 16:35:26 -0700 (PDT) X-Gm-Message-State: ABy/qLY/vNcNTlssma+dJLd1dfEa2Di3Tc+VVg0c8wwdEpIM5hr/ufpT DGlag+4RTUaHeYrvXnVX5MpmO8QmIckIGNmIDw== X-Received: by 2002:a05:6512:2094:b0:4f9:5396:ed1b with SMTP id t20-20020a056512209400b004f95396ed1bmr4223084lfr.28.1688254524241; Sat, 01 Jul 2023 16:35:24 -0700 (PDT) MIME-Version: 1.0 References: <20230630100321.1951138-1-jstephan@baylibre.com> <20230630100321.1951138-3-jstephan@baylibre.com> In-Reply-To: <20230630100321.1951138-3-jstephan@baylibre.com> From: Chun-Kuang Hu Date: Sun, 2 Jul 2023 07:35:12 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/4] media: platform: mediatek: isp_30: add mediatek ISP3.0 sensor interface To: Julien Stephan Cc: Louis Kuo , Phi-bang Nguyen , Florian Sylvestre , Laurent Pinchart , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Hi, Julien: Julien Stephan =E6=96=BC 2023=E5=B9=B46=E6=9C=8830= =E6=97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=886:05=E5=AF=AB=E9=81=93=EF=BC= =9A > > 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 =3D { > + .model =3D "mtk-camsys-3.0", > + .nb_inputs =3D 4, > + .nb_muxes =3D 6, > + .nb_outputs =3D 4, > +}; > + > +static const struct of_device_id mtk_seninf_of_match[] =3D { > + { > + .compatible =3D "mediatek,mt8365-seninf", > + .data =3D &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 SoC, so we could know what should be placed in struct mtg_seninf_conf (Now we have no any information). Regards, Chun-Kuang. > + }, > + { > + }, > +}; > +MODULE_DEVICE_TABLE(of, mtk_seninf_of_match);