Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2462203ybi; Mon, 1 Jul 2019 12:30:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXfqSjNhz1XNQIEdXIma/mA634CYrMPNrlU+zpt+UAYhAIkSDVPJgD59kOntGL4EbFx25C X-Received: by 2002:a63:2606:: with SMTP id m6mr14339891pgm.436.1562009455506; Mon, 01 Jul 2019 12:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562009455; cv=none; d=google.com; s=arc-20160816; b=uqDDfgVx58mqYtMM/cqQdSGjYJPo/rY2JhpgsTv/mQQ+0lQVZoY5K9wfQY/qhKYvwR Aj8OxOaLjzsrU/jVNkxJG5wsQV/jUc67iW8rn31Iu8M97W4YaThZ4+mPYc5UF2Oj4dGD /VxaA4TiPUthIB+CcKYQsYlGiFlt9NCe662CCQS0+ABIoihUVW7VZweAK89oMqgqx5gk exe2A2GFCq67sK2EdRejmCM6QxchE8/OR735LPn7ENFoRXksnTIb1Ci63UvtO60DKqx5 d4mnK1oEWoToS5Cxp6g4N5nOztV4zCNVEUJjxmfweHmYR1zTiesg+OwD3lC4xQbvVFR8 G0Qw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=c2eFfHmfd9U9AMnKFnD7g9eg9q57yzBinw/q4+GoLBk=; b=x5R1z/aIqGp81Cm+l5xypHsSXQ6SMaxId8L7mI+jBeS02F6d1fzQNxN5O9qNeVIaRp EKjRvixgAooLDbotm1q9WEkwRzCOzE5tWTNn/0/SZvxdv0xggxGJU0kVokmROLvjP0RH OrVxoiwBeJ1+afBt+TssQ3QguEhi9MajMCNEmiXEUXGsiXWKhk/FtH4qhmUdRoUENibS PK+k6FNO8qhL3QN+MDxYxuLr9xGdp0ENp0+rIA6dSit8fpHEU3SnyMdXbnhkY3AZpbDB zVc6lAic+mXEcx0kturFOXTFXd2syjOSHkFDVE9DJmfXOct36fYm0/eQLmpJiIx3ztul e/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=prz9JSr0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o23si12411345pfp.131.2019.07.01.12.30.40; Mon, 01 Jul 2019 12:30:55 -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=@gmail.com header.s=20161025 header.b=prz9JSr0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbfGATaV (ORCPT + 99 others); Mon, 1 Jul 2019 15:30:21 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39762 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfGATaV (ORCPT ); Mon, 1 Jul 2019 15:30:21 -0400 Received: by mail-lj1-f193.google.com with SMTP id v18so14400790ljh.6; Mon, 01 Jul 2019 12:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c2eFfHmfd9U9AMnKFnD7g9eg9q57yzBinw/q4+GoLBk=; b=prz9JSr0Ix/WEdo4cL4SdYm7c5EuCT+Kyz0mYTOybz6lg9vOtPNg0KBN36C+D7A+95 pVxPfXyCS9zSpZ6W40JayIh0zBBAU4KZ5/P2M71D96mxyMyVnooItQXuadtMCJKUNf6q 9xVN9KI872oKfQyBGV2HpNrjMVnPCzfWNcixCp5s/42qk/AHIkBGxq77H8nBlpCeTcU6 kqeSOAjzzN9PSAddCq9fFyrLSNYhzFB+gUQT4aZqbln4aS2zOQ0EZNjcDuFlf5nOK1Sc tA1fzcbbC12A3APOFXZDkPZR/V3023ZoVSgKHtlMaYNsc1Ye/qh+LCgtFS/cTdXnZVx2 S6Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c2eFfHmfd9U9AMnKFnD7g9eg9q57yzBinw/q4+GoLBk=; b=HuZo0TIQc74oEbt3gVbMDmXYNV/j2knojVVhqEVt3Ezg8xcU+tRHf+0LTQ1qLLTos1 HW0W/rrntYXgFPocTl2G91/rtKjUhvZ+/3FyFjJ3OdnBDEz9p7XgLomAfUsH4ivTcGQq oM+20H4MTeiHjirIgnjzJKQYwuCWkqtJmO8VCBDtKIWIAbZHbkDPhajdbh/9ORxK/dI7 Qm/Xqv2Rwe5pWYohbcIwOAdNN9cg+YCajl2BjKEQdstG89SmV8x29XhmTZKzH/TxHUwv hgwx6KjJVQtfpF5fl5dhU4h4fIl1tAMVw1Z1eegofACny0gmGIgEzdnnqPTKsHIiymOt DsGw== X-Gm-Message-State: APjAAAWh3dFBhF6qcjFQWsjpXmcN+hchnN8qMwTLl5z1e51OkFg5XPt9 kVbvDYjWcrPVX/U+Urd0Z8Ql13mP X-Received: by 2002:a2e:96d5:: with SMTP id d21mr3513670ljj.170.1562009418517; Mon, 01 Jul 2019 12:30:18 -0700 (PDT) Received: from [192.168.2.145] (ppp79-139-233-208.pppoe.spdop.ru. [79.139.233.208]) by smtp.googlemail.com with ESMTPSA id u18sm2582661lfe.65.2019.07.01.12.30.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2019 12:30:17 -0700 (PDT) Subject: Re: [PATCH v6 07/15] dt-bindings: memory: tegra30: Convert to Tegra124 YAML To: Rob Herring 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" References: <20190630210019.26914-1-digetx@gmail.com> <20190630210019.26914-8-digetx@gmail.com> From: Dmitry Osipenko Message-ID: Date: Mon, 1 Jul 2019 22:30:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 01.07.2019 22:11, Rob Herring пишет: > On Sun, Jun 30, 2019 at 3:04 PM Dmitry Osipenko wrote: >> > > "Convert" implies you delete the old binding doc. Yes, unfortunately the deletion got lost by accident after rebase and it 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 binding >> 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-controllers/nvidia,tegra124-mc.yaml >> >> diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,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,tegra124-mc.yaml >> @@ -0,0 +1,149 @@ >> +# SPDX-License-Identifier: (GPL-2.0) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra124-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 controller. >> + These are interleaved to provide high performance with the load shared 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. >> + properties: >> + nvidia,ram-code: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + Value of RAM_CODE this timing set is used for. >> + >> + patternProperties: >> + ".*": > > Same here. > >> + properties: >> + clock-frequency: >> + description: >> + Memory clock rate in Hz. > > No constraints? Anything from 0 to 4GHz works? Okay, will add the min/max. I'm not sure what is the exact upper freq limit, probably ~1GHz.