From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B1F2C2BA19 for ; Thu, 9 Apr 2020 17:54:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC2DC206E9 for ; Thu, 9 Apr 2020 17:54:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="s+VDgViZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RIOFFPFw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC2DC206E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Z9x7znryt1glCtnFXwvdlmdCgza8R37EA8xB3hVZQVo=; b=s+VDgViZfxKlGX R/SqI/cTYCu/9Us1J4L6RQy5LO68Zg8Y5ozuNFnnB91BF1/8BuXzWq47MXmxZHS5ctQJX+2t/bi4y qrhumzj0MPQCdCSXGcy8NdwjHeU8c2Cy0po9Ioip9dAXLdtH0bWHGNEUWf+it+nVFEdwsRn/+HhFR 84NWu3g9ClPgxCOsXl7y9TnRTyN5ZPYojjgRNtbThNKmCElunA8Ap/1pYL/oJi7SrdNU/oAKVMMHM mnADpReRlYeTciwyaxHL9FyX4UE1vACagKXYA81uLfELZgnhTLCSQM6C5OhlixkEzWVySSx47i4AA GzQC1HjhvS1I7NQLzQ6g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMbO5-0007ko-N4; Thu, 09 Apr 2020 17:54:49 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMbMN-00061C-0U for linux-arm-kernel@lists.infradead.org; Thu, 09 Apr 2020 17:53:04 +0000 Received: by mail-wm1-x344.google.com with SMTP id x25so672739wmc.0 for ; Thu, 09 Apr 2020 10:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NN2DE1IQqithFVfAuIcLmUoSi2j0XpDIzngv49/FOaM=; b=RIOFFPFwI9Ot8tRhufRlRXzgP7+UloJtReRxwPCrcE2SfVdnVm/0kXNtn6tQMOycPp qP+1or+oa72fBM2HoJ8HLmAH8327CO/4DKLY1bzIdUVqVA8/tJJw+pfbbYeM6r2MkDGz Ba5NIWJQCXWnBA8lhHy2WYPD1uflo5B7j3ERWFlGRqlAIfqOJg/VFCAzfUGs4IUgRqKK gHEey4WziBU+Q8x1NMetw5ahaUE6EblVPB7/0Zuy99TAEOlWSf/LgX4UJWwowil5UOFn GqLMrxspYi5EdEDG61bgKY27ErR6UJBfPWKalTTDPKce0Kdol40VmsQ7bqjTMAN89z+w U02g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NN2DE1IQqithFVfAuIcLmUoSi2j0XpDIzngv49/FOaM=; b=cT+kd84lnZqG0jVJrM94dU2jJKUTGcELBVt+vjIXLxOlBObtYm/n+8vu8lYUOZD87f ypWUXja3PxdComLuwqAFmXwSEf50x4WPbdHFa4pL4J8KgjeWu1gcHTEtsJ1/tXvYR/jL VZNgYMOr8raq2BVYRv1U5r3mT1Zrb5uO5y7e0BSvHVw1SG34xELjFpkfnfcTphP/hlxT 0gMbAOP9rVt6mXEAcMk8YOxLjMCTRNv7Hac+9+cH16jLR/HvaixofSo1vQ17T5ViZDb7 DfXN4Kg3PRdN8X4t2hCZWy19ecK/hDGCneYQgX/iYwq9yxRbmnombiD78UDxmNKg/ALZ D5XA== X-Gm-Message-State: AGi0PuYaeUtR7O+zgLpEGNuvtQYlVY2PI234P13Bk+X/q7HkzuKdk8cA 90uPt5ZRQswqm5+bNU/Pnks= X-Google-Smtp-Source: APiQypJ/n7KDGZlCPrmJHOYzihbyHvhBwf46IleE36Su/NLOvqUYObCFgmqSmbRl6N+bZHLPxzCMEA== X-Received: by 2002:a1c:e203:: with SMTP id z3mr1042725wmg.71.1586454780040; Thu, 09 Apr 2020 10:53:00 -0700 (PDT) Received: from localhost (pD9E51D62.dip0.t-ipconnect.de. [217.229.29.98]) by smtp.gmail.com with ESMTPSA id h6sm4753508wmf.31.2020.04.09.10.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 10:52:59 -0700 (PDT) From: Thierry Reding To: Thierry Reding , Rob Herring Subject: [PATCH v6 08/14] dt-bindings: memory: tegra: Add external memory controller binding for Tegra210 Date: Thu, 9 Apr 2020 19:52:32 +0200 Message-Id: <20200409175238.3586487-9-thierry.reding@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200409175238.3586487-1-thierry.reding@gmail.com> References: <20200409175238.3586487-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200409_105303_209927_1E3A9006 X-CRM114-Status: GOOD ( 13.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Stephen Boyd , Michael Turquette , Jon Hunter , Joseph Lo , linux-tegra@vger.kernel.org, Dmitry Osipenko , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Joseph Lo Add the binding document for the external memory controller (EMC) which communicates with external LPDDR4 devices. It includes the bindings of the EMC node and a sub-node of EMC table which under the reserved memory node. The EMC table contains the data of the rates that EMC supported. Signed-off-by: Joseph Lo Signed-off-by: Thierry Reding --- Changes in v6: - fix example by changing #address-cells and #size-cells - remove status property from example Changes in v5: - convert to dt-schema .../nvidia,tegra210-emc.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/nvidia,tegra210-emc.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra210-emc.yaml b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra210-emc.yaml new file mode 100644 index 000000000000..49ab09252e52 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra210-emc.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra210-emc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra210 SoC External Memory Controller + +maintainers: + - Thierry Reding + - Jon Hunter + +description: | + The EMC interfaces with the off-chip SDRAM to service the request stream + sent from the memory controller. + +properties: + compatible: + const: nvidia,tegra210-emc + + reg: + maxItems: 3 + + clocks: + items: + - description: external memory clock + + clock-names: + items: + - const: emc + + interrupts: + items: + - description: EMC general interrupt + + memory-region: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to a reserved memory region describing the table of EMC + frequencies trained by the firmware + + nvidia,memory-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle of the memory controller node + +required: + - compatible + - reg + - clocks + - clock-names + - nvidia,memory-controller + +additionalProperties: false + +examples: + - | + #include + #include + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + emc_table: emc-table@83400000 { + compatible = "nvidia,tegra210-emc-table"; + reg = <0x83400000 0x10000>; + }; + }; + + external-memory-controller@7001b000 { + compatible = "nvidia,tegra210-emc"; + reg = <0x7001b000 0x1000>, + <0x7001e000 0x1000>, + <0x7001f000 0x1000>; + clocks = <&tegra_car TEGRA210_CLK_EMC>; + clock-names = "emc"; + interrupts = ; + memory-region = <&emc_table>; + nvidia,memory-controller = <&mc>; + }; -- 2.24.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel