Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp5517421lfu; Mon, 28 Mar 2022 15:49:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW880MnF7YG+J60fC67Gf9LTSgmXstiaoNXC62ra495ok+ZoMtAmYRMiY25IO44132nHk8 X-Received: by 2002:a05:6870:3912:b0:dd:d425:d4e1 with SMTP id b18-20020a056870391200b000ddd425d4e1mr692195oap.155.1648507794538; Mon, 28 Mar 2022 15:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648507794; cv=none; d=google.com; s=arc-20160816; b=ZQvZb8xRtNl0tOlt1h5hIE4aRXB2X6f25YMNaQ8J0c3YXGqZt51sul8iHLynUooqkD sltkVDZEN+uKvAOpOe7hL+RDnmxOISt5PWe2Rn/UJs+An+xnroVEi4YGfA/5xifaHIo9 i7hAH3edMhq78f9t5jQo+8uJi3bDS42JMy6IXm/92ha5/RU7wbJ2hb0qusGKKPdazKVc KiI4+BZodKt6pvrO+GLPuZrdhYBxLtfLMb2pSNivfoLJAM93/Ts9GDREz0GeZOPTXVnd BmvWYqQBjWoQTk6VfFzgtp3yTAII2DosyO9fSG8JyiSPSJnQAu1iAsoIMMAMOLt29yZx zwdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5MH++TcPuKhQzVkvXPAXpE2uJ7KTI2BReKPG/BP69Jc=; b=omEJsCkkBJwm5ndrMPHL/+pdINdDRJPpCApKmRdj4bfxzMy4OHWCElg5mYVIapqfQ2 VxGkUsNIQQenh3V81Gph5xqq6isWNEzCP5xHxDp5UiknYu7AfV7XhOva16NYsG2UiS7M FM+Qqh0qKPmeTCBcx6GRl5/6v2Icv3XwL+w3i3Zs5u87PHcHO/u56jtqqdgc6c3TV2D1 SXPbE/YwijLzTgrxw8r/LULTyq1yxuPhcavIf6vhLhs8Zf8/TNE1IwC6n768TfEcYwvl xhQy6OJLZMWU+wBviYl3kzUXi5weQ0O1dPnwp97ZjQoBBHNbBL3qSjdOW7ChK+jj0ILS cCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ut8jMp9B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i84-20020aca3b57000000b002ef0c3476a3si10628263oia.291.2022.03.28.15.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ut8jMp9B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80817260C78; Mon, 28 Mar 2022 14:56:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240344AbiC1KtZ (ORCPT + 99 others); Mon, 28 Mar 2022 06:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236221AbiC1KtZ (ORCPT ); Mon, 28 Mar 2022 06:49:25 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382BE41315; Mon, 28 Mar 2022 03:47:44 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id p15so27747275ejc.7; Mon, 28 Mar 2022 03:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5MH++TcPuKhQzVkvXPAXpE2uJ7KTI2BReKPG/BP69Jc=; b=Ut8jMp9By1vnZGclTipmL/IpUc6eXLtRJsjiRQEg2X7rDFgJtwsqfDSoiCjdT4iq8q fo222b8zAHEaRvvvEU4Jo1TrX4zBQo7dV6vDfqPaff8EXeHBOUVZLA61XYxNjqfxIRPt JTkQl6OvVv9sb/nxNeV6chP5HXU2+4m8fCJx7iDiiYFGdQ+QfmRWvMDG8qknEqe2vxdP YTfl/NXZ2Y9Aiq2zeP6jN/w09SCmRODfl/B7NrrUsviGb6Tuw70tRDOQZ25NvuCbYM99 NtsvY2KnBGXGdhGi1ZJbqv3dUe0XyBMK7V8umb6163ujfOWUWyqPwAWVGPps0x/2WJzF yj3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5MH++TcPuKhQzVkvXPAXpE2uJ7KTI2BReKPG/BP69Jc=; b=K4yJhyLNaITG9EpLZMYiQ/W6t9JHwlp7L6ppPEGQVyvgvmAByBd5Dm92W8JdQaXbH+ OAQK4/OnsfZEssC0NzTErHeRDghCSJ/gVu6WJsQJQqGH5OEBCB8CowO7VuqkIh9HdzkF F26k+RDNQuN1eujmtrpEbBv9T2o74vm+fjLxKc97lEJaX+eCQETiS525rCf4voB/I3zt sS7ECkjgjkixxh/kijnnGMJ7azaf7S7Wj2V9319Wkx0nRUOInuQJ1nRQo3cUMOx3yQec Qi1faJdomRRnvW8iXUFzVnBiZClPwtj+lSXvVCUUSetd+y9l7xANkuh900P5vYOSq16G 3X9Q== X-Gm-Message-State: AOAM530XlSG5xaQoVF3TpUWKhDSStVMGD1/y9Yl8QZBm9CPxiUhGBlbp p6g2nT5/1i4cbNF3PDv4F9q9zdaC40sWur85KT8= X-Received: by 2002:a17:907:7ba3:b0:6df:b07c:ee35 with SMTP id ne35-20020a1709077ba300b006dfb07cee35mr26754289ejc.588.1648464462488; Mon, 28 Mar 2022 03:47:42 -0700 (PDT) MIME-Version: 1.0 References: <20220327123835.28329-1-aford173@gmail.com> <20220327123835.28329-3-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Mon, 28 Mar 2022 05:47:31 -0500 Message-ID: Subject: Re: [PATCH 3/5] arm64: dts: imx8mp: Enable HS400-ES To: Ahmad Fatoum Cc: linux-mmc , devicetree , Ulf Hansson , Fabio Estevam , Shawn Guo , Sascha Hauer , Adam Ford-BE , Haibo Chen , Linux Kernel Mailing List , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Krzysztof Kozlowski , arm-soc Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 Mon, Mar 28, 2022 at 2:20 AM Ahmad Fatoum wrote: > > Hello Adam, > > On 27.03.22 14:38, Adam Ford wrote: > > The SDHC controller in the imx8mp has the same controller > > as the imx8mm which supports HS400-ES. Change the compatible > > fallback to imx8mm to enable it. > > I believe that's a shortcoming of the Linux driver, which should explicitly list > fsl,imx8mp-usdhc in its compatibles and enable HS400-ES for it. > > I find dropping compatibles problematic, because like Linux matching > fsl,imx8mm-usdhc, but not fsl,imx8mp-usdhc, other software may match > fsl,imx7d-usdhc, but not fsl,imx8[mp]-usdhc. > > I'd prefer that either the kernel driver gains extra compatibles or that > the DTS lists extra compatibles and we refrain from dropping existing > (correct) ones. > I would argue that imx7d is not correct since the IP blocks between imx7d and imx8mm have different flags/quirks. One of which includes HS400-ES, but there are other differences as well. > What do you think? From my understanding of the fallback compatibility strings is to avoid having to add more and more compatible strings to the drivers when they do not serve a functional purpose. Based On a conversation with Krzysztof [1], he suggested we update the YAML file based on the fallback, but he wanted NXP to give their feedback as to what the right fallback strings should be. Haibo from NXP sent me a hierarchy [1] which is what I used to update the YAML file. Based on the YAML file, the fallback in each DTSI file was updated to ensure the use of the proper IP block. adam [1] - https://lore.kernel.org/linux-arm-kernel/CAHCN7xLWoUGi-jfxR2a0gvEFkPT3USUEb+8U3CCqCb5wWEJ8xw@mail.gmail.com/T/ > > Cheers, > Ahmad > > > Signed-off-by: Adam Ford > > --- > > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > index 794d75173cf5..d5ee1520f1fe 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > @@ -769,7 +769,7 @@ i2c6: i2c@30ae0000 { > > }; > > > > usdhc1: mmc@30b40000 { > > - compatible = "fsl,imx8mp-usdhc", "fsl,imx7d-usdhc"; > > + compatible = "fsl,imx8mp-usdhc", "fsl,imx8mm-usdhc"; > > reg = <0x30b40000 0x10000>; > > interrupts = ; > > clocks = <&clk IMX8MP_CLK_DUMMY>, > > @@ -783,7 +783,7 @@ usdhc1: mmc@30b40000 { > > }; > > > > usdhc2: mmc@30b50000 { > > - compatible = "fsl,imx8mp-usdhc", "fsl,imx7d-usdhc"; > > + compatible = "fsl,imx8mp-usdhc", "fsl,imx8mm-usdhc"; > > reg = <0x30b50000 0x10000>; > > interrupts = ; > > clocks = <&clk IMX8MP_CLK_DUMMY>, > > @@ -797,7 +797,7 @@ usdhc2: mmc@30b50000 { > > }; > > > > usdhc3: mmc@30b60000 { > > - compatible = "fsl,imx8mp-usdhc", "fsl,imx7d-usdhc"; > > + compatible = "fsl,imx8mp-usdhc", "fsl,imx8mm-usdhc"; > > reg = <0x30b60000 0x10000>; > > interrupts = ; > > clocks = <&clk IMX8MP_CLK_DUMMY>, > > > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | http://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |