Message ID | 20230227183151.27912-6-pmalgujar@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2581461wrd; Mon, 27 Feb 2023 10:40:45 -0800 (PST) X-Google-Smtp-Source: AK7set+AIgUlOOvKB9AUCtblolSpq0LmsjIUGQxPPG1xJqTPev6Z4I/YK6rMMGs6nubky4YXu7nO X-Received: by 2002:a17:906:2b54:b0:87b:d400:e1df with SMTP id b20-20020a1709062b5400b0087bd400e1dfmr31387544ejg.72.1677523245696; Mon, 27 Feb 2023 10:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677523245; cv=none; d=google.com; s=arc-20160816; b=OXb9WWu14VhD+/qEhG7/r++nXy67fu+9ymg5OGe9lqAtzXFIcSxBwDgP0ytBORGDQz JJyZA0YZwjhFRUGjKKfXDbJ/9VIriwNKOB82kMQrYCAVWZBS68dqI7DJW1VvbpsEjaIt JFvMg8+mPO50svkisIvtlv00lTdij/Hm869n4dKaTVVutMAdwhSWqGeGZ3l2ixqIlO76 0vdVC9I0v6sD5vTgjIMoqDGMD7MWa3wQR+AmYuKfnPtKzA5F4UOFsY5wHaMWBNX9wQ97 EdAqk42lH91HRdR0TuSW8W4ZuejhqWLZKt1xguXIaHJozcPanwvwMknhBW0uJ9svRXuE 87eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t+re6yD5UFAUuv7Rao5NJSDL9RP5e62V7XEy8m44VsU=; b=kIw9HLACN+tTjP8I9F4h4v9TTgAzAxk7+agCe8tdxDqPmeDhovpYNzDchR0ZeUBYib G5nNqYf+iArUh7260LJ92S4I4UyPQ3dY7dwz3CAEhPsiNDEcEEgGUM3oPrnyZSzog4c8 j+iqmuBKMxQ5jAnxmgoQsB+cSo577Bnim71zRjkGiYlCA/b+1mbs5hqXFgrpWRqa/OG5 iTVxoGGseyajXTv6i9Y61nvJ9DOYazuXgzn/QC9lk1cpvpNQob6ZyBXKe3LZ6m539VAy XgfJ7LNSv95gr6GHDKgJwMceRb81VHNh4e+ng2TkpoKu1JN/aGbKo4EXo2u1beggFXN+ 8kwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="TZQu/2eQ"; 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=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a170906d10e00b008b17b56c4d1si781258ejz.1000.2023.02.27.10.40.23; Mon, 27 Feb 2023 10:40:45 -0800 (PST) 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=@marvell.com header.s=pfpt0220 header.b="TZQu/2eQ"; 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=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjB0SdZ (ORCPT <rfc822;wenzhi022@gmail.com> + 99 others); Mon, 27 Feb 2023 13:33:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbjB0SdW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Feb 2023 13:33:22 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D091FF3B; Mon, 27 Feb 2023 10:32:56 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31RCtGwI026362; Mon, 27 Feb 2023 10:32:50 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=t+re6yD5UFAUuv7Rao5NJSDL9RP5e62V7XEy8m44VsU=; b=TZQu/2eQkPpyaT7eP1LJvTALTFCgxKNoyooY/a/0SIo3AUgz/QqMc7y3+i1sQMwSqmHZ msGPBr2/DMeuscz+KRmQMroDRAFKvm7GVPX1ht9TdHzt6LzMscxLxNBmZ7kuqPeGCvxS QS8BzSDHorghp3nHbuXQRk86+/T8xIdIiTvRvw3nOOARAJW6785hlWwOqHE770RqblZL dj72FU3ARf0oT+ndQXnoYGtBst69IIee0IJCel8P2bA/6or9NyCtd6+zWs7X75O8pvc6 in1RkdNv/BCcY48pwMRR2Ttb3u8Wq5/3WtDJ9aWGx67FW8+aGLioJistm/BmPtKlq87Y tg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nyjqtsbna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 27 Feb 2023 10:32:50 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Feb 2023 10:32:44 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Mon, 27 Feb 2023 10:32:44 -0800 Received: from localhost.localdomain (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id 83A3D3F7063; Mon, 27 Feb 2023 10:32:44 -0800 (PST) From: Piyush Malgujar <pmalgujar@marvell.com> To: <linux-mmc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <adrian.hunter@intel.com>, <ulf.hansson@linaro.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <yamada.masahiro@socionext.com>, <devicetree@vger.kernel.org> CC: <jannadurai@marvell.com>, <cchavva@marvell.com>, Piyush Malgujar <pmalgujar@marvell.com> Subject: [PATCH v3 5/6] dt-bindings: mmc: sdhci-cadence: SD6 support Date: Mon, 27 Feb 2023 10:31:50 -0800 Message-ID: <20230227183151.27912-6-pmalgujar@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230227183151.27912-1-pmalgujar@marvell.com> References: <20230227183151.27912-1-pmalgujar@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Xg4GOC06UIFmvulNu52G-IzwWk4MmApx X-Proofpoint-GUID: Xg4GOC06UIFmvulNu52G-IzwWk4MmApx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-27_15,2023-02-27_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759010615086065881?= X-GMAIL-MSGID: =?utf-8?q?1759010615086065881?= |
Series |
mmc: sdhci-cadence: SD6 controller support
|
|
Commit Message
Piyush Malgujar
Feb. 27, 2023, 6:31 p.m. UTC
From: Jayanthi Annadurai <jannadurai@marvell.com> Add support for SD6 controller support. Signed-off-by: Jayanthi Annadurai <jannadurai@marvell.com> Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com> --- .../devicetree/bindings/mmc/cdns,sdhci.yaml | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-)
Comments
On 27/02/2023 19:31, Piyush Malgujar wrote: > From: Jayanthi Annadurai <jannadurai@marvell.com> > > Add support for SD6 controller support. > > Signed-off-by: Jayanthi Annadurai <jannadurai@marvell.com> > Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com> > --- > .../devicetree/bindings/mmc/cdns,sdhci.yaml | 24 +++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > index 8b1a0fdcb5e3e2e8b87d8d7678e37f3dad447fc1..0dba17c4f17f82c8ae68e46225ed72418e8361ff 100644 > --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > @@ -4,7 +4,7 @@ > $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) > +title: Cadence SD/SDIO/eMMC Host Controller (SD4HC, SD6HC) > > maintainers: > - Masahiro Yamada <yamada.masahiro@socionext.com> > @@ -18,7 +18,9 @@ properties: > - enum: > - microchip,mpfs-sd4hc > - socionext,uniphier-sd4hc > - - const: cdns,sd4hc > + - enum: > + - cdns,sd4hc > + - cdns,sd6hc I see here rather random set of changes in each version of this patch. This does not really make sense. You are saying that existing (!!!) mpfs-sd4hc is compatible with sd6hc. I think you wanted oneOf here, but not sure. Can you explain what is your intention? Your commit msg is just one line saying the same as subject, so not really helpful. Best regards, Krzysztof
On Mon, Feb 27, 2023 at 10:31:50AM -0800, Piyush Malgujar wrote: > From: Jayanthi Annadurai <jannadurai@marvell.com> > > Add support for SD6 controller support. On what h/w? > > Signed-off-by: Jayanthi Annadurai <jannadurai@marvell.com> > Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com> > --- > .../devicetree/bindings/mmc/cdns,sdhci.yaml | 24 +++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > index 8b1a0fdcb5e3e2e8b87d8d7678e37f3dad447fc1..0dba17c4f17f82c8ae68e46225ed72418e8361ff 100644 > --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > @@ -4,7 +4,7 @@ > $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) > +title: Cadence SD/SDIO/eMMC Host Controller (SD4HC, SD6HC) > > maintainers: > - Masahiro Yamada <yamada.masahiro@socionext.com> > @@ -18,7 +18,9 @@ properties: > - enum: > - microchip,mpfs-sd4hc > - socionext,uniphier-sd4hc > - - const: cdns,sd4hc > + - enum: > + - cdns,sd4hc > + - cdns,sd6hc Other than FPGA implementations IP vendor compatible strings are pretty much useless. Define a compatible for your h/w. > > reg: > maxItems: 1 > @@ -111,6 +113,24 @@ properties: > minimum: 0 > maximum: 0x7f > > + cdns,iocell-input-delay-ps: > + description: Delay in ps across the input IO cells > + > + cdns,iocell-output-delay-ps: > + description: Delay in ps across the output IO cells > + > + cdns,delay-element-ps: > + description: Delay element in ps used for calculating phy timings > + > + cdns,read-dqs-cmd-delay-ps: > + description: Command delay used in HS200 tuning > + > + cdns,tune-val-start-ps: > + description: Staring value of data delay used in HS200 tuning > + > + cdns,tune-val-step-ps: > + description: Incremental value of data delay used in HS200 tuning Wouldn't any controller implementation need these possibly? IIRC, we have some common properties for this. If not, survey what we do have and come up with something common. Or you can imply all this from the h/w specific compatible you are going to add. Rob
Hi Krzysztof, Thanks for the review comments. On Tue, Feb 28, 2023 at 11:53:51AM +0100, Krzysztof Kozlowski wrote: > On 27/02/2023 19:31, Piyush Malgujar wrote: > > From: Jayanthi Annadurai <jannadurai@marvell.com> > > > > Add support for SD6 controller support. > > > > Signed-off-by: Jayanthi Annadurai <jannadurai@marvell.com> > > Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com> > > --- > > .../devicetree/bindings/mmc/cdns,sdhci.yaml | 24 +++++++++++++++++-- > > 1 file changed, 22 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > index 8b1a0fdcb5e3e2e8b87d8d7678e37f3dad447fc1..0dba17c4f17f82c8ae68e46225ed72418e8361ff 100644 > > --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > @@ -4,7 +4,7 @@ > > $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > -title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) > > +title: Cadence SD/SDIO/eMMC Host Controller (SD4HC, SD6HC) > > > > maintainers: > > - Masahiro Yamada <yamada.masahiro@socionext.com> > > @@ -18,7 +18,9 @@ properties: > > - enum: > > - microchip,mpfs-sd4hc > > - socionext,uniphier-sd4hc > > - - const: cdns,sd4hc > > + - enum: > > + - cdns,sd4hc > > + - cdns,sd6hc > > I see here rather random set of changes in each version of this patch. > This does not really make sense. You are saying that existing (!!!) > mpfs-sd4hc is compatible with sd6hc. I think you wanted oneOf here, but > not sure. Can you explain what is your intention? Your commit msg is > just one line saying the same as subject, so not really helpful. > > > Best regards, > Krzysztof > Yes thank you, it should be oneOf as sd6hc is exclusive. I will correct it in the next version. Best Regards, Piyush
Hi Rob, Thanks for the review comments. On Tue, Feb 28, 2023 at 09:46:48AM -0600, Rob Herring wrote: > On Mon, Feb 27, 2023 at 10:31:50AM -0800, Piyush Malgujar wrote: > > From: Jayanthi Annadurai <jannadurai@marvell.com> > > > > Add support for SD6 controller support. > > On what h/w? > This has been used and tested on Marvell CN10K series SOCs. > > > > Signed-off-by: Jayanthi Annadurai <jannadurai@marvell.com> > > Signed-off-by: Piyush Malgujar <pmalgujar@marvell.com> > > --- > > .../devicetree/bindings/mmc/cdns,sdhci.yaml | 24 +++++++++++++++++-- > > 1 file changed, 22 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > index 8b1a0fdcb5e3e2e8b87d8d7678e37f3dad447fc1..0dba17c4f17f82c8ae68e46225ed72418e8361ff 100644 > > --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml > > @@ -4,7 +4,7 @@ > > $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > > -title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) > > +title: Cadence SD/SDIO/eMMC Host Controller (SD4HC, SD6HC) > > > > maintainers: > > - Masahiro Yamada <yamada.masahiro@socionext.com> > > @@ -18,7 +18,9 @@ properties: > > - enum: > > - microchip,mpfs-sd4hc > > - socionext,uniphier-sd4hc > > - - const: cdns,sd4hc > > + - enum: > > + - cdns,sd4hc > > + - cdns,sd6hc > > Other than FPGA implementations IP vendor compatible strings are pretty > much useless. Define a compatible for your h/w. > ok, will use Marvell specific string here. > > > > reg: > > maxItems: 1 > > @@ -111,6 +113,24 @@ properties: > > minimum: 0 > > maximum: 0x7f > > > > + cdns,iocell-input-delay-ps: > > + description: Delay in ps across the input IO cells > > + > > + cdns,iocell-output-delay-ps: > > + description: Delay in ps across the output IO cells > > + > > + cdns,delay-element-ps: > > + description: Delay element in ps used for calculating phy timings > > + > > + cdns,read-dqs-cmd-delay-ps: > > + description: Command delay used in HS200 tuning > > + > > + cdns,tune-val-start-ps: > > + description: Staring value of data delay used in HS200 tuning > > + > > + cdns,tune-val-step-ps: > > + description: Incremental value of data delay used in HS200 tuning > > Wouldn't any controller implementation need these possibly? IIRC, we > have some common properties for this. If not, survey what we do have and > come up with something common. Or you can imply all this from the h/w > specific compatible you are going to add. > These parameters are for sd6 cadence controller, will add sd6 in the property string so to imply it's specific to sd6hc. > Rob Thanks, Piyush
diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml index 8b1a0fdcb5e3e2e8b87d8d7678e37f3dad447fc1..0dba17c4f17f82c8ae68e46225ed72418e8361ff 100644 --- a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml +++ b/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) +title: Cadence SD/SDIO/eMMC Host Controller (SD4HC, SD6HC) maintainers: - Masahiro Yamada <yamada.masahiro@socionext.com> @@ -18,7 +18,9 @@ properties: - enum: - microchip,mpfs-sd4hc - socionext,uniphier-sd4hc - - const: cdns,sd4hc + - enum: + - cdns,sd4hc + - cdns,sd6hc reg: maxItems: 1 @@ -111,6 +113,24 @@ properties: minimum: 0 maximum: 0x7f + cdns,iocell-input-delay-ps: + description: Delay in ps across the input IO cells + + cdns,iocell-output-delay-ps: + description: Delay in ps across the output IO cells + + cdns,delay-element-ps: + description: Delay element in ps used for calculating phy timings + + cdns,read-dqs-cmd-delay-ps: + description: Command delay used in HS200 tuning + + cdns,tune-val-start-ps: + description: Staring value of data delay used in HS200 tuning + + cdns,tune-val-step-ps: + description: Incremental value of data delay used in HS200 tuning + required: - compatible - reg