Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp946312ybg; Wed, 3 Jun 2020 18:56:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhC6C7uBQLzM4G1MmLEUHuw6Bi1258bo8nXdEK57k67iuT+sFrTtUIMlel3gT6V0CE2ZkS X-Received: by 2002:a17:906:3951:: with SMTP id g17mr1975425eje.414.1591235776908; Wed, 03 Jun 2020 18:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591235776; cv=none; d=google.com; s=arc-20160816; b=TURiboA+oIpgfLxQThF7oGxtMlSOo6GvMzN6W1HFLS/bqXlSaq+EjKf76xERGnsMy3 0RmAzR/001PzE3IX0yt0L84fmb5NApPWHsMKALDkmeWdJ6QFkzjqZPxJxqjXTrVD7wH1 182YAAB/PgXtIR4wl9RTyJJplmO8izGLyfeQ4VyX3yx+sb82qsp225hVh+DCBYO1LGek //eycyDvJD4QLrO5CXfQZEvvMZUAw+kisBddvv4eEFLln67UzU9ZDwTAHOWoWqbCf2K5 s7Hlw630JZJARJ1v6fOOiSaWyEbRh8WUZbe0/SFgTqVSMtmngQXqmvmJgtLzNISsaiL+ jwMA== 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=IA70cW6LdTQ6CWcqWMcd1STQH51MddyxQcMk5Upqu9Y=; b=smtqFn9s7TaHZBia5Oa6KBou/i61QFZjY/qMZQHgcVXybHL6iU5XpNnZhawzhSEO3p qduvNWEDSa0VnOxvfECrjLweleTklz3aocBcrHJe5ePVvkx9Ffc4zmxKZm7z3hLRwZyG N93lFgepiRomNA923/KQKEn9MOlSu/NKzA7zqR3M5n6+cn4hcoFA93KfLzT750hQwB4L MurHpmbezxG9V5heCPQXEoF+eyVGXUGRQlzOMaZeqPjGn725zgCXMtn3JulpkvICRFYh /dYBjv/1TbmfA4YayAuUE8mAiL3SxwhO9TTu+/SOhcCOxAuvyuJBohm7hJyfuvjpULxq ySOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si798475edu.222.2020.06.03.18.55.54; Wed, 03 Jun 2020 18:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727948AbgFDBwG (ORCPT + 99 others); Wed, 3 Jun 2020 21:52:06 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35584 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbgFDBwB (ORCPT ); Wed, 3 Jun 2020 21:52:01 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1C100200F09; Thu, 4 Jun 2020 03:51:59 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 39045200130; Thu, 4 Jun 2020 03:51:54 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id DD49D402AD; Thu, 4 Jun 2020 09:51:47 +0800 (SGT) From: Anson Huang To: ulf.hansson@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, mpa@pengutronix.de, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 2/3] dt-bindings: mmc: Convert imx mmc to json-schema Date: Thu, 4 Jun 2020 09:41:25 +0800 Message-Id: <1591234886-15351-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591234886-15351-1-git-send-email-Anson.Huang@nxp.com> References: <1591234886-15351-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX MMC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "unevaluatedProperties: false". --- .../devicetree/bindings/mmc/fsl-imx-mmc.txt | 23 ---------- .../devicetree/bindings/mmc/fsl-imx-mmc.yaml | 53 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt create mode 100644 Documentation/devicetree/bindings/mmc/fsl-imx-mmc.yaml diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt deleted file mode 100644 index 184ccff..0000000 --- a/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt +++ /dev/null @@ -1,23 +0,0 @@ -* Freescale Secure Digital Host Controller for i.MX2/3 series - -This file documents differences to the properties defined in mmc.txt. - -Required properties: -- compatible : Should be "fsl,-mmc", chip can be imx21 or imx31 - -Optional properties: -- dmas: One DMA phandle with arguments as defined by the devicetree bindings - of the used DMA controller. -- dma-names: Has to be "rx-tx". - -Example: - -sdhci1: sdhci@10014000 { - compatible = "fsl,imx27-mmc", "fsl,imx21-mmc"; - reg = <0x10014000 0x1000>; - interrupts = <11>; - dmas = <&dma 7>; - dma-names = "rx-tx"; - bus-width = <4>; - cd-gpios = <&gpio3 29>; -}; diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.yaml new file mode 100644 index 0000000..ffa1627 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/fsl-imx-mmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Secure Digital Host Controller for i.MX2/3 series + +maintainers: + - Markus Pargmann + +allOf: + - $ref: "mmc-controller.yaml" + +properties: + compatible: + oneOf: + - const: fsl,imx21-mmc + - const: fsl,imx31-mmc + - items: + - const: fsl,imx27-mmc + - const: fsl,imx21-mmc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: rx-tx + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + mmc@10014000 { + compatible = "fsl,imx27-mmc", "fsl,imx21-mmc"; + reg = <0x10014000 0x1000>; + interrupts = <11>; + dmas = <&dma 7>; + dma-names = "rx-tx"; + bus-width = <4>; + cd-gpios = <&gpio3 29>; + }; -- 2.7.4