Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1408647ybf; Thu, 27 Feb 2020 10:23:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxf3iumhdBBZvPd0XsYX/ycrD2paB/sBa2WOspDL9jGZto9016cnuIoju1cVxAMTP6XZWIq X-Received: by 2002:aca:1c0d:: with SMTP id c13mr284152oic.44.1582827795296; Thu, 27 Feb 2020 10:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582827795; cv=none; d=google.com; s=arc-20160816; b=ixTGhGH3OPYCgWF1ptG/faKqGZPc6pWRSEION+5wlvhnmFivf4rczKRMnGhw0jHQL1 hU6IW9hB0j+tnbTW+IKdVimMRwiV+EckRF53oiJcnwrE6PGFlU7YTPRYfr0EQrUC1kDy 749LvZFRgOr8MQdxZdU02Kz9uzQHDzFQzZngoNQfU5qym4WNodRJw9hRvk8e5sj8UXAF cXBC9ycDvtN1Bkituddh0/xBUKS3yu1TXhXl+/5yahuBMFmM5Cwnpf4C9C2HgfbEPTis WQFLGafSTXXJys3fyFMoJ4OmKT4B0W9W/UpV3kh69vnmXgsPCeUSDpdYNYDKc67utxsS x2Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9Wst2/VPlCLQRLrs8VUG0SW+dX2IABenxtICV2dhPwo=; b=DTk83vICPS2X43JTY8xB4jxuWXUOrVw3JZc2RlP542EVpdSHlKMaqqMrakL8N3ZcSL slr+VCytqeWjyEF+WUT/y13rWpp2TECBkdd4chcdcIJ7aEvM+yv0tDtvV7wruW7rHlVO TD5AHzik80bXWm146eTuPtITj8aadcxz+Df/kHgQcK/9Zxsn0UEtFg6XecOIOxtX1Lwg Yu5LC6gNGPEvbQB9BVNA2i1OFN+Wt1U0/ifl7gbGjQ+aL9FdL+myG3Pl9Ld3w1B2cQBY 83UpInj0aprHJbX2vcWygFJmo13yhu9666wKY3d+TV87kgOfJ7Y+N7Wx8VbbVZo/jWSv iMZw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si289459oia.236.2020.02.27.10.23.03; Thu, 27 Feb 2020 10:23:15 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730867AbgB0SWl (ORCPT + 99 others); Thu, 27 Feb 2020 13:22:41 -0500 Received: from foss.arm.com ([217.140.110.172]:56720 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730842AbgB0SWj (ORCPT ); Thu, 27 Feb 2020 13:22:39 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 36C2730E; Thu, 27 Feb 2020 10:22:39 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.25]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C2B13F73B; Thu, 27 Feb 2020 10:22:37 -0800 (PST) From: Andre Przywara To: Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maxime Ripard , Robert Richter , soc@kernel.org, Jon Loeliger , Mark Langsdorf , Eric Auger , Will Deacon , Catalin Marinas Subject: [PATCH v2 10/13] dt-bindings: memory-controllers: Convert Calxeda DDR to json-schema Date: Thu, 27 Feb 2020 18:22:07 +0000 Message-Id: <20200227182210.89512-11-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200227182210.89512-1-andre.przywara@arm.com> References: <20200227182210.89512-1-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Calxeda DDR memory controller binding to DT schema format using json-schema. Although this technically covers the whole DRAM controller, the intention to use it only for error reporting and mapping fault addresses to DRAM chips. Signed-off-by: Andre Przywara --- .../memory-controllers/calxeda-ddr-ctrlr.txt | 16 ------- .../memory-controllers/calxeda-ddr-ctrlr.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt b/Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt deleted file mode 100644 index 049675944b78..000000000000 --- a/Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt +++ /dev/null @@ -1,16 +0,0 @@ -Calxeda DDR memory controller - -Properties: -- compatible : Should be: - - "calxeda,hb-ddr-ctrl" for ECX-1000 - - "calxeda,ecx-2000-ddr-ctrl" for ECX-2000 -- reg : Address and size for DDR controller registers. -- interrupts : Interrupt for DDR controller. - -Example: - - memory-controller@fff00000 { - compatible = "calxeda,hb-ddr-ctrl"; - reg = <0xfff00000 0x1000>; - interrupts = <0 91 4>; - }; diff --git a/Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml b/Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml new file mode 100644 index 000000000000..d9739501d61d --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/calxeda-ddr-ctrlr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Calxeda DDR memory controller binding + +description: | + The Calxeda DDR memory controller is initialised and programmed by the + firmware, but an OS might want to read its registers for error reporting + purposes and to learn about the DRAM topology. + +maintainers: + - Andre Przywara + +properties: + compatible: + enum: + - calxeda,hb-ddr-ctrl + - calxeda,ecx-2000-ddr-ctrl + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + memory-controller@fff00000 { + compatible = "calxeda,hb-ddr-ctrl"; + reg = <0xfff00000 0x1000>; + interrupts = <0 91 4>; + }; -- 2.17.1