From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB38DC433DF for ; Thu, 28 May 2020 02:47:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C31572084C for ; Thu, 28 May 2020 02:47:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="On5t2veD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C31572084C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y+9jxjFIiTVQ77Ywn8l5zCoK0fvWeaM2aeLpTpQVJVA=; b=On5t2veDrYUIAn Z4IqEzRC6JKSAJKgSEMO3Vmutj3sOFgg5YflJPyB9UoWAjVkoClQQBKwJ/AQjIuy6RZGMrm07eQNF 4nZACSN0XlVgghEFMAfbKTXwmBqkB1ABeS3p9rl8KBsmFxQeZt22tx5qJL5drrBP9XC26sFXdprUy OMddjGbGFRmtAzN+arCAmNS03E3eMmw6x6YyTbb/Vpw5EXy5Mi4FPBsApkfi4ugrXqzaM61Hk6hNu eLXVrq+WxLVr9omVcFvZdi6jCf3qcO4tOhnUW9BQZ0m31G7Cy3TrSBttuZhUWXMPl0Hewr8/rfdqY ShCNnfbyNOe33bKpx1kw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1je8Zh-0006Z7-SD; Thu, 28 May 2020 02:47:17 +0000 Received: from mail-il1-f193.google.com ([209.85.166.193]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1je8Ze-0006Yl-2h for linux-arm-kernel@lists.infradead.org; Thu, 28 May 2020 02:47:15 +0000 Received: by mail-il1-f193.google.com with SMTP id y17so23968574ilg.0 for ; Wed, 27 May 2020 19:47:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DyKeOTT5ayES89536EIkfmSdE8pie6WqWxuv+WC96Uc=; b=lo65l4dPKNZsTHt9E0aKecMOEGRKpIgP0JL8fQgYRX7jdkg/F9VJR4mBcyR/GHM2aJ VW+i/iewVTnvrhF2JnL6zkfLiHUcFwtuBZDubEZEJqE8FllEeRNKY0SQKT0NheSDqbCs JBoccaUaYOvGkS2o1WF5km2l6kicc6LwMrmevhuN4HUUZ61vDJrZ3GwIlyVRbp3AHWfC /dUDin2KfPLV1W0YyYde4iuT1ZrE8Hub537N8APFOUtl26ehO3hHBmUeaRYaPCpOD3m8 cg9aQcrnWZ90Q63XJroj7jmBW5mVTZkYzMjMjQRKNQTnLrUM83QhMx2BcFcLQI86XqBB tLaQ== X-Gm-Message-State: AOAM531GSmkHcKvHQiUgNfegStp6iIfrjGG3c/KVVgQOsVow0vITIeX3 Tt1UEB15xo5+TWb9/16lYg== X-Google-Smtp-Source: ABdhPJy2sXNW5d3TvaBR69TXcEPbrmESs/mfGAN1Xlh1FUcZkRjXJt+7LBlSAQNHed62UWXHktKI/Q== X-Received: by 2002:a05:6e02:138b:: with SMTP id d11mr991383ilo.183.1590634033306; Wed, 27 May 2020 19:47:13 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id l6sm1973875ioh.32.2020.05.27.19.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 19:47:12 -0700 (PDT) Received: (nullmailer pid 3268338 invoked by uid 1000); Thu, 28 May 2020 02:47:11 -0000 Date: Wed, 27 May 2020 20:47:11 -0600 From: Rob Herring To: Aisheng Dong Subject: Re: [PATCH 1/2] dt-bindings: pwm: Convert imx pwm to json-schema Message-ID: <20200528024711.GA3265614@bogus> References: <1589439259-28510-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200527_194714_120887_C4E9926D X-CRM114-Status: GOOD ( 20.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-pwm@vger.kernel.org" , "p.zabel@pengutronix.de" , Anson Huang , "devicetree@vger.kernel.org" , "festevam@gmail.com" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , "thierry.reding@gmail.com" , dl-linux-imx , "kernel@pengutronix.de" , "u.kleine-koenig@pengutronix.de" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, May 18, 2020 at 05:58:42AM +0000, Aisheng Dong wrote: > > From: Anson Huang > > Sent: Thursday, May 14, 2020 2:54 PM > > > > Convert the imx pwm binding to DT schema format using json-schema. > > > > Signed-off-by: Anson Huang > > --- > > Documentation/devicetree/bindings/pwm/imx-pwm.txt | 27 --------- > > Documentation/devicetree/bindings/pwm/imx-pwm.yaml | 66 > > ++++++++++++++++++++++ > > 2 files changed, 66 insertions(+), 27 deletions(-) delete mode 100644 > > Documentation/devicetree/bindings/pwm/imx-pwm.txt > > create mode 100644 > > Documentation/devicetree/bindings/pwm/imx-pwm.yaml > > > > diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.txt > > b/Documentation/devicetree/bindings/pwm/imx-pwm.txt > > deleted file mode 100644 > > index 22f1c3d..0000000 > > --- a/Documentation/devicetree/bindings/pwm/imx-pwm.txt > > +++ /dev/null > > @@ -1,27 +0,0 @@ > > -Freescale i.MX PWM controller > > - > > -Required properties: > > -- compatible : should be "fsl,-pwm" and one of the following > > - compatible strings: > > - - "fsl,imx1-pwm" for PWM compatible with the one integrated on i.MX1 > > - - "fsl,imx27-pwm" for PWM compatible with the one integrated on i.MX27 > > -- reg: physical base address and length of the controller's registers > > -- #pwm-cells: 2 for i.MX1 and 3 for i.MX27 and newer SoCs. See pwm.yaml > > - in this directory for a description of the cells format. > > -- clocks : Clock specifiers for both ipg and per clocks. > > -- clock-names : Clock names should include both "ipg" and "per" > > -See the clock consumer binding, > > - Documentation/devicetree/bindings/clock/clock-bindings.txt > > -- interrupts: The interrupt for the pwm controller > > - > > -Example: > > - > > -pwm1: pwm@53fb4000 { > > - #pwm-cells = <3>; > > - compatible = "fsl,imx53-pwm", "fsl,imx27-pwm"; > > - reg = <0x53fb4000 0x4000>; > > - clocks = <&clks IMX5_CLK_PWM1_IPG_GATE>, > > - <&clks IMX5_CLK_PWM1_HF_GATE>; > > - clock-names = "ipg", "per"; > > - interrupts = <61>; > > -}; > > diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml > > b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml > > new file mode 100644 > > index 0000000..4b62af2 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml > > @@ -0,0 +1,66 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 > > +--- > > +$id: > > +https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevice > > +tree.org%2Fschemas%2Fpwm%2Fimx-pwm.yaml%23&data=02%7C01% > > 7Caisheng.d > > +ong%40nxp.com%7C9b5cc1814a4b47d1cb0d08d7f7d4f594%7C686ea1d3bc > > 2b4c6fa92c > > +d99c5c301635%7C0%7C0%7C637250366331627865&sdata=M2RPcty > > wz61WZrpAW6S > > +O3NJbr2wj2qXwnMMmBwCbInk%3D&reserved=0 > > +$schema: > > +https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevice > > +tree.org%2Fmeta-schemas%2Fcore.yaml%23&data=02%7C01%7Caishen > > g.dong% > > +40nxp.com%7C9b5cc1814a4b47d1cb0d08d7f7d4f594%7C686ea1d3bc2b4c > > 6fa92cd99c > > +5c301635%7C0%7C0%7C637250366331627865&sdata=UxgYSClanyOjt > > BmlyNrMZyF > > +3%2F5awD%2FM3yaVPqgNKgxs%3D&reserved=0 > > + > > +title: Freescale i.MX PWM controller > > + > > +maintainers: > > + - Philipp Zabel > > + > > +properties: > > + "#pwm-cells": > > + description: | > > + Should be 2 for i.MX1 and 3 for i.MX27 and newer SoCs. See pwm.yaml > > + in this directory for a description of the cells format. > > Should we add the reference to pwm.yaml? > BTW, strange, I didn't see format description in pwm.yaml. No need to. That's generally only needed when there's some structure like SPI or I2C bus to include. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel