Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp977489ybg; Mon, 1 Jun 2020 20:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhWBaIVCuBPsJZRD0qmGLdKb+RCBHiH1yWNoM43l2wl33KG+B303m2+1hcPE4MvNEjK/JR X-Received: by 2002:a17:906:f1ca:: with SMTP id gx10mr4381754ejb.542.1591069855540; Mon, 01 Jun 2020 20:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591069855; cv=none; d=google.com; s=arc-20160816; b=OxPCgGl3e+uAZu8vTZrjX19POOVmuIHidkOMK/XJg+Bs68WquRRXNZoppO9JQB5tfr RO1C5mPxPF2fUE3lQ6v2ty7ZRaR1HG1+YBxzEXuwmm5eG0aRlnU4ZqrLp313KQQlM8Q1 1oT4mNlC+nI7l5ePimg+7ajPh3xGa+xMy6nIWmskA+WKmseVaSwEWQJz7nZS4Q77Y2M6 oXYD2stCuXUj5zlHBWXk/3UYfKxNi8fP00XvErMCo3Qi+6bFTntELUch6pKJuXP4l/+p 0G8Nc7jd+wiyOuqRPtaFjPOoZ46t4rQVIpl8TmkkiWOaFqQ7yWycH5JyfWPvV3G8nBNk jQUg== 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=fLr+XM/W5ljm751dCQFQQMeSAMIzLKshGCeVqqNXpqk=; b=bhnkEPVjsVsvr4IRiONMEFXansKWQo0HN870jU94r9eloFagFKsS5+NYkT4FydbWhY mP+HaT+cruW50HACytNUhHr5NFWMD0tW4CaB0vTEPYU+15Od+ffJaAVlgUD++CjHJa8L xUDsWoelgH0vzXh22zGVqYx8iRJvVm7bF+OV+KCaKilyAWXTPCdM5F/p8lxyLnOME97o Dc5zpPf5tK0+CjmXgB1hSuUn7np5Njx5mtzHeuHwJOl4GrdudJ7bbNIZhd7cJ9iohgZc DjqohxBqhLmwLSpLKxYvxFB3gNB0htmNBtivBUeQIzCZjx2L8KHrvCIxc1OaYsqhLJFC PR2w== 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 b17si806391edt.100.2020.06.01.20.50.33; Mon, 01 Jun 2020 20:50:55 -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 S1726842AbgFBDsY (ORCPT + 99 others); Mon, 1 Jun 2020 23:48:24 -0400 Received: from inva021.nxp.com ([92.121.34.21]:40108 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726110AbgFBDsR (ORCPT ); Mon, 1 Jun 2020 23:48:17 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BB4EA2005FE; Tue, 2 Jun 2020 05:48:15 +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 CD1EC200601; Tue, 2 Jun 2020 05:48:10 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4EDE8402DF; Tue, 2 Jun 2020 11:48:04 +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 3/3] dt-bindings: mmc: Convert mxs mmc to json-schema Date: Tue, 2 Jun 2020 11:37:46 +0800 Message-Id: <1591069066-12727-4-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 MXS MMC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/mmc/mxs-mmc.txt | 27 ----------- Documentation/devicetree/bindings/mmc/mxs-mmc.yaml | 56 ++++++++++++++++++++++ 2 files changed, 56 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..8fb9e59 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/mxs-mmc.yaml @@ -0,0 +1,56 @@ +# 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 + +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