Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1085168pxb; Wed, 3 Nov 2021 18:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySEwywuGaxqFGtYAwBuIgd0C9CLb2kztNxG1qekNK8VFq/q5/D5PQbB/WdZpPL11k7aOvS X-Received: by 2002:a05:6e02:1a4e:: with SMTP id u14mr21842410ilv.159.1635988073343; Wed, 03 Nov 2021 18:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635988073; cv=none; d=google.com; s=arc-20160816; b=WDhNkHMvM5EehbuqTlDWHCVtgX56qQwHS4QyVnUMoJaXOc5IdUnohqOmmyJomUDZbL HY2u42ahwJL5N/iyb8C5Zo/MuhLj5U/BJREaTI5d3ZdXyPs0+nX07Gh7rjYC/H++WxTI XCZnsauqRxTyaq1PQyq021W5JxucmoWJP0LYa6P256tQ3NXmMCFPsjHjWs+qii+nxboP bYugELrG6+/ci+y0NBtspfQjm5ehMvEy/MCrVLQl6FsutRJOMMa1RWAh3h7ph5bBkbYS Q9TevuCuudNeCn89O6BchhCGjMIPlF3I7SHzYOk8EP1pK2X+hJR1dw0Ng+VQPsMzD5Cq CJ5Q== 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=mGavWcXNjdvsaFGjH3yLVdsxiECxJZKPSKveuDvmokQ=; b=O3SKENCWDzFJUC0ztiXbQ6Hp2L8EzVKq4/VSyiHFSfn2IAZLwZztZdd/AIaf27Qsn3 ZZjAribziVS3jsjvQs8+IXt3rA6gaY8H6GBfj+6gdxnbsASU7baqCTba/+XcF+x2jL5i eDFBLowca4QY2nnd6LKXUeJ1GQSiUmORS4uNcos5K5fFOCpMMk286DONCHhsPk2hq8Ys d1J2M2O1Y6AvenXTFwYi4LTGY4miuIgvcPwVFgl25BGyfv597RyFAu1EHOrLi8C7nbi6 tIT9GCuwPwoJB214lqzt9mNlH37HgX4KhZN4KLJLCc+6zs1fXSmiyTGjke1NVjv7XX3b jRBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si2919441ioz.69.2021.11.03.18.07.40; Wed, 03 Nov 2021 18:07:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231230AbhKDBIL (ORCPT + 99 others); Wed, 3 Nov 2021 21:08:11 -0400 Received: from mail-oi1-f182.google.com ([209.85.167.182]:38437 "EHLO mail-oi1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbhKDBIK (ORCPT ); Wed, 3 Nov 2021 21:08:10 -0400 Received: by mail-oi1-f182.google.com with SMTP id d12so3132664oij.5; Wed, 03 Nov 2021 18:05:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mGavWcXNjdvsaFGjH3yLVdsxiECxJZKPSKveuDvmokQ=; b=Nub1mM4IxnZs0x6UJyUMt6AXK0V9WY5zfpBpVFCirPnuiSzl2RprAOlgDd56c3JSca efT7Jz2oUSwa7sBxBDPCRkQCSWsi/LBeF1pkAhBSvKA9+1SlV3jAO33LHHMg+p6vx4DP cmCMahLIZCE0pNPmqpiRBBQOEZdKwvksMVQXv191H6xl2r02zOzuGV58XAxQFLcwb/VL Cs2gUrJ6ADRGW7HbmH3HAdJYkeZOvl7EAwen0tvP5VHrkB/dnYdOJOeewrY3ZCHF0AuH mO8221N5GiyYxf6EkRWB6nTDLtWe7Qab8dR8Ew6aXKybPJvXoR4zsMWZCcG+0BGp+6CO V37g== X-Gm-Message-State: AOAM530cM9E/pGAf+48GzU+DsQ5MojUBTUWu4BPQgj9kKTJiiDL4pxU3 ns9jcxcnJ8IwQG1T3q3FFA== X-Received: by 2002:a54:4e97:: with SMTP id c23mr13542906oiy.153.1635987933167; Wed, 03 Nov 2021 18:05:33 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id z12sm247106oid.45.2021.11.03.18.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 18:05:32 -0700 (PDT) Received: (nullmailer pid 2115444 invoked by uid 1000); Thu, 04 Nov 2021 01:05:31 -0000 Date: Wed, 3 Nov 2021 20:05:31 -0500 From: Rob Herring To: Giulio Benetti Cc: Jesse Taube , Fabio Estevam , NXP Linux Team , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Sascha Hauer , Ulf Hansson , Dong Aisheng , Stefan Agner , Linus Walleij , Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , soc@kernel.org, Russell King - ARM Linux , Abel Vesa , Adrian Hunter , Jiri Slaby , Nobuhiro Iwamatsu , linux-clk , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , linux-mmc , "open list:GPIO SUBSYSTEM" , linux-serial@vger.kernel.org Subject: Re: [PATCH v2 11/13] mmc: sdhci-esdhc-imx: Add sdhc support for i.MXRT series Message-ID: References: <20211102225701.98944-1-Mr.Bossman075@gmail.com> <20211102225701.98944-12-Mr.Bossman075@gmail.com> <20211102233017.bvZyNHgwkuFX2SrymY1886iySuCFjH3IP1hlSc3HduY@z> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211102233017.bvZyNHgwkuFX2SrymY1886iySuCFjH3IP1hlSc3HduY@z> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 03, 2021 at 12:30:17AM +0100, Giulio Benetti wrote: > Hi Fabio, Jesse, All, > > On 11/3/21 12:25 AM, Jesse Taube wrote: > > > > > > On 11/2/21 19:17, Fabio Estevam wrote: > > > On Tue, Nov 2, 2021 at 7:57 PM Jesse Taube wrote: > > > > > > > static struct esdhc_soc_data usdhc_imx8qxp_data = { > > > > .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING > > > > @@ -357,6 +363,7 @@ static const struct of_device_id imx_esdhc_dt_ids[] = { > > > > { .compatible = "fsl,imx7ulp-usdhc", .data = &usdhc_imx7ulp_data, }, > > > > { .compatible = "fsl,imx8qxp-usdhc", .data = &usdhc_imx8qxp_data, }, > > > > { .compatible = "fsl,imx8mm-usdhc", .data = &usdhc_imx8mm_data, }, > > > > + { .compatible = "fsl,imxrt-usdhc", .data = &usdhc_imxrt_data, }, > > > > > > I thought Rob suggested to use the SoC name, so this would be: > > > > > Uh i think that may have been for the UART. > > > { .compatible = "fsl,imxrt1050-usdhc", .data = &usdhc_imxrt1050_data, }, > > > > > > The same applies to the other bindings in the series. > > > > > > This way it would be possible to differentiate between future > > > supported i.MX RT devices. > > > > > This makes sense will do in V3. > > > > If we add every SoC we will end up having a long list for every device > driver. At the moment it would be 7 parts: > 1) imxrt1020 > 2) imxrt1024 > . > . > . > 7) imxrt1170 You don't need a driver update if you use a fallback. When you add the 2nd chip, if you think it is 'the same', then you do: compatible = "fsl,imxrt1024-usdhc", "fsl,imxrt1050-usdhc"; That requires no driver update until the driver needs to handle some difference. And when there is a difference, you don't need a DT update. You could make "fsl,imxrt-usdhc" the fallback from the start if you are adverse to the first way. Rob