Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp948782ybg; Wed, 3 Jun 2020 19:01:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG5lQFNcaD/B9gV/5NNwV9pSSr28O/8MvhCV+GMXH/QdbpRHOPwLAEXajc8EBDP6wtwZiB X-Received: by 2002:a50:ee01:: with SMTP id g1mr2172115eds.44.1591236101248; Wed, 03 Jun 2020 19:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591236101; cv=none; d=google.com; s=arc-20160816; b=D6gcRWsUIbb7MXL8qkknVJDy9qe4CbHKrO6Jq29+ZV+aNH2dYDwvUMZlV/OVLplwcc sbD7/VwJwGWQWDTucR3jRVP/pbHkmIJBeh8Y6DygMxbCvU85Wa1e8qWq/OaIU5w3wbvI jOz2ESqHcBOmrE/LZH0uZYt73OoKNH6ItpgBimx7fV9i7blYeytl/alpLr7BKOO4h1D5 VVae03JNpdzoS1DqFjMtz+70rAaE6zHjB/GNRiNFA4F8OiqUiwA5SVOGUeXX9zMGOJUr f+UKyPgsm1Oou+/zd9dd3b4LcUJgVxRhvTxkMGNVvW46yVgVzwS8Uhmp9y85QWKnY4WU h2pA== 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=x0UiPhH5V1Dk+Rryl+tdkNTYEFGLcm+t/RUxwMwkHhE=; b=oNWiBp90mvOwShq266l06ruNTfB6LRYZThGuzKjRatGL+RGteHm8Q9hmlZcGYCy/Ry Y6TTgkwlpFsLri/93KKSdivHGhs2U29SuUQF1KYBUO0xvJgFr1qWD7XuuABkBCoQfPnE CNy4rC8/VafcjappOZZRagrUiYtWbqzeCxySy54I9QQ06kjKpvCSzPAa4rdS6lmavEdS rhueGNU2zqmlc8Gl4i5iLjbf/by8IXF9F+6l6Q7Lqydx0O1F+QLYobqVEsvXCewSzvcI bfU/cazHWbH+qASMYxu5EcqASWlEZC1Tw75HztrhgQxaHYEWpUrrVNKbRc3GHZBnC1Oi d/oA== 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 z28si872088edi.287.2020.06.03.19.01.18; Wed, 03 Jun 2020 19:01:41 -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 S1727971AbgFDBwL (ORCPT + 99 others); Wed, 3 Jun 2020 21:52:11 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35608 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727113AbgFDBwC (ORCPT ); Wed, 3 Jun 2020 21:52:02 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3D64420012A; Thu, 4 Jun 2020 03:52:00 +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 58A9C200EDD; Thu, 4 Jun 2020 03:51:55 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0FCDD402B0; Thu, 4 Jun 2020 09:51:48 +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 3/3] dt-bindings: mmc: Convert mxs mmc to json-schema Date: Thu, 4 Jun 2020 09:41:26 +0800 Message-Id: <1591234886-15351-4-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 MXS MMC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - add "unevaluatedProperties: false". --- Documentation/devicetree/bindings/mmc/mxs-mmc.txt | 27 ---------- Documentation/devicetree/bindings/mmc/mxs-mmc.yaml | 58 ++++++++++++++++++++++ 2 files changed, 58 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/mxs-mmc.txt create mode 100644 Documentation/devicetree/bindings/mmc/mxs-mmc.yaml diff --git a/Documentation/devicetree/bindings/mmc/mxs-mmc.txt b/Documentation/devicetree/bindings/mmc/mxs-mmc.txt deleted file mode 100644 index 515addc..0000000 --- a/Documentation/devicetree/bindings/mmc/mxs-mmc.txt +++ /dev/null @@ -1,27 +0,0 @@ -* Freescale MXS MMC controller - -The Freescale MXS Synchronous Serial Ports (SSP) can act as a MMC controller -to support MMC, SD, and SDIO types of memory cards. - -This file documents differences between the core properties in mmc.txt -and the properties used by the mxsmmc driver. - -Required properties: -- compatible: Should be "fsl,-mmc". The supported chips include - imx23 and imx28. -- interrupts: Should contain ERROR interrupt number -- dmas: DMA specifier, consisting of a phandle to DMA controller node - and SSP DMA channel ID. - Refer to dma.txt and fsl-mxs-dma.txt for details. -- dma-names: Must be "rx-tx". - -Examples: - -ssp0: ssp@80010000 { - compatible = "fsl,imx28-mmc"; - reg = <0x80010000 2000>; - interrupts = <96>; - dmas = <&dma_apbh 0>; - dma-names = "rx-tx"; - bus-width = <8>; -}; diff --git a/Documentation/devicetree/bindings/mmc/mxs-mmc.yaml b/Documentation/devicetree/bindings/mmc/mxs-mmc.yaml new file mode 100644 index 0000000..1cccc04 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/mxs-mmc.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/mxs-mmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MXS MMC controller + +maintainers: + - Shawn Guo + +description: | + The Freescale MXS Synchronous Serial Ports (SSP) can act as a MMC controller + to support MMC, SD, and SDIO types of memory cards. + + This file documents differences between the core properties in mmc.txt + and the properties used by the mxsmmc driver. + +allOf: + - $ref: "mmc-controller.yaml" + +properties: + compatible: + enum: + - fsl,imx23-mmc + - fsl,imx28-mmc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: rx-tx + +required: + - compatible + - reg + - interrupts + - dmas + - dma-names + +unevaluatedProperties: false + +examples: + - | + mmc@80010000 { + compatible = "fsl,imx28-mmc"; + reg = <0x80010000 2000>; + interrupts = <96>; + dmas = <&dma_apbh 0>; + dma-names = "rx-tx"; + bus-width = <8>; + }; -- 2.7.4