Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp900803ybi; Wed, 3 Jul 2019 06:24:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsdM4ZmRLsOJwJGBBRprjOMZOlPgYmWgU4JAur2bjddhAbB9j6A7cGDB0kZYTyW51UALCq X-Received: by 2002:a17:90a:d997:: with SMTP id d23mr12223106pjv.84.1562160244706; Wed, 03 Jul 2019 06:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562160244; cv=none; d=google.com; s=arc-20160816; b=pssuw38mrh7FH/cvH2wLBCHp4MKLyvOHNmqPIpcGIPJ4m8CGvMmEr9bkU0dnLX9wLu X7qeVciS8Drx7vtEtuK2z4C1gctTIgtwERSG3ZInJSSExBAFpWQdRteLM/nZBaydMLUv 0EgWiFJvdy43+XDL2yfHuoylmS0kTnjYC4JQzKRaSAfk3JRqaI8yVtg8jgYJRqAQfSZz 6U6DXvTwvqA3g0G6uYwVGEY63NhnYSYAzXv8jK47RwFb5CYI+FwQPQC1Qm3KOZmn7ErY lyMAavPfm+qATqPn2iUGNdfFGGwTjYht3QurUacYMPWyngwfhov9LIYft0PwPheBB8a7 N9Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=okbISYGRzwWEZy06WKyP7x+GMET7fkxdOdBYylevY9A=; b=FSA17JgohEuqkXku8AWrrwks3gvPDviDX7qd1e4/bBAa4Waz6jpLuVRIimo1xVtZyJ oElzr7JgwKB3n7lUb6+ZXqv4OuKOGXGzOHwRCtFIC4e1LM5LVz9sZgIgV66zPElYxKm3 lHmw5tcyQ/zWpU5dnDhz19kZb8Mr4oOjoVhsx6wTpMpeWogCOw+ztcoEW+LVeWGrVBaI fkupCK2BchHd9hb0r5xaPEVEXKirKjuJ3+RENU4uDu+n8T1hLRW13f5ZwBwQjQ0lFJYK ARo1JEvv/xi2ELcaf8LRikCvRiQ8+GcSEuKMaWZVVTewCze7iFNmErIVUkeIebkAPsla DYzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KAbnBP7U; 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 g17si2226101plo.406.2019.07.03.06.23.49; Wed, 03 Jul 2019 06:24:04 -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=KAbnBP7U; 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 S1726976AbfGCNWs (ORCPT + 99 others); Wed, 3 Jul 2019 09:22:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:37438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbfGCNWr (ORCPT ); Wed, 3 Jul 2019 09:22:47 -0400 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 14FF4218A6; Wed, 3 Jul 2019 13:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562160167; bh=i7lxqt67ElBXTpssGl7R88bbn7Biqfy6vIxKqyDJOHc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KAbnBP7UXB/7O4RstOzuf5CUNfxuETmGPlIWQiajkxeLhKPXbtmjbFQfw1BMeqsgl famkTXEGQrpqt1dsH8EfY2fhrUFrW5lHp00N3VdJ82BwiKoKw1rJa6X8p7lnbdjuCU 9wqKDHGAAK4Rn6zaZxJZ6Nb/UVBVS36jaiL3k3hU= Received: by mail-qt1-f171.google.com with SMTP id h24so3062844qto.0; Wed, 03 Jul 2019 06:22:47 -0700 (PDT) X-Gm-Message-State: APjAAAVQo7LiG8n5AzdomyfkoqByG+ELRRGkyyFyICk3Y+sIKqngF2en R/6qJ89eF7yiWsMlBkusyPiWx9RUlrf4kbh96Q== X-Received: by 2002:a0c:baa1:: with SMTP id x33mr32576504qvf.200.1562160166281; Wed, 03 Jul 2019 06:22:46 -0700 (PDT) MIME-Version: 1.0 References: <20190630210019.26914-1-digetx@gmail.com> <20190630210019.26914-8-digetx@gmail.com> In-Reply-To: From: Rob Herring Date: Wed, 3 Jul 2019 07:22:34 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 07/15] dt-bindings: memory: tegra30: Convert to Tegra124 YAML To: Dmitry Osipenko Cc: Michael Turquette , Joseph Lo , Thierry Reding , Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , Stephen Boyd , devicetree@vger.kernel.org, linux-clk , linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 2, 2019 at 6:48 PM Dmitry Osipenko wrote: > > 01.07.2019 22:30, Dmitry Osipenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > 01.07.2019 22:11, Rob Herring =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> On Sun, Jun 30, 2019 at 3:04 PM Dmitry Osipenko wro= te: > >>> > >> > >> "Convert" implies you delete the old binding doc. > > > > Yes, unfortunately the deletion got lost by accident after rebase and i= t was already > > too late when I noticed that. Will be fixed in the next revision. > > > >>> The Tegra30 binding will actually differ from the Tegra124 a tad, in > >>> particular the EMEM configuration description. Hence rename the bindi= ng > >>> to Tegra124 during of the conversion to YAML. > >>> > >>> Signed-off-by: Dmitry Osipenko > >>> --- > >>> .../nvidia,tegra124-mc.yaml | 149 ++++++++++++++++= ++ > >>> 1 file changed, 149 insertions(+) > >>> create mode 100644 Documentation/devicetree/bindings/memory-controll= ers/nvidia,tegra124-mc.yaml > >>> > >>> diff --git a/Documentation/devicetree/bindings/memory-controllers/nvi= dia,tegra124-mc.yaml b/Documentation/devicetree/bindings/memory-controllers= /nvidia,tegra124-mc.yaml > >>> new file mode 100644 > >>> index 000000000000..d18242510295 > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/memory-controllers/nvidia,teg= ra124-mc.yaml > >>> @@ -0,0 +1,149 @@ > >>> +# SPDX-License-Identifier: (GPL-2.0) > >>> +%YAML 1.2 > >>> +--- > >>> +$id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra12= 4-mc.yaml# > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>> + > >>> +title: > >>> + NVIDIA Tegra124 SoC Memory Controller > >>> + > >>> +maintainers: > >>> + - Jon Hunter > >>> + - Thierry Reding > >>> + > >>> +description: | > >>> + Tegra124 SoC features a hybrid 2x32-bit / 1x64-bit memory controll= er. > >>> + These are interleaved to provide high performance with the load sh= ared across > >>> + two memory channels. The Tegra124 Memory Controller handles memory= requests > >>> + from internal clients and arbitrates among them to allocate memory= bandwidth > >>> + for DDR3L and LPDDR3 SDRAMs. > >>> + > >>> +properties: > >>> + compatible: > >>> + const: nvidia,tegra124-mc > >>> + > >>> + reg: > >>> + maxItems: 1 > >>> + description: > >>> + Physical base address. > >>> + > >>> + clocks: > >>> + maxItems: 1 > >>> + description: > >>> + Memory Controller clock. > >>> + > >>> + clock-names: > >>> + items: > >>> + - const: mc > >>> + > >>> + interrupts: > >>> + maxItems: 1 > >>> + description: > >>> + Memory Controller interrupt. > >>> + > >>> + "#reset-cells": > >>> + const: 1 > >>> + > >>> + "#iommu-cells": > >>> + const: 1 > >>> + > >>> +patternProperties: > >>> + ".*": > >> > >> Please define a node name or pattern for node names. > > > > There was no pattern specified in the original binding. But I guess the= existing > > upstream device-trees could be used as the source for the pattern. > > Actually it looks like the use of explicit pattern is not really a good i= dea because > device-tree could have node named in a way that it doesn't match the patt= ern and hence > dtbs_check silently skips the non-matching nodes. Is there any way to exp= ress that > non-matching nodes shall be rejected? additionalProperties: false It's not ideal because you have to list all properties and can't combine multiple schema, but that's getting addressed in json-schema draft8. That shouldn't matter for you in this case though. Rob