Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp982415ybi; Tue, 16 Jul 2019 07:59:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2b1LBGGnnq8K4MKrF85X2LA3MdGaTa/iBkJvqrayPKWVMWwcOd0QYVnvP2CjzD7muVqfC X-Received: by 2002:a65:4786:: with SMTP id e6mr33591535pgs.448.1563289186391; Tue, 16 Jul 2019 07:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563289186; cv=none; d=google.com; s=arc-20160816; b=G2G6aULF45ls54vOW8oNu9Wd7DChuECa9nUG8fNQHW96RgvIc0Vk8fiR01yBpaB+ha jS0Qrvt59UdKkWo3qs7De5YWfBDfjqxDBHM0QvUz6fTb29OoiT3uf/aA87yrMKVRvT6C rs/TVOjfWrd9EsUyBU5Us5CYBfd4Z7mbKnG1cO5M5opZ/lQ7whcQf4VM74wABV3hFq2H 1HGsP1LbK3srT7FNVDB6cc0PWIgB76zVniYV0zW+ivulNu2LpRmZfsn0MNtWZ4rLCO9J cW0Erh/ZLih7pniEwE1ELU9c2LR0AoLe38cG3uQ8NFXA9sBe4xuA2xIDEcSp1W4WcL7c 0T1Q== 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=tEKOuNaZZNvITRR4P/tG8+bUTEdc5u2QyMhCFdoQFto=; b=qujQ8Duzt4LsX1ddj4r0+ADNABSpq80wdHZ08hMg8eLCE1+xD9TMAuafPvUws3YpeM HLoYh/ohr8e/8Ao/fDRO/iSlKhNf9Lc8Str0uxMpguIrGQ21rSPKlIQFCFF+NpsCrigQ 77su2502SBJUtwRTa+U2U8a9vpB7R5wU9lkj3qpmsaBnuQaSPFPV7/Z8p0oKUGpxXfRs RAA8Xrp8uWb4Z/8XrZqslVl1Kf/D27qCeuyL7AxR2ayg8rKz4hpL9ToJ3M7WDMpnRO+B ee3ezqg2WSqSzOrQHaBTEYGVqlL5EFNIqT56IRmL3WFqSOZyfiyt243DzDLRpdEqMD6g PYMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iV98308a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 1si1721423pli.427.2019.07.16.07.59.30; Tue, 16 Jul 2019 07:59:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iV98308a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387876AbfGPO5e (ORCPT + 99 others); Tue, 16 Jul 2019 10:57:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:47572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727849AbfGPO5e (ORCPT ); Tue, 16 Jul 2019 10:57:34 -0400 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B8F5C217F4; Tue, 16 Jul 2019 14:57:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563289053; bh=U42z2e4tCTHxP6Wr6zzHqfiVLXBTEYPAOO2p1lSrZNs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iV98308aMsPTi2CN5VG60zRBK3FK0hKYQIfxuEKr6pRSABb4hhBER0nxiB4/wv/ji dFzv62BnXedW7Ul8okOD+YZ5ldMqOMeNL6egrQ1jdnnZE0t0zmbmdGtvYSH3wje4+o pI0xt0K10YfTC8rD42wOq+BCOGeW/slQFZYNf4PU= Received: by mail-qk1-f169.google.com with SMTP id t8so14830385qkt.1; Tue, 16 Jul 2019 07:57:33 -0700 (PDT) X-Gm-Message-State: APjAAAUyBPvIf3393+TM108nZFCD+HXiKTvEXEKDb8Q8b8anTauXAvYl yE9MVd7BL0dMK5+SZS8xnShblbymJsm/EUKQkw== X-Received: by 2002:a05:620a:1447:: with SMTP id i7mr22288549qkl.254.1563289052931; Tue, 16 Jul 2019 07:57:32 -0700 (PDT) MIME-Version: 1.0 References: <20190712033214.24713-1-andrew@aj.id.au> <20190712033214.24713-2-andrew@aj.id.au> <3fe55ea9-b949-48a0-9eab-90ad3bc1ee2a@www.fastmail.com> In-Reply-To: <3fe55ea9-b949-48a0-9eab-90ad3bc1ee2a@www.fastmail.com> From: Rob Herring Date: Tue, 16 Jul 2019 08:57:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: mmc: Document Aspeed SD controller To: Andrew Jeffery Cc: linux-mmc , Ulf Hansson , Mark Rutland , Joel Stanley , Adrian Hunter , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-aspeed@lists.ozlabs.org, "linux-kernel@vger.kernel.org" , Ryan Chen 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, Jul 15, 2019 at 6:36 PM Andrew Jeffery wrote: > > > > On Tue, 16 Jul 2019, at 07:47, Rob Herring wrote: > > On Thu, Jul 11, 2019 at 9:32 PM Andrew Jeffery wrote: > > > > > > The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the > > > SDIO Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit > > > data bus if only a single slot is enabled. > > > > > > Signed-off-by: Andrew Jeffery > > > --- > > > In v2: > > > > > > * Rename to aspeed,sdhci.yaml > > > * Rename sd-controller compatible > > > * Add `maxItems: 1` for reg properties > > > * Move sdhci subnode description to patternProperties > > > * Drop sdhci compatible requirement > > > * #address-cells and #size-cells are required > > > * Prevent additional properties > > > * Implement explicit ranges in example > > > * Remove slot property > > > > > > .../devicetree/bindings/mmc/aspeed,sdhci.yaml | 90 +++++++++++++++++++ > > > 1 file changed, 90 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml b/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml > > > new file mode 100644 > > > index 000000000000..67a691c3348c > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml > > > @@ -0,0 +1,90 @@ > > > +# SPDX-License-Identifier: GPL-2.0-or-later > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/mmc/aspeed,sdhci.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: ASPEED SD/SDIO/eMMC Controller > > > + > > > +maintainers: > > > + - Andrew Jeffery > > > + - Ryan Chen > > > + > > > +description: |+ > > > + The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the SDIO > > > + Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit data bus if > > > + only a single slot is enabled. > > > + > > > + The two slots are supported by a common configuration area. As the SDHCIs for > > > + the slots are dependent on the common configuration area, they are described > > > + as child nodes. > > > + > > > +properties: > > > + compatible: > > > + enum: [ aspeed,ast2400-sd-controller, aspeed,ast2500-sd-controller ] > > > > This is actually a list of 4 strings. Please reformat to 1 per line. > > On reflection that's obvious, but also a somewhat subtle interaction with the > preference for no quotes (the obvious caveat being "except where required"). It wasn't something I'd run into before. I'm working on a check, but unfortunately we can only check for quotes not needed and can't check for missing quotes. > Thanks for pointing it out. > > I have been running `make dt_binding_check` and `make dtbs_check` over > these, looks like I need to up my game a bit though. Do you do additional things > in your workflow? That should have thrown the warnings. If you aren't seeing those, do you have dtschema package installed (see Documentation/devicetree/writing-schema.md)? Or it could be erroring out on something else first. There's a few breakages that I'm trying to fix. Rob