Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1726178pxb; Fri, 25 Mar 2022 04:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNFDPc7PpFHCtbl/PH+YE23tn9Rr0ysSKMREL96bu+ovVH3c1lc9Jx+GraSkf72uJlKvi1 X-Received: by 2002:a17:907:608c:b0:6e0:19fe:d689 with SMTP id ht12-20020a170907608c00b006e019fed689mr10900662ejc.164.1648208078994; Fri, 25 Mar 2022 04:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648208078; cv=none; d=google.com; s=arc-20160816; b=IodLj2PlbTKcm4uPM3DbC2IjbKM4F+a3tXGSSinCPZQeaab+YXue/5wzTL9aI8cVxY 76EK9qWO9Chfn3n643MVUeeo65S286GjLIvCaKiVJjBZeb1Bw/dTp3JGOnd6blEh0oHw bQ2B7anLVD9CvGKnGF5Abftm5/YPKrMdvzmsOkOrwV5dS1gWzMaNbKSUEOUMMr7cZZc3 OvwngkseQO02K/77r4R0mGw1ymMnQ2eKmKv0MYQAQW4g0G0QntVu3FJ+4UlTy9DDRr0m vNYeodSrriAvo0Cxz/WMWe5tFB21a4XXINKwiUbgb1BDzznbG5rC8SjISnR0qk+Zh/n4 6NHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:content-language:subject:from:user-agent:mime-version:date :message-id; bh=4HA4+cV5Cx2YJ/wnGG8SlUcCWZl88X9bJXGKc8DKpxk=; b=AWk/Twv/frsfo6Le4EQqVMN0s3qEoh+tPnPEIDJmPU8NkKU3IQ6eAVwwwRwTwzxOaP KEUB2381VRllvL9+jHVXGAeDQej2ayemHL5v7G/GwWD7GPiEMa5Pd35BxbRC1oysMkk+ YrE2lR4G4WxSP4lQnz8qtIXmTgFtANVrrYUCcezhgThlbgiquHuxZLi0F4hlIDU4g+Ig VJ0/ZJWtfLSNFtiN5/w2r03KL6C/GD1LDdwBTqIX52C0fyGSrop5guv0C4opTxu7q0ah j/W7NOuj0KIYKRjgnj0mB1zK85XYhBD1zH3n45KxA0T3U8l9Litvd+sQ7SXHUqBzAWZA OM+g== 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 ce1-20020a170906b24100b006e005e55f6esi2301447ejb.434.2022.03.25.04.34.12; Fri, 25 Mar 2022 04:34:38 -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 S244633AbiCWOMz (ORCPT + 99 others); Wed, 23 Mar 2022 10:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244684AbiCWOMt (ORCPT ); Wed, 23 Mar 2022 10:12:49 -0400 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B21387CB38; Wed, 23 Mar 2022 07:11:19 -0700 (PDT) Received: by mail-ed1-f44.google.com with SMTP id u26so1954875eda.12; Wed, 23 Mar 2022 07:11:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:content-language:to:cc:references:in-reply-to :content-transfer-encoding; bh=4HA4+cV5Cx2YJ/wnGG8SlUcCWZl88X9bJXGKc8DKpxk=; b=t7q2mFOh4vugfvEI7Ba5gtmGKveibgoNBXLkijBeHjv+/xtxVzqM8jmHfQUiRLvJQO i+K4X3Atk2Z83rGZ7SnElJj9FtaQOAgLebfCvSpKCTkzYKLvPk1awJ2ci/bkfvHp7YJC ryYwlYYqCecpUYdMJrhnntRotToD6bNeGHbjeQDRU2mdo+CQMbuG/Z0gxy4yNh06idox aewuDjkm8j45JrrZNyLBn/ixWFPFGBPIhAEmR1NJIvpE3aZhxmXIEk/SfyMbsCyc8WT0 DPMfZybANYUNyJf/KJNfNpagYFLltkOIRYeLiyLy3G5WSJf0a6Dno/Cb4TgrlJ928DK5 py/w== X-Gm-Message-State: AOAM533l9c1ndfXUqihAilB3HttAchC0ix3TbdFpeSUpDr4+jGRYRHQB Lh8Q6YVd5kCWLB4XEKI6roP2N2RYjBqhkg== X-Received: by 2002:a05:6402:4414:b0:419:28bc:55dc with SMTP id y20-20020a056402441400b0041928bc55dcmr316217eda.130.1648044678168; Wed, 23 Mar 2022 07:11:18 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.googlemail.com with ESMTPSA id n13-20020a170906724d00b006cedd6d7e24sm9974442ejk.119.2022.03.23.07.11.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 07:11:17 -0700 (PDT) Message-ID: <354951e0-d2a8-bf4f-e0c5-081e836bb3c3@kernel.org> Date: Wed, 23 Mar 2022 15:11:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: Krzysztof Kozlowski Subject: Re: [PATCH 1/3] dt-bindings: mmc: imx-esdhc: Change imx8mn and imx8mp compatible fallback Content-Language: en-US To: Adam Ford Cc: arm-soc , Adam Ford-BE , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-mmc , devicetree , Linux Kernel Mailing List References: <20220323134019.3796178-1-aford173@gmail.com> <35f58894-ed6d-0af0-e483-7a161ad6625a@kernel.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,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 23/03/2022 15:00, Adam Ford wrote: > On Wed, Mar 23, 2022 at 8:56 AM Krzysztof Kozlowski wrote: >> >> On 23/03/2022 14:40, Adam Ford wrote: >>> The SDHC controller in the imx8mn and imx8mp have the same controller >>> as the imx8mm which is slightly different than that of the imx7d. >>> Using the fallback of the imx8mm enables the controllers to support >>> HS400-ES which is not available on the imx7d. >>> >>> Signed-off-by: Adam Ford >>> >>> diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml >>> index 7dbbcae9485c..d6ea73d76bdd 100644 >>> --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml >>> +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml >>> @@ -39,14 +39,14 @@ properties: >>> - items: >>> - enum: >>> - fsl,imx8mm-usdhc >> >> Your change looks reasonable, but why imx8mm is compatible with imx7d? > > I saw that, and I wasn't sure the best way to go about fixing it. If > I move the 8mm out of the imx7d category, do I need to add it to the > enum list associated with the imx8mm, or can I just delete it from the > enum leaving the const for imx8mm good enough? > The DTS is using: compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc" which looks incorrect, based on what you wrote in commit description. Since fsl,imx8mm-usdhc has its own compatibility-group and defines the properties for entire family (imx8mm + imx8mn + imx8mp), then I would assume that either fsl,imx8mm-usdhc is not be compatible with imx7d or everything is compatible with imx7d. IOW, DTS and bindings should be changed to one of following: 1. Everything compatible with imx7d: compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc"; compatible = "fsl,imx8mq-usdhc", "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc"; 2. A new group: compatible = "fsl,imx8mm-usdhc"; compatible = "fsl,imx8mq-usdhc", "fsl,imx8mm-usdhc"; Which one, I am not sure. My commit 80fd350b95 organized it in (1) approach, because also that time there was no new group for 8mm (added in commit 431fae8). I assume NXP engineer knows better, so the better solution would be (2). In such case, imx8mm has to be moved to the first enum and all DTS have to be adjusted. Best regards, Krzysztof