Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2445403ybi; Mon, 1 Jul 2019 12:12:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqx6jXR6TrISYJw1kwWWQ5apdb7UT8NCADaJKnsRaycUcM1YWo7Ut5Pl2kvI1iAI7A6CXW X-Received: by 2002:a17:90a:8a8e:: with SMTP id x14mr878231pjn.103.1562008328947; Mon, 01 Jul 2019 12:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562008328; cv=none; d=google.com; s=arc-20160816; b=fVIQtiIOCubjScN9A7JqnOg4qA/Rp1MskbM3AaOupdEtUgOviMZ4z/I1yq+m7WWxH9 XhkIAurdLwH54aDaFfL08qvBwRRzmG9iZLHTvvn3gm5/WdzwUOK7zc5VulOCAG5hWvQP AosgYvxOH7O5lwXbWZh9WWl/mG3bZReX/lrGYWRSuUZaKqRzn1uN2Kpszss7aL3Ky50G SjyFcCKkdoVwKCCWLKgXRld6+8Auwhq1JTsetZvan1Yl7IcSXJR9Ggl/6z4P5PSRUyCs b1G5ymyk9W8qSnN+/aSfNSDrcjyconoAoxSgyXX3+OR10l/3JoMsTOSdwsJO83gNflBn Al+w== 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=JeIDIRMZE5jFVI2UB9oaq95OU0HPyOGcpaufeanRadQ=; b=I9WAhdzuCZSPSVLt2vsJDEDblDIrQjxKfrJElQbJ8XwyMwgoNBsQ52Qx9QhsfphTzq 3DZJAxYXYv9blz08VkOGeDKtk3cIJMJchL3bQZNUe3LfreeNhfRhuhbWuLZRO+pzLWgJ gNw0CHS1VSRuaEM/mt/70B+tt4Cg6GAUeZi39iTrIV5ezKJonxQAOKCga3lXziK5rR4b tYtm1koi1A+wrB83UuNCFvS0uuclApYTOBFfInHBjQvEtZcedWXxc74p8UrHJ+JZf1me yPCCxfwTWngJpZvoyuiJMzYi/OlfspSg1uEYLJb6UDVz3f1sWNmoOB/VWhFbFYp+hiJk ymTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fw2v6uir; 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 205si11054497pge.295.2019.07.01.12.11.53; Mon, 01 Jul 2019 12:12:08 -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=Fw2v6uir; 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 S1726803AbfGATL1 (ORCPT + 99 others); Mon, 1 Jul 2019 15:11:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:55554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbfGATL1 (ORCPT ); Mon, 1 Jul 2019 15:11:27 -0400 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 8D5E42183F; Mon, 1 Jul 2019 19:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562008286; bh=M69bW3LLjAy9GRa5kws2W/TLGTCeIxO8p9s0yzUQV6M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Fw2v6uirjEIwW3zfhLjQ35yRI+0y4ld/Oc50hhARgaTB5gb29LplirkzCi769nRHA 9uDmkotdqbeKCANPmgKOYLaBXbwZdwU85hD/EcrSEJIPrcd8/oqmQdOtDhWp0nmhnW DtD6ncuuRgjRRw34Jgw6RuE8tYHlWmxJlaXEOH5s= Received: by mail-qk1-f174.google.com with SMTP id r6so11975258qkc.0; Mon, 01 Jul 2019 12:11:26 -0700 (PDT) X-Gm-Message-State: APjAAAUwtQGjijJizjwtPRmBhAvRiNY1jvlFi7Vlj90Awf6CKR23wMnv SWmXfJP6gVbiFpCRHClvDAHqbeI34JBuFIOhkg== X-Received: by 2002:a37:6357:: with SMTP id x84mr21600084qkb.393.1562008285770; Mon, 01 Jul 2019 12:11:25 -0700 (PDT) MIME-Version: 1.0 References: <20190630210019.26914-1-digetx@gmail.com> <20190630210019.26914-8-digetx@gmail.com> In-Reply-To: <20190630210019.26914-8-digetx@gmail.com> From: Rob Herring Date: Mon, 1 Jul 2019 13:11:13 -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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 30, 2019 at 3:04 PM Dmitry Osipenko wrote: > "Convert" implies you delete the old binding doc. > 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. > + 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? > + > + nvidia,emem-configuration: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: | > + Values to be written to the EMEM register block. See section > + "15.6.1 MC Registers" in the TRM. > + items: > + - description: MC_EMEM_ARB_CFG > + - description: MC_EMEM_ARB_OUTSTANDING_REQ > + - description: MC_EMEM_ARB_TIMING_RCD > + - description: MC_EMEM_ARB_TIMING_RP > + - description: MC_EMEM_ARB_TIMING_RC > + - description: MC_EMEM_ARB_TIMING_RAS > + - description: MC_EMEM_ARB_TIMING_FAW > + - description: MC_EMEM_ARB_TIMING_RRD > + - description: MC_EMEM_ARB_TIMING_RAP2PRE > + - description: MC_EMEM_ARB_TIMING_WAP2PRE > + - description: MC_EMEM_ARB_TIMING_R2R > + - description: MC_EMEM_ARB_TIMING_W2W > + - description: MC_EMEM_ARB_TIMING_R2W > + - description: MC_EMEM_ARB_TIMING_W2R > + - description: MC_EMEM_ARB_DA_TURNS > + - description: MC_EMEM_ARB_DA_COVERS > + - description: MC_EMEM_ARB_MISC0 > + - description: MC_EMEM_ARB_MISC1 > + - description: MC_EMEM_ARB_RING1_THROTTLE > + > + required: > + - clock-frequency > + - nvidia,emem-configuration > + > + required: > + - nvidia,ram-code > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - "#reset-cells" > + - "#iommu-cells" > + > +examples: > + - | > + memory-controller@70019000 { > + compatible = "nvidia,tegra124-mc"; > + reg = <0x0 0x70019000 0x0 0x1000>; > + clocks = <&tegra_car 32>; > + clock-names = "mc"; > + > + interrupts = <0 77 4>; > + > + #iommu-cells = <1>; > + #reset-cells = <1>; > + > + emc-timings-3 { > + nvidia,ram-code = <3>; > + > + timing-12750000 { > + clock-frequency = <12750000>; > + > + nvidia,emem-configuration = < > + 0x40040001 /* MC_EMEM_ARB_CFG */ > + 0x8000000a /* MC_EMEM_ARB_OUTSTANDING_REQ */ > + 0x00000001 /* MC_EMEM_ARB_TIMING_RCD */ > + 0x00000001 /* MC_EMEM_ARB_TIMING_RP */ > + 0x00000002 /* MC_EMEM_ARB_TIMING_RC */ > + 0x00000000 /* MC_EMEM_ARB_TIMING_RAS */ > + 0x00000002 /* MC_EMEM_ARB_TIMING_FAW */ > + 0x00000001 /* MC_EMEM_ARB_TIMING_RRD */ > + 0x00000002 /* MC_EMEM_ARB_TIMING_RAP2PRE */ > + 0x00000008 /* MC_EMEM_ARB_TIMING_WAP2PRE */ > + 0x00000003 /* MC_EMEM_ARB_TIMING_R2R */ > + 0x00000002 /* MC_EMEM_ARB_TIMING_W2W */ > + 0x00000003 /* MC_EMEM_ARB_TIMING_R2W */ > + 0x00000006 /* MC_EMEM_ARB_TIMING_W2R */ > + 0x06030203 /* MC_EMEM_ARB_DA_TURNS */ > + 0x000a0402 /* MC_EMEM_ARB_DA_COVERS */ > + 0x77e30303 /* MC_EMEM_ARB_MISC0 */ > + 0x70000f03 /* MC_EMEM_ARB_MISC1 */ > + 0x001f0000 /* MC_EMEM_ARB_RING1_THROTTLE */ > + >; > + }; > + }; > + }; > -- > 2.22.0 >