Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1163592rwd; Thu, 8 Jun 2023 13:14:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ678Qtz2eqPbl7mXJnkG7+d1pBLx3tSNb45q5/x9xijeCDPMhccRSQ8npGDeyD5VjLkOlsd X-Received: by 2002:a05:6a21:9996:b0:10a:a0e1:96fa with SMTP id ve22-20020a056a21999600b0010aa0e196famr5050054pzb.22.1686255283621; Thu, 08 Jun 2023 13:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686255283; cv=none; d=google.com; s=arc-20160816; b=CpSzBCh4rVJi8Y0tbUu3fIfctg290t6fIPoyQU7be/sH4aLy8QTMkF9pqhSAqTjv57 aWKsf1P7Q1gbR0HoLGGSmfA842Cal8BEdbxvmO+oI9iczgo328LSWeBBJYUTLsf8aHC4 lJoUizLEi70Mo8pQBeTnfIHPEMu3AF4hp5108AiI+vusb2vof503rvz94he8TWe+If3V +hLLKO8tlr9qWgKr9Sy6Omt+0E36GZHqBrF7F+scOX+S3kyBFg8tZ1+XnkAYuwS5r+9K wHKt5sCI46z6KNMLH5EH2FSQfAK12n/xmtm/DYFhHcrsJeuwr5xQkMMFoWkM8OTGVugB 4giA== 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; bh=0/sR8/S11r6POKJwJKZdRyyXC9EYM0/cQxZIkmiJzsI=; b=q3dL/1awP5rwPcYrLUqHZxm6QdcVwkclva+ye7O4As/VCfKDpBky2RcLJWt1P5Fnli 13Lwtg5ko5OVzzK7swTgDmoIg1kIL98gTQBgdB86nh9+d1M4/NuXKHm0f/ENOfz4YHsl WMeX0jt2Q2LRpLBG31DU1H7/zEU5ItyGDKZzFeeGUZBkaPoNbwYEiVkhtVYy4XOAdAlT 6vqxZVZzqyYuSaBYONvPkgzKJJ25PfoLQR9xW10w5AvERQnMka+drJYYFfnJcjodYU/6 GiIB45ghqhj6vbz1amsdzt7kAvEbUIfjSwgmYVqNXU1p9HOZJlCs2kJaW8R7X4nxAlKo Medw== ARC-Authentication-Results: i=1; mx.google.com; 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 y9-20020aa78f29000000b0064d5e97d4acsi1223205pfr.346.2023.06.08.13.14.27; Thu, 08 Jun 2023 13:14: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; 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 S235908AbjFHUGA (ORCPT + 99 others); Thu, 8 Jun 2023 16:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjFHUF7 (ORCPT ); Thu, 8 Jun 2023 16:05:59 -0400 Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52B06B9; Thu, 8 Jun 2023 13:05:56 -0700 (PDT) Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-33b1e83e1daso4877725ab.0; Thu, 08 Jun 2023 13:05:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686254755; x=1688846755; 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=0/sR8/S11r6POKJwJKZdRyyXC9EYM0/cQxZIkmiJzsI=; b=JRPIuhhmKyEUQLQ/SpOQzFK7PltQumnuLYZ0gPLtuMBS9DfVJIsm6xLVirNij1ta6T EycuEU/bYjODCeP1NthOVTx8hYn5WSJUgqLdkvrAqLb1UJsVsPSaA9Jh4U73FW/lMtg+ yAAI3SZr8TVEm8GqlgGUL49IX0FO0+Uecz8xSEXgI6yZzLjRFFrSyRyp01rqtGWiQ06l GZ1oc/q66JcqieM9QbzqSKcA8brJLlZgJwSp2doyymUFaqk0JwH6hOLrxrK5InjDy27V Ybtz/THwO7wSRi2rpfmEO1r1UfFW6Q5LyZV+M3gOeoZlEe/SiM8h4LIp1z/iibpPm5gk YUwA== X-Gm-Message-State: AC+VfDy40COyb2+aFBmlw4CoE4xaTWt7sMyVXToVZ0+xWxRUAVuo0pN+ 3Jjsq2VJbcg3mxg8lorcIg== X-Received: by 2002:a05:6602:218c:b0:777:b4b7:f6ac with SMTP id b12-20020a056602218c00b00777b4b7f6acmr10471093iob.10.1686254755522; Thu, 08 Jun 2023 13:05:55 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id u19-20020a02c953000000b0041672c963b3sm483509jao.50.2023.06.08.13.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 13:05:54 -0700 (PDT) Received: (nullmailer pid 3315825 invoked by uid 1000); Thu, 08 Jun 2023 20:05:52 -0000 Date: Thu, 8 Jun 2023 14:05:52 -0600 From: Rob Herring To: Julien Stephan Cc: AngeloGioacchino Del Regno , mkorpershoek@baylibre.com, khilman@baylibre.com, Florian Sylvestre , Andy Hsieh , Chunfeng Yun , Chun-Kuang Hu , Conor Dooley , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Kishon Vijay Abraham I , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, Matthias Brugger , Philipp Zabel , Vinod Koul Subject: Re: [PATCH v3 2/3] dt-bindings: phy: add mediatek MIPI CD-PHY module v0.5 Message-ID: <20230608200552.GA3303349-robh@kernel.org> References: <20230524083033.486490-1-jstephan@baylibre.com> <20230524083033.486490-3-jstephan@baylibre.com> <2jfgupyvtuenvm7x52l6bo5xzzpva7u6njeg3ecd52wwj4spv6@y3nsq7j2hl2u> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2jfgupyvtuenvm7x52l6bo5xzzpva7u6njeg3ecd52wwj4spv6@y3nsq7j2hl2u> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, May 24, 2023 at 04:05:03PM +0200, Julien Stephan wrote: > On Wed, May 24, 2023 at 11:45:30AM +0200, AngeloGioacchino Del Regno wrote: > > Il 24/05/23 10:30, Julien Stephan ha scritto: > > > From: Florian Sylvestre > > > > > > This adds the bindings, for the MIPI CD-PHY module v0.5 embedded in > > > some Mediatek soc, such as the mt8365 > > > > > > Signed-off-by: Florian Sylvestre > > > Signed-off-by: Julien Stephan > > > --- > > > .../bindings/phy/mediatek,mt8365-csi-rx.yaml | 67 +++++++++++++++++++ > > > MAINTAINERS | 6 ++ > > > 2 files changed, 73 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml b/Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml > > > new file mode 100644 > > > index 000000000000..a1bd96a98051 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml > > > @@ -0,0 +1,67 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +# Copyright (c) 2023 MediaTek, BayLibre > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/phy/mediatek,mt8365-csi-rx.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Mediatek Sensor Interface MIPI CSI CD-PHY > > > + > > > +maintainers: > > > + - Julien Stephan > > > + - Andy Hsieh > > > + > > > +description: > > > + The SENINF CD-PHY is a set of CD-PHY connected to the SENINF CSI-2 > > > + receivers. The number of PHYs depends on the SoC model. > > > + Depending on the SoC model, each PHYs can be either CD-PHY or D-PHY only > > > + capable. > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - mediatek,mt8365-csi-rx > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + '#phy-cells': > > > + const: 0 > > > + > > > + mediatek,phy-type: > > > > Instead of declaring a phy-type here like this, can't we instead declare that in > > the phy cells, like we're doing with MTK TPHY and like other non-MediaTek PHYs are > > already doing? > > > > device { > > ... > > phys = <&csi0_rx PHY_TYPE_CDPHY>; > > ... > > } > > > > Regards, > > Angelo > > > > > > Hi Angelo, > > This is a hardware property that is not dynamic, so IMHO it doesn't make sense > to use phy argument for that. Why? Interrupt numbers are fixed hardware properties which go in arg cells. > Some driver already use a 'phy-type' > property (such as phy-cadence-torrent.yaml). > > I was thinking of using phy argument on future upgrade when driver will > support D-PHY and C-PHY modes so the phy user will be able to choose the > mode. Once you design the binding, you don't get to change it. Rob