Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp411566rwl; Wed, 5 Apr 2023 02:28:59 -0700 (PDT) X-Google-Smtp-Source: AKy350a69wdj2TmdbO0k5OS0RHzgZjRKny+7EPjwNQ/EXqM3PGCQfpR6jeMzHn5so9cOMUN+2t62 X-Received: by 2002:a05:6a20:669f:b0:d9:3257:f2b3 with SMTP id o31-20020a056a20669f00b000d93257f2b3mr4261055pzh.40.1680686939440; Wed, 05 Apr 2023 02:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680686939; cv=none; d=google.com; s=arc-20160816; b=ICF6XVGCrCp1nbpVDMKSbx5vdfPWml4Xl4LTTt2TlktCKg+w5m8Z6yVbKtiEtj3YrC +QakvqF9SW34o0YN2spYOfHlC1vWnrzjVESgPKC8JGs6oK+oi9a8bhMDajbYu37pxLBD Zalrj2k9vN8laeZ9TLTBYocXpXsUTMb7NKQY7O+TuwEFQGWqGIOvTFuOAHiZK3QizOQ1 QxWOmr1q64d3pj2aVbPBD417HxltzURPlgO/otbkynnGgj+KclLCe9EGvz0MFtU7kM3/ opviGC2cAQD5BFNZIZbuM26ilP8BC2MC1kx65o+x+9jG8SItswccUlrRTMZXKgC96ocB HUWw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nbxb6pOBobAspVURmZV5qw9xso4MEJwnKnyDKhuf9Zk=; b=Nox2heYWaPuSa3rRHiNhbSEU6+Q+yQy+KUil8jMlygz8W70XaIVOuQgQrMesdRxN4M vD5UeSbjHLprVOLfWYH+SZPonTkHDvTXAhgqgK6wYNA3KPB7unaFJL8TFwQ+S71qpXdI /t7d2jFWmdiD4cxhQuWjLdUbrWw4EOleAYiMvbGbtB0PXF2gAHE9/YWmGmfScDqGKP2R Yk/3A0aK+PwiPTky+Q5pvMORxw8yWnQ1tx1rP+e1+4Ttd2cwqBCQoWi80cH5KpVfth5r HqYhtxi2ECgc7IP9ju0GoU3YMWp5VdIXNP324PSCzVrAqxSF8n4tFbwBddg2R7rSHJAy S8ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=OOAgHuCV; 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 d23-20020a631d57000000b0050f692470fasi1060759pgm.301.2023.04.05.02.28.48; Wed, 05 Apr 2023 02:28:59 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=OOAgHuCV; 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 S237535AbjDEJ2e (ORCPT + 99 others); Wed, 5 Apr 2023 05:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237482AbjDEJ2Q (ORCPT ); Wed, 5 Apr 2023 05:28:16 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD5459D0 for ; Wed, 5 Apr 2023 02:27:55 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id l12so35480581wrm.10 for ; Wed, 05 Apr 2023 02:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680686873; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Nbxb6pOBobAspVURmZV5qw9xso4MEJwnKnyDKhuf9Zk=; b=OOAgHuCVOjJ1ff7sJbGp70M1TYsellJraMNNqALPTmQetFjYslPpiJGgMjg+i0Q1uS p2+UYnPbfi9udTNtUOZ1jUPDQS5kAR8sd5NrtSNm4GROMvpU3KxwMDb6zY7HadyoKZOs wlhWIyJoyqdmbeTXsjpsZxsjjxZjekgcVYAKGJ9qIZxDmUHTSpFscdwrCnBAS4qTTlUJ VGDcM+EW/dXt6zhL9ZhnH3lxniF8zlidAFd0DBk4lx046s7iVdcfNkhg0JIy6FKd6n0O wbVcBtv68/8QtEOlOGJaI19Yd0Bgs25xqhO2SN8TM/AhbQUVkZE96EFgn4hEbD0fi9Uh 7GZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680686873; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Nbxb6pOBobAspVURmZV5qw9xso4MEJwnKnyDKhuf9Zk=; b=G+KX02GBYv6EFjR/6D4kA3eifBCFPQwGtN2ah3FoF3sUZXDEh/Gqwp77Mn9CoRHJbV xvggR7Qop3RAhTc+s3CXLQpabBITLWIroDoO/eDdOIr5Ps9AaJwRB3eC6tpybVhWbPi3 o88aEXnHNMkkYz97MlxSw05+SDSLOiwsRnD5h02WvkK2pjGUvyiw9sXmQTuvnghvopaH bmF3SXwQpF45SHA5UgEfzxtV62Tr7cJr+25froV7zgpNgK3AAZBp+2MtGJFbYY/DwCYr a6tGf5tBNpDe4wgsy0JnjPctlzDZsE1qUCYO/4+N/2J7EQM1ybc6DSbfgIKMcy4c9y6e 3AuQ== X-Gm-Message-State: AAQBX9egvfCK0pkqw+0auaCnIodqpKj9/ARBXaSrR1zqC4OSEySQfBwZ stibbYu85d7VaZC5dKS84L5w8g== X-Received: by 2002:a5d:5262:0:b0:2ce:a30d:f764 with SMTP id l2-20020a5d5262000000b002cea30df764mr3274578wrc.21.1680686873617; Wed, 05 Apr 2023 02:27:53 -0700 (PDT) Received: from localhost ([2a01:e0a:55f:21e0:9e19:4376:dea6:dbfa]) by smtp.gmail.com with ESMTPSA id ay8-20020a05600c1e0800b003edddae1068sm1606494wmb.9.2023.04.05.02.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 02:27:53 -0700 (PDT) Date: Wed, 5 Apr 2023 11:27:53 +0200 From: Julien Stephan To: Krzysztof Kozlowski Cc: Phi-bang Nguyen , Louis Kuo , Chunfeng Yun , Andy Hsieh , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , "moderated list:ARM/Mediatek USB3 PHY DRIVER" , "moderated list:ARM/Mediatek USB3 PHY DRIVER" , "open list:GENERIC PHY FRAMEWORK" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "open list:DRM DRIVERS FOR MEDIATEK" Subject: Re: [PATCH 2/2] phy: mtk-mipi-csi: add driver for CSI phy Message-ID: References: <20230403071929.360911-1-jstephan@baylibre.com> <20230403071929.360911-3-jstephan@baylibre.com> <6c9c74ee-b9ed-815f-dd92-37eb4c8f802a@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c9c74ee-b9ed-815f-dd92-37eb4c8f802a@linaro.org> X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Mon, Apr 03, 2023 at 11:51:50AM +0200, Krzysztof Kozlowski wrote: > On 03/04/2023 09:19, Julien Stephan wrote: > > From: Phi-bang Nguyen > > > > This is a new driver that supports the MIPI CSI CD-PHY for mediatek > > mt8365 soc > > > > Signed-off-by: Louis Kuo > > Signed-off-by: Phi-bang Nguyen > > [Julien Stephan: use regmap] > > [Julien Stephan: use GENMASK] > > Co-developed-by: Julien Stephan > > Signed-off-by: Julien Stephan > > --- > > .../bindings/phy/mediatek,csi-phy.yaml | 9 +- > > MAINTAINERS | 1 + > > drivers/phy/mediatek/Kconfig | 8 + > > drivers/phy/mediatek/Makefile | 2 + > > .../phy/mediatek/phy-mtk-mipi-csi-rx-reg.h | 435 ++++++++++++++++++ > > drivers/phy/mediatek/phy-mtk-mipi-csi.c | 392 ++++++++++++++++ > > 6 files changed, 845 insertions(+), 2 deletions(-) > > create mode 100644 drivers/phy/mediatek/phy-mtk-mipi-csi-rx-reg.h > > create mode 100644 drivers/phy/mediatek/phy-mtk-mipi-csi.c > > > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,csi-phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,csi-phy.yaml > > index c026e43f35fd..ad4ba1d93a68 100644 > > --- a/Documentation/devicetree/bindings/phy/mediatek,csi-phy.yaml > > +++ b/Documentation/devicetree/bindings/phy/mediatek,csi-phy.yaml > > NAK, bindings are always separate patches. It also does not make any > sense - you just added it. > :( I messed up my rebase -i. This need to be moved and squashed with the previous patch. I will fix it in v2. Thank you for reporting it > > @@ -33,9 +33,14 @@ additionalProperties: false > > > > examples: > > - | > > - phy@10011800 { > > + soc { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + phy@11c10000 { > > compatible = "mediatek,mt8365-mipi-csi"; > > - reg = <0 0x10011800 0 0x60>; > > + reg = <0 0x11c10000 0 0x4000>; > > #phy-cells = <1>; > > + }; > > }; > > > > k_mipi_dphy_of_match[] = { > > + {.compatible = "mediatek,mt8365-mipi-csi"}, > > + {}, > > +}; > > +MODULE_DEVICE_TABLE(of, mtk_mipi_dphy_of_match); > > + > > +static struct platform_driver mipi_dphy_pdrv = { > > + .probe = mtk_mipi_dphy_probe, > > + .remove = mtk_mipi_dphy_remove, > > + .driver = { > > + .name = "mtk-mipi-csi", > > + .of_match_table = of_match_ptr(mtk_mipi_dphy_of_match), > > Drop of_match_ptr(). You should see W=1 warnings when compile testing. > I do not not see any warnings when trying to compile with W=1. Am I missing something? I will drop it in v2 anyway Best Julien > > Best regards, > Krzysztof >