Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2751664pxa; Tue, 25 Aug 2020 02:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEZ9hs58at0QhxRZCa60ABpd+ClKrvvi6sbJR+dW4so3g3xJtagS9XWO2+lO2Rufm4TGk5 X-Received: by 2002:a05:6402:d07:: with SMTP id eb7mr9620391edb.160.1598346536047; Tue, 25 Aug 2020 02:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598346536; cv=none; d=google.com; s=arc-20160816; b=yH6UL/8RtBSRSTYCfx9iR0ING61p6rp73y4Xwpt3TCqrE7deN9Y/Zty93R1FuE2YA7 SAHVcaGEuBYqITea3F78NKgNagCmLCURWdPBfd+svhslVrk9NsVaj3DTG9tlb3wAxRTm IlEkMAJDGIwSvShpRh5lU3WN50Oxd85YTcgZblaeozgRMFwB9wKECvboh55YmsnzorDc yQGiNcIPswxcqNiB19olOcaSmXVmVdZmu2IbWDCs44JPV96t0GsU4/pEBj4Su382mudM ImhENQcbPNst/RgZgC0RjQg8AtBCNRrUdRhNPylYA6CemP+HF7uv484LgfnPAXT0basd Mh9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0Z0K1ZIpp1yqAAQWwRQkRlrw70XH0sFNRkiFVK9mfTQ=; b=0u23I0APG2PjY/Go2f83JY+UYhymjpIfq791DibVS40BFXF2YfH6XCHLhJN2hlEQJq 6LUUGELGDLnkkaRGjHtdoYxJNHMp50JqD8s2/TYKgnBX8KXjzwnxLgFfaog2N6QBNJ1W uieUrOMdABA/Bw6hlJN6fB0I338NYm2XUm8JFZq6TjSEQ0b0gDfNRYeSBREeKRPPB6X5 EJweb1n6YvHFAdirIqzoUAkAiWGnlcUrkCwOT3zeUdHqh2c4xnsmeomi/SvL6lLoUCWi 0KFpa11RfG/eqyMxeRPBL1KSUKdSvcougyFEvQxioIemIa6MhWqYZSqQpd3geqek3grQ R0Aw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z25si8338859eje.701.2020.08.25.02.08.33; Tue, 25 Aug 2020 02:08:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728687AbgHYIr5 (ORCPT + 99 others); Tue, 25 Aug 2020 04:47:57 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52657 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728124AbgHYIr5 (ORCPT ); Tue, 25 Aug 2020 04:47:57 -0400 X-Originating-IP: 90.66.108.79 Received: from localhost (lfbn-lyo-1-1932-79.w90-66.abo.wanadoo.fr [90.66.108.79]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2CD061C0011; Tue, 25 Aug 2020 08:47:53 +0000 (UTC) Date: Tue, 25 Aug 2020 10:47:52 +0200 From: Alexandre Belloni To: Ulf Hansson Cc: Lars Povlsen , Adrian Hunter , SoC Team , Rob Herring , Microchip Linux Driver Support , "linux-mmc@vger.kernel.org" , DTML , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH v4 1/3] dt-bindings: mmc: Add Sparx5 SDHCI controller bindings Message-ID: <20200825084752.GD2389103@piout.net> References: <20200824151035.31093-1-lars.povlsen@microchip.com> <20200824151035.31093-2-lars.povlsen@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/08/2020 09:33:45+0200, Ulf Hansson wrote: > 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. This is not what the devicetree specification says. 2.2.2 says that the generic name is mmc, not mmc[n]. Since there is a proper unit-address, I don't see the need for an index here. > > > + 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 -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com