Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2710507pxa; Tue, 25 Aug 2020 00:37:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8xDqGfBpanabShU42AKJNbtPdTSHZpqF7eEHiqoTAqFYgsv0iJer9cSjjG644a2BEtabT X-Received: by 2002:a05:6402:35c:: with SMTP id r28mr8700077edw.117.1598341033263; Tue, 25 Aug 2020 00:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598341033; cv=none; d=google.com; s=arc-20160816; b=TFU3D93WRnSSXyjyuev+DIo8rX7atsCd/gA1ztF+uf8lf50gJYRsQWpzNAZa1iZlYu bfZjbUkiRGx2QbjfiMD/YADx9v5CUbdOr5McSetoY/NN8HhESn7AKdN/ZSz6tEQxzqGU yeetViFSmnnaqskGQWdq4ZVV5jlhyNrW8XgHcvKcm5fNDAK4ixwzmda/v21fKLH9/3SN 38oyVi56flgLJmujtwjmunvVnjdcKlRpOj2Psu8F2Xl8YYZgWewmZXTZWuWoa5B0DeQr b3XETbIEtbybSC47JrqGWhF3v0XOCEM275iX9wwwBjIdppzI4D88nxkHahTGepg5QpS4 i/EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=A9dUMlaBrYr0QPUU+/BwByH9mR1EJj9X/+BxAnd7n7g=; b=RZSBmglPqyamvIi/bd1CiT/WBg4d0/JcfS1YXUmMIBojt6OOXLDvYyx6KGoGFX1Fx9 oOzi4+N7ifSDbEDUW6RITO2xacrqRiNl3ZplQNDlyCO4JcHvKlL0JgoQtySCACbIWtav nlIXPMhEAdJGYkCEWOlIc5GxgPejoet5gPu/6y5LitOGFCo8E4a+k6TN0SoTurhl6HI1 ViRNZaqDqr4od2mCzbKObE7bRsPIbGH1+YuKtii0WnbSpR0+tIPk7ZiFrm4KZLpffqVC UXeQ5t4Sp9Sc9JUXMgDYLtPFyzPW+0Ra28pkFFFHnaPv8jMB+3/ZTkPrDNzJEaqRBD+i jyzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VWcVGZZn; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz20si4066320ejb.179.2020.08.25.00.36.50; Tue, 25 Aug 2020 00:37:13 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VWcVGZZn; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729504AbgHYHeY (ORCPT + 99 others); Tue, 25 Aug 2020 03:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729500AbgHYHeX (ORCPT ); Tue, 25 Aug 2020 03:34:23 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77766C0613ED for ; Tue, 25 Aug 2020 00:34:23 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id u131so3259517vsu.11 for ; Tue, 25 Aug 2020 00:34:23 -0700 (PDT) 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; bh=A9dUMlaBrYr0QPUU+/BwByH9mR1EJj9X/+BxAnd7n7g=; b=VWcVGZZn5sYlE6nfnxiL29D4ccEVLF9u8czOtdAqCykk2zBJn5knqKwUqCg5HMma+6 KwV0WWoujrW5/0UCkoKguK5ad5NXefPHrFozEi+YSFAvGzmGkChZuU3MyPeT80sjrpIy YEUTdM5QAtkzP3hY3L/bA7jkrEuHdJESNH/TAeF1r7lj8DBPAbiNXYyLGQt+/Sau2zct ka/PnkTHIU6Qc3i40yokiEtlkD4hfZKP9ip1mwqEWjg9HpKua/EpKtsOmbhSVhyeGnWh SQKeG0iKCSNYH3b3qiJdvoap0Q4Ovz4+zYRiTVkyK6NDADdEtJ90QM6utPbWW52Lk2Ri 4fyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=A9dUMlaBrYr0QPUU+/BwByH9mR1EJj9X/+BxAnd7n7g=; b=rqg1tbsAcjicSFeme2fi/Ryzk7Cii4sTmX6WEAd0SQaqqtrHg3+UXaPwBtYCGMScSY bKWa48aodTv56CrNvc1d47oDNPNb4MGTdHgTw0QKphAXs8jP6FK6ymIuTZIoT9pLeWrD Z3lNZAI9ixGv+JPNiBCD0bzrhuyfYUEPRR3n51IdCU9ZSHf3igFcqUFX2lph+RZx21d7 YnClTmZsWKXfPP9JIxgNMjDkwkBbZKhgd2xQGP3yYsKpTN3YD4JGi7FxRX/Npf5TkPqV uxkFBC9gpr2lX0I3YcW2EM545Te53CbkPfkkT6b68zNHaRSIi8SqksiZ2Gw45MMLg91C bSww== X-Gm-Message-State: AOAM533kw15wRGuN++XTZs8Fh67jNBH1M++PN7T7nDOFsngmNeEU/pcz svd5sUay4GRNxKR8GDXFOTrlwZ1sHaWX78xZjSu3oA== X-Received: by 2002:a67:8c06:: with SMTP id o6mr5056875vsd.200.1598340862095; Tue, 25 Aug 2020 00:34:22 -0700 (PDT) MIME-Version: 1.0 References: <20200824151035.31093-1-lars.povlsen@microchip.com> <20200824151035.31093-2-lars.povlsen@microchip.com> In-Reply-To: <20200824151035.31093-2-lars.povlsen@microchip.com> From: Ulf Hansson Date: Tue, 25 Aug 2020 09:33:45 +0200 Message-ID: Subject: Re: [PATCH v4 1/3] dt-bindings: mmc: Add Sparx5 SDHCI controller bindings To: Lars Povlsen Cc: Adrian Hunter , SoC Team , Rob Herring , Microchip Linux Driver Support , "linux-mmc@vger.kernel.org" , DTML , Linux ARM , Linux Kernel Mailing List , Alexandre Belloni Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Aug 2020 at 17:10, Lars Povlsen wrote: > > The Sparx5 SDHCI controller is based on the Designware controller IP. > > Signed-off-by: Lars Povlsen > --- > .../mmc/microchip,dw-sparx5-sdhci.yaml | 65 +++++++++++++++++++ > 1 file changed, 65 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mmc/microchip,dw-sparx5-sdhci.yaml > > diff --git a/Documentation/devicetree/bindings/mmc/microchip,dw-sparx5-sdhci.yaml b/Documentation/devicetree/bindings/mmc/microchip,dw-sparx5-sdhci.yaml > new file mode 100644 > index 0000000000000..55883290543b9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/microchip,dw-sparx5-sdhci.yaml > @@ -0,0 +1,65 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mmc/microchip,dw-sparx5-sdhci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip Sparx5 Mobile Storage Host Controller Binding > + > +allOf: > + - $ref: "mmc-controller.yaml" > + > +maintainers: > + - Lars Povlsen > + > +# Everything else is described in the common file > +properties: > + compatible: > + const: microchip,dw-sparx5-sdhci > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + description: > + Handle to "core" clock for the sdhci controller. > + > + clock-names: > + items: > + - const: core > + > + microchip,clock-delay: > + description: Delay clock to card to meet setup time requirements. > + Each step increase by 1.25ns. > + $ref: "/schemas/types.yaml#/definitions/uint32" > + minimum: 1 > + maximum: 15 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +examples: > + - | > + #include > + #include > + sdhci0: mmc@600800000 { Nitpick: I think we should use solely "mmc[n]" here. So: mmc0@600800000 { Please update patch3/3 accordingly as well. > + compatible = "microchip,dw-sparx5-sdhci"; > + reg = <0x00800000 0x1000>; > + pinctrl-0 = <&emmc_pins>; > + pinctrl-names = "default"; > + clocks = <&clks CLK_ID_AUX1>; > + clock-names = "core"; > + assigned-clocks = <&clks CLK_ID_AUX1>; > + assigned-clock-rates = <800000000>; > + interrupts = ; > + bus-width = <8>; > + microchip,clock-delay = <10>; > + }; Kind regards Uffe