Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp977278ybg; Mon, 1 Jun 2020 20:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLcdZzpDrSJarXfubvFUBRznCVS9XAFYMqBInQMAE+lfZXqL42O1tNSkCC2+yXKYv1G8R2 X-Received: by 2002:aa7:d9d6:: with SMTP id v22mr5645453eds.66.1591069822402; Mon, 01 Jun 2020 20:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591069822; cv=none; d=google.com; s=arc-20160816; b=yBsfR1zFjXc1LH0z1+FgnXufDV5M+c6eyBx67tvHAjJJv+U0CH6D38RsFXPFL16cjF ldQSaNoUgUaddHom6n7UIZREL7QVqYKZUNBQoBP6fxWKYaOKZ6NoCicOr0uvEKZWZ6Oj IQ9U291ig38ftUOLquG7CJ7O1ETINXrma4cwVTu6GGEVeohbEhT8dQWbiGq/0cpohkNP wfyi+O9YwAQLEGS26APFN6lVAd6meWeMpkX7kg+R2C9U/OJdrx2sFtASp1Q4rZg5yhRV 3dxTSAgOU6YcN2/gVpdUWqlr0E5YlUo65QjHuGi4mMzz3+f2TNpsEef6bqqcGftcx6X2 Ksrg== 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=MoSDxlEPYvla0a89f8MoTZIaere3SbiqWPT7tM16y4s=; b=OGrAyE02kRsO1qfVGV/itZA7eYUaYShxnYSRwwWwrT0jsuLT+l1cXwQWwMzplXNDgD PIuJ9Jq0dnT679KtbJIveE/EFTUPZO673hsU6fUsvJWhA9hx9a0jLW7Yh1NinOyAUpsw tvUneZJMipGM8Zq+M1RDQ62sJUv3EtCApzP77P8WLeQLG0bW752rJkah8KDF2+7tNl9h bGJbBpX2MCygwB3pwF11Nb4fBxifFHI2vBomyL+XKXCtE7vxolsdWQEB+9EMSBpcXCH0 PupU9FpVzj4UDtHUy480EbqQpen4deUafVgd9JpGcg2KbBoll5QSblmrKtAkVuvpBor3 z0Mg== 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 a20si770106edr.516.2020.06.01.20.50.00; Mon, 01 Jun 2020 20:50:22 -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 S1726480AbgFBDsT (ORCPT + 99 others); Mon, 1 Jun 2020 23:48:19 -0400 Received: from inva020.nxp.com ([92.121.34.13]:36826 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbgFBDsR (ORCPT ); Mon, 1 Jun 2020 23:48:17 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 599DE1A0AA9; Tue, 2 Jun 2020 05:48:14 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 727471A0A48; Tue, 2 Jun 2020 05:48:09 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2AEB4402B1; Tue, 2 Jun 2020 11:48:03 +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 2/3] dt-bindings: mmc: Convert imx mmc to json-schema Date: Tue, 2 Jun 2020 11:37:45 +0800 Message-Id: <1591069066-12727-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591069066-12727-1-git-send-email-Anson.Huang@nxp.com> References: <1591069066-12727-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 --- .../devicetree/bindings/mmc/fsl-imx-mmc.txt | 23 ---------- .../devicetree/bindings/mmc/fsl-imx-mmc.yaml | 51 ++++++++++++++++++++++ 2 files changed, 51 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..777a732 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-mmc.yaml @@ -0,0 +1,51 @@ +# 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 + +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