Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp74796ybm; Wed, 27 May 2020 19:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFGN4inhGdSYKod7egrnTA//HkZkkmcH5bvNDg2QYmSu8fmXR4Vvmw43t18Ck8O8AZGTpQ X-Received: by 2002:a17:906:9493:: with SMTP id t19mr1050965ejx.407.1590634192460; Wed, 27 May 2020 19:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590634192; cv=none; d=google.com; s=arc-20160816; b=uVx2rYDiFXvWmP3ECMjfR11JbSYPSBnwqQeKA2jK4oy6J1RpDDpNfDEf+/UGV/8pGG XgDlpykzhGg/j1ujjISuxegGEmfM5soX0k4EKEbNsz0H3Jy+msaUPDJ4su9werFaimu+ NXLQRkjTS8SwJz1mlqnXhD7UCuPUe+276O4b3J98xcuwudZv0nwcZLe5GoIiTvhw4BDc 3IJ9ivFH4F6s0kH5X4EN/ENd4WrZo2px/bjnzNGndhwrT5ykscGWsvpUzpWnDGYFZ9JG rUgUNihgy4GOsQd8Q8wf1UR+UuszI5fuaIQw/Q7Lp6RB+E3Jzz+8qIGPmsUPGbwy/Azh 3t0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DyKeOTT5ayES89536EIkfmSdE8pie6WqWxuv+WC96Uc=; b=TH8yDJWDsWRDskMzMHgYqJun211sneBtMyW8KW3jHrKh/qrei5Ei7Ojgkh8IYtM9qe GFTO+ptKIWBPa4txfAzlapJzxgV4Ao0DI8Dr1vVKgEjm3lye2vIImhFAE33kFVoDjR6B FJOzjyXHdVTq3o+pXkgAgU9pOfD7zZvP6+1SZrM/QGcjhHS9cwMmB8qW4Dp2DGlOK8e5 XY+HklSZRGNxJn47fjPmUMUCWHbUTOg7rK99+TfAUfHAEV2WRQRuaaoc0BCFsPps2A6u x7cec53OnJHV4+M0zOUaIvEA9xFMdCRUmDBcdnxF10GDB17M9aBEqlfZQo/WMbZbF/Rc 58nQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si2209145eja.402.2020.05.27.19.49.29; Wed, 27 May 2020 19:49:52 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbgE1CrQ (ORCPT + 99 others); Wed, 27 May 2020 22:47:16 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:38001 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbgE1CrP (ORCPT ); Wed, 27 May 2020 22:47:15 -0400 Received: by mail-il1-f194.google.com with SMTP id q18so5046819ilm.5; 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=BAy1fUqavC/vBaGip4tuaCcD5TUBHDRypNl16nDBNK/Ae+dLT9xRye+qOlYO9y5F73 7kxU6LTAzrx4pOnzy975Autvl12mxq/Y1gOeYJAoYFZhTtBlDOyOKlsjvSfG53wiqEyv ZApdkZzIFgTLR6QHNYKimlKbo/Q2WqwYHFiyL2EJAMJdIeQNdESjfw+QE2vHEEpgQPck e9fWcUiMdAbNdXeQ1AA2cVgOa9x0zlqwdbneEvn4/yOgV6xks3KFNC1DQ71KRnfeUsXO 0NI7htfzjvldTxpdaAp2IO8qUfMMXGtGDn4bTNRRNsePs2smlkxPr4mbZo9VsYlhNXxE iirw== X-Gm-Message-State: AOAM531c3ROlupl/utIMhTAU8j+kmh9TVPIpLHpG5P09D503x39ihtzd WOL6CjAY7t+/ZeHO3+3jmg== 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 Cc: Anson Huang , "thierry.reding@gmail.com" , "u.kleine-koenig@pengutronix.de" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "p.zabel@pengutronix.de" , "linux-pwm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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