Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2171821ybt; Mon, 15 Jun 2020 21:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQoqV8PGZao4tVYBbyRMmqACNxKbIDqfdk91fLUwrBhLRMRgFdpYBLcy3f2bHBRBObl0SR X-Received: by 2002:aa7:cd16:: with SMTP id b22mr918906edw.308.1592282375036; Mon, 15 Jun 2020 21:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592282375; cv=none; d=google.com; s=arc-20160816; b=tkP8OJI6xILyLHtwd9AD5zFPST+QxsjsEGX2ToakzB00UoTrP6zA2wscVp9pBURHLS XwmDwW9i+3zJtmGeiaVS8w6fOsguXfVnWTJxeQqaQ1z/LExaQUnluZiT65GFM4VGWV0T dLPQSXHh71d0Kmwo4yLri8IUZQtQX5iGQwhh3mnId9Ik/oL8kTmkh8hhlMhlwCIsAwYC AeFv5pFr4/pEgisIZrpThnrq9MUfOxQXzSmlSlaE+yH5iNI7DGKscU+Crj0Gaaj30xfc +1wvHjNSvbzlJabJ32cDpNU0Awh3OIqOxJLDIM09W3goz9aKdcTgt8F44VKS4fK2repi zsBg== 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=OFIonqnOfrs5akczBDoeNqztPLWY707NQ73s3ekFwQc=; b=0znqxABEw9algHk2LliGqOeLsLuMnePpdT6pY//NNd/ZoLCItAFEw21S9YqyUdkKC/ OhaSxpGl6EkK/7yBdXexjrTQBxKVSmCi0M+H/aUP5E2KsbqTWyZM84ihQypWpKdeSbY6 RCDjS8j7tyQm8kM1BnjaP1E01IguaNiB2AZO1Ghg2EJwMAMR+ktYoCGk9143Cp8tb5Ln 1BectfUjMjXSJZkXdDUSEg1sBF3np9e/0ooqzpJu6O7s7Y7d7aBxtMFcXFgAlkqmcKsb qtsWonUkehPCdJicmy7A7z7I5ViGjAISETbtzw1TDPFRKfBNRBhLK2gV51/ch28jQz0i AHLw== 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 v21si9887432edy.131.2020.06.15.21.39.12; Mon, 15 Jun 2020 21:39:35 -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 S1726838AbgFPEh0 (ORCPT + 99 others); Tue, 16 Jun 2020 00:37:26 -0400 Received: from inva020.nxp.com ([92.121.34.13]:53560 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbgFPEhY (ORCPT ); Tue, 16 Jun 2020 00:37:24 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5E5D41A059F; Tue, 16 Jun 2020 06:37:22 +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 746EE1A0574; Tue, 16 Jun 2020 06:37:17 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2AE54402D0; Tue, 16 Jun 2020 12:37:11 +0800 (SGT) From: Anson Huang To: broonie@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, marex@denx.de, linux-spi@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 V3 1/3] dt-bindings: spi: Convert mxs spi to json-schema Date: Tue, 16 Jun 2020 12:26:13 +0800 Message-Id: <1592281575-32708-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592281575-32708-1-git-send-email-Anson.Huang@nxp.com> References: <1592281575-32708-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 SPI binding to DT schema format using json-schema Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V2: - drop "clock-frequency" property's type. --- Documentation/devicetree/bindings/spi/mxs-spi.txt | 26 ---------- Documentation/devicetree/bindings/spi/mxs-spi.yaml | 56 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/spi/mxs-spi.txt create mode 100644 Documentation/devicetree/bindings/spi/mxs-spi.yaml diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.txt b/Documentation/devicetree/bindings/spi/mxs-spi.txt deleted file mode 100644 index 3499b73..0000000 --- a/Documentation/devicetree/bindings/spi/mxs-spi.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Freescale MX233/MX28 SSP/SPI - -Required properties: -- compatible: Should be "fsl,-spi", where soc is "imx23" or "imx28" -- reg: Offset and length of the register set for the device -- interrupts: Should contain SSP ERROR interrupt -- 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". - -Optional properties: -- clock-frequency : Input clock frequency to the SPI block in Hz. - Default is 160000000 Hz. - -Example: - -ssp0: ssp@80010000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "fsl,imx28-spi"; - reg = <0x80010000 0x2000>; - interrupts = <96>; - dmas = <&dma_apbh 0>; - dma-names = "rx-tx"; -}; diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.yaml b/Documentation/devicetree/bindings/spi/mxs-spi.yaml new file mode 100644 index 0000000..51f8c66 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/mxs-spi.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/mxs-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MX233/MX28 SSP/SPI + +maintainers: + - Marek Vasut + +allOf: + - $ref: "/schemas/spi/spi-controller.yaml#" + +properties: + compatible: + enum: + - fsl,imx23-spi + - fsl,imx28-spi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: rx-tx + + clock-frequency: + description: input clock frequency to the SPI block in Hz. + default: 160000000 + +required: + - compatible + - reg + - interrupts + - dmas + - dma-names + +unevaluatedProperties: false + +examples: + - | + spi@80010000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx28-spi"; + reg = <0x80010000 0x2000>; + interrupts = <96>; + dmas = <&dma_apbh 0>; + dma-names = "rx-tx"; + }; -- 2.7.4