From patchwork Tue Aug 17 09:38:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 498223 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 0A11CC4320A for ; Tue, 17 Aug 2021 09:40:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF24A60F35 for ; Tue, 17 Aug 2021 09:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236006AbhHQJkk (ORCPT ); Tue, 17 Aug 2021 05:40:40 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:36712 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235846AbhHQJkj (ORCPT ); Tue, 17 Aug 2021 05:40:39 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPS id C6DA040CAC for ; Tue, 17 Aug 2021 09:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629193200; bh=YL4I+/3FxyPUFZSenvPrl5nRwbLh6LxmLfvqc1D9xQI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=mUiosdQ3r+s/n130qzoeZeyILiQ7OC229Vx3T9XT9+wR3Yxk5QhH+Iq9AFY5LdhKN II9tPh4/dZi8LuGkvxkE4OibRTw4JbkCIumI0gf2uPPVdlVhyP6k17yCRV/F0UMrUD jxrQudHMR+JCOpXIRLBjEebUjDoJlabIGn+9+X8dRvKgqGuzpc4sdjxNDnaOm7qQ6U UegvY9BDj9lHw/n2Sft1fx8YRlp3s437kLbLEOIoqCt2z07ARrp1DXAf8jL6x5J2+w IgrV10+Y/t2VCjEubuX97FUb7WlqG6qMCw3rBfyS7znnqIznlDDZx48TkyduF/FAVa 26BkauuNCnoxg== Received: by mail-ej1-f72.google.com with SMTP id j10-20020a17090686cab02905b86933b59dso5299980ejy.18 for ; Tue, 17 Aug 2021 02:40:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=YL4I+/3FxyPUFZSenvPrl5nRwbLh6LxmLfvqc1D9xQI=; b=XDBz93Yy4otyB2F2+HwUWjbZiYaVmu5AAuIJysUrQDKLOZYrvzFeWCsBRzNDWIFk7r Ww5rQ+gGE7dUJi+tZRuW4dEBvnuS8T3AGEkZoPGTVfnnew8OKF6EJL+Cb2pejR6h4Jt5 V+13EfwFPVgj7bMeCCV+50gBQwgjKca80X5ppz+J76AmtE2hnd2q/grDoh/rpD77rBGE k2bcq3FzTbxo9MnsQmlkktDJnXL9GCyOJakW9fCvpb+REO+tJyArNJ5ubpAJ7VdDD8Yk 7LcA5AkpBslu6JM/Tatp+g1fPp+ujvNvhFmAISdfEY5iweySuK1/Q3knFypP8G2nTXMZ lFzw== X-Gm-Message-State: AOAM531xrqZ0MxB3+t2yFEZy2fGQq7Eav3V+E91kajlFfQRBCX7io8s1 kbzaki8XoZhMypazSl1IGCED+VSqpat+MDE3liEg2Hq8HAMxDT2BtxhOLc3zVyI8nVtTJNvNLdq rD/pNmKO0T1qvvS4vZLHqxF3a8mmzmJB/Bx3Uc4A= X-Received: by 2002:aa7:c40a:: with SMTP id j10mr3080334edq.133.1629193200556; Tue, 17 Aug 2021 02:40:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP7UchvSb44LTQyUkMc1SNkzvXT8lu+tCownUHhUdvG0CPxNUo8oW+qdDebxZemYIHtntXnA== X-Received: by 2002:aa7:c40a:: with SMTP id j10mr3080326edq.133.1629193200439; Tue, 17 Aug 2021 02:40:00 -0700 (PDT) Received: from localhost.localdomain ([86.32.42.198]) by smtp.gmail.com with ESMTPSA id sa21sm515667ejb.108.2021.08.17.02.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 02:39:59 -0700 (PDT) From: Krzysztof Kozlowski To: Jan Luebbe , Borislav Petkov , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: memory: convert Marvell MVEBU SDRAM controller to dtschema Date: Tue, 17 Aug 2021 11:38:06 +0200 Message-Id: <20210817093807.59531-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski --- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt diff --git a/Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml b/Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file mode 100644 index 000000000000..14a6bc8f421f --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe + - Krzysztof Kozlowski + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + }; diff --git a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt b/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted file mode 100644 index 89657d1d4cd4..000000000000 --- a/Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt +++ /dev/null @@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a number -of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller. - -Required properties: - - - compatible: for Armada XP, "marvell,armada-xp-sdram-controller" - - reg: a resource specifier for the register space, which should - include all SDRAM controller registers as per the datasheet. - -Example: - -sdramc@1400 { - compatible = "marvell,armada-xp-sdram-controller"; - reg = <0x1400 0x500>; -};