Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5801134pxb; Mon, 14 Feb 2022 07:57:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+rei+3xGuS/HE/BNjjh3R61l1duv+BgEP4BRgghdrHci8k/1kczARoWuOC1yZZwL+hKc1 X-Received: by 2002:a17:90b:3c6:: with SMTP id go6mr15301762pjb.230.1644854270277; Mon, 14 Feb 2022 07:57:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644854270; cv=none; d=google.com; s=arc-20160816; b=iuOo8r42Xf2brYli4KL8DgvHVkN6rzwzSjGHzF6KbRwP+gf47YW6jvrZ1b6p4fN8Qz 8cIhgENlqV6RVWHmbe8DdJWh5cos9MdvGk/OMsd3jxwzk59tMsl3DAykR8IAX8dF47mf oqbXMdXVpMMPGX83xa0+fRCSk0pRzipjJObgdHTUsNIWJ7351hi/RYxzKEggURJkyMA5 1RpA/Qx07C6m6QQIay9RnfW7+zJktcG5hiM0UjJ522/tLLMBjvztaTG7vRw1y2qSyDS9 f9T5NrZSBgOZFf0zRdHGAYQ+IVNR+Je6kYZ1A9Yg+/wr9m5dDoV4TzDd/Es5ni1gSkfp Y9iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HeUXG/zAHXDhKnRgHynhqcN3oTgfihFwSnaqKBQhHAY=; b=teUbpRyVITDwmg0tGbZSon2yJ+1EzK83nrH5Lng3tYWcvfyw6UUbqnITdzukI8Pplo 5NkXyO+s8PR5q4FMyopF62TPUReORL9ubcEg5NVSPdEKB4fvSd0Jk8lLNZIXiYhQLX8l X7CdZon171JFn+lbhEMU96D0hzGVeLemVGOzqEBa46ZW3JYclBNL1emeLVcXrz6pXZhh BQqFgzwohxlQhJRI6YZATeTvglddP40S3xng6VHrrptLhjDX5bLwZ8D3pX2ApVgR8NJ1 E0snq5kIGSMv+zdkTvyjzuBR8fYmPMDUoYBU1YLd7TedGzZR//NI3psxxG88N4nmx+9Q qUHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hJsVC6/8"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4si31951297pfl.173.2022.02.14.07.57.36; Mon, 14 Feb 2022 07:57:50 -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=@linaro.org header.s=google header.b="hJsVC6/8"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350362AbiBKMxf (ORCPT + 93 others); Fri, 11 Feb 2022 07:53:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350360AbiBKMxd (ORCPT ); Fri, 11 Feb 2022 07:53:33 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21A6DE62 for ; Fri, 11 Feb 2022 04:53:32 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id i34so16399506lfv.2 for ; Fri, 11 Feb 2022 04:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HeUXG/zAHXDhKnRgHynhqcN3oTgfihFwSnaqKBQhHAY=; b=hJsVC6/8BOKl9j0kcNoT+u3oj69fku4ThvVdDApzZNeN0VsguxOaXUtxMWrzTN/4iy Zkw9YNFUubF6wbjLQCCIGxKNZJlN56D03cmgLPz8PmIhkbild7zc6FIZ4Fg7uChhFCSm Pwtlsa/ciT+IwwIBcybwQw96AqVKAliyRVcAdsSVdQL5oFXsX81/B1DYEsD5yEodl0jV DZtjbrZYW7KFS7ZgClSDkKP8BSnagPNrRpLwNmYDwd/hf7kM6kqprA9wGWTcTN2L2H87 2GkU0aMyPpgDJw3A6carTLEeEmfe5o2u4HaSKjyrOwhKppWtvp2VYs7bJm1zyoMxbf8L 1z7g== 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:content-transfer-encoding; bh=HeUXG/zAHXDhKnRgHynhqcN3oTgfihFwSnaqKBQhHAY=; b=WCMlkyJBGv36nSEm8Ynry7yLanCENnEMpotFVgJ8oDGPHOgWUMpAFtu0ZwRE3c9rdK h/5xWaZIpMsEA7GZX++si1oNo8aQr52QLMMzkcKmPhMK28gzbT/LdrKrO/q79ffetTM7 r7cFDeXxzHt+C9aQvHH0/mN10f+FS6gZo3oFjcdHLZWYCZoRKvx8ep5GujMADxFn5MAM F0vY0D7K20B6VffITqkR33vKcqf45IcK444mQGvQqgURZNc06r9VksxoWAGHqsOKE5Up Ttrm3YG8+P0ZQRkz7sirRhEWGfgnqzhVJrT4TzxXEJexb7C9IuJ1ag8F1PlbejpFI6Sz ithw== X-Gm-Message-State: AOAM530+32Uv2c7DhKV45Izm8bqHD4qfCm9nNkxqy9i5Zg8jJu4vrYzW wgImBZagMsXZlsPMXXAO9Nb/WeZjHVAbp+UQQoTAig== X-Received: by 2002:a05:6512:3b9a:: with SMTP id g26mr1130306lfv.71.1644584010394; Fri, 11 Feb 2022 04:53:30 -0800 (PST) MIME-Version: 1.0 References: <40d202104eec46d2a35445e0128a124f@sphcmbx02.sunplus.com.tw> In-Reply-To: <40d202104eec46d2a35445e0128a124f@sphcmbx02.sunplus.com.tw> From: Ulf Hansson Date: Fri, 11 Feb 2022 13:52:54 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] dt-binding: mmc: Add mmc yaml file for Sunplus SP7021 To: =?UTF-8?B?VG9ueSBIdWFuZyDpu4Pmh7fljpo=?= , Rob Herring Cc: Tony Huang , "lhjeff911@gmail.com" , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "p.zabel@pengutronix.de" , "linux-kernel@vger.kernel.org" , =?UTF-8?B?V2VsbHMgTHUg5ZGC6Iqz6aiw?= , =?UTF-8?B?TGggS3VvIOmDreWKm+ixqg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, 10 Feb 2022 at 09:56, Tony Huang =E9=BB=83=E6=87=B7=E5=8E=9A wrote: > > Dear Robh: > > > Subject: Re: [PATCH v3 1/2] dt-binding: mmc: Add mmc yaml file for Sunp= lus > > SP7021 > > > > On Wed, Feb 09, 2022 at 06:41:06PM +0800, Tony Huang wrote: > > > Add mmc yaml file for Sunplus SP7021 > > > > > > Signed-off-by: Tony Huang > > > --- > > > Changes in v3: > > > - combine sdcard and eMMC into one driver. > > > > > > .../devicetree/bindings/mmc/sunplus-mmc.yaml | 76 > > ++++++++++++++++++++++ > > > MAINTAINERS | 6 ++ > > > 2 files changed, 82 insertions(+) > > > create mode 100644 > > > Documentation/devicetree/bindings/mmc/sunplus-mmc.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/mmc/sunplus-mmc.yaml > > > b/Documentation/devicetree/bindings/mmc/sunplus-mmc.yaml > > > new file mode 100644 > > > index 0000000..8f44d13 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/mmc/sunplus-mmc.yaml > > > @@ -0,0 +1,76 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) # Copyrigh= t > > > +(C) Sunplus Ltd. Co. 2021 %YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/mmc/sunplus-mmc.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: sunplus MMC controller > > > + > > > +allOf: > > > + - $ref: "mmc-controller.yaml" > > > + > > > +maintainers: > > > + - Tony Huang > > > + - Li-hao Kuo > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - sunplus,sp7021-emmc > > > + - sunplus,sp7021-sdhci > > > > Why are these still different? Looking at the driver, it seems the sett= ings are > > the same for both. And for clock speeds, we have properties to control = them as > > they can be board specific. > > > > The register base address of emmc and sd card are different. > eMMC and sdcard are individual hardware settings When I looked at the previous version of the driver(s) that was posted, I got the impression that you have some registers in the controller that are specific for eMMC, SD or SDIO. So, depending on how the controller is going to be used (for eMMC, SD or SDIO) it's needs to be configured differently. Right? If I got this right, I think you can instead use the existing common DT properties, "no-sd", "no-sdio", "no-mmc" to explain how each controller is configured. Does this make sense to you? Kind regards Uffe