Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1267511ybk; Thu, 14 May 2020 04:54:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxToo6+Vpjbm338V4zM/fO8BOcizm6CHOPHi3QHTj4yOzU+BB4ccwUGdNF8g1EH6MApGtx X-Received: by 2002:aa7:dd84:: with SMTP id g4mr3654819edv.273.1589457290727; Thu, 14 May 2020 04:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589457290; cv=none; d=google.com; s=arc-20160816; b=kGcJ9/I66YEcCfWh+YQdJsyyx850zkw1ETbiXrd0qTDX8HEx5oxfu1/SO9XLak5ApX 73XYE5UHurlR/g3yeBPxTVMBf3IRmlBEgm5otevGWhh2hWTDRP6yWSqaYaZM++pSy/+H q6vNXyYTHQB40zhXVPeMzTy/DgBHGzE5jGJDJzGEHAhlV++SbfeiK//pINnSS5FmeVeA khf1qQzvBfF8BzvNpFoJmw0xJQb11fnZcjXOolgq8kCYFabTgCiuO3GjW5nxN5FBAbW+ 6V3GrAvwk9H4y6TpaGXv7lS0nPlwDjhBsGGAN/49E6bJUXf+kbBlmxBjlU4msQ8rl+aL pn8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=jG0Zl/ltvgg5rE6mn8H7BbQRow8w+xhCDPiRPwVsX24=; b=DnuXE7cZydF/y+gSKkvpooZbWc98s21INosw+K6rjOpqb85EG+nAIQxdBwCsMcSAgh pl1ki2LUsQ95Np+yoDafzZg9L6Wfn30t/yVeZDKeTVnZmCBdKfO8Mu0EoImT+XWtyyRg B8XS5uApQwnNiAzHtAasGFcHNGycYsuZ8c1a3hIcf4MmcRSYBwLLK/zBxCCNMQmHIzq0 VfqSX+8QQKVoRfNlpMXq+zXbM5zTBDEZR0i4VbDbUdwTw/57u0h8sC0yKlIVN+dR3z9e Dt7h6Lw5LwWvIbP4LriMhlfvIzqfoYcEVyxgNVxqIp/IWHy31JqeVcWsxS50o+g6cHo6 rHPg== 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 i25si1659571ejc.125.2020.05.14.04.54.28; Thu, 14 May 2020 04:54:50 -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 S1726471AbgENLuq (ORCPT + 99 others); Thu, 14 May 2020 07:50:46 -0400 Received: from inva020.nxp.com ([92.121.34.13]:35176 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgENLup (ORCPT ); Thu, 14 May 2020 07:50:45 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7E9E91A0300; Thu, 14 May 2020 13:50:43 +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 8992A1A02D1; Thu, 14 May 2020 13:50:38 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 3CCD540245; Thu, 14 May 2020 19:50:32 +0800 (SGT) From: Anson Huang To: thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-pwm@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] dt-bindings: pwm: Convert mxs pwm to json-schema Date: Thu, 14 May 2020 19:41:10 +0800 Message-Id: <1589456470-2658-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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 pwm binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/pwm/mxs-pwm.txt | 17 --------- Documentation/devicetree/bindings/pwm/mxs-pwm.yaml | 43 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/mxs-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/mxs-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/mxs-pwm.txt b/Documentation/devicetree/bindings/pwm/mxs-pwm.txt deleted file mode 100644 index a1b8a48..0000000 --- a/Documentation/devicetree/bindings/pwm/mxs-pwm.txt +++ /dev/null @@ -1,17 +0,0 @@ -Freescale MXS PWM controller - -Required properties: -- compatible: should be "fsl,imx23-pwm" -- reg: physical base address and length of the controller's registers -- #pwm-cells: should be 3. See pwm.yaml in this directory for a description of - the cells format. -- fsl,pwm-number: the number of PWM devices - -Example: - -pwm: pwm@80064000 { - compatible = "fsl,imx28-pwm", "fsl,imx23-pwm"; - reg = <0x80064000 0x2000>; - #pwm-cells = <3>; - fsl,pwm-number = <8>; -}; diff --git a/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml b/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml new file mode 100644 index 0000000..da68f4a --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/mxs-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MXS PWM controller + +maintainers: + - Shawn Guo + - Anson Huang + +properties: + compatible: + enum: + - fsl,imx23-pwm + + reg: + maxItems: 1 + + "#pwm-cells": + const: 3 + + fsl,pwm-number: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: u32 value representing the number of PWM devices + +required: + - compatible + - reg + - "#pwm-cells" + - fsl,pwm-number + +additionalProperties: false + +examples: + - | + pwm@80064000 { + compatible = "fsl,imx23-pwm"; + reg = <0x80064000 0x2000>; + #pwm-cells = <3>; + fsl,pwm-number = <8>; + }; -- 2.7.4