Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp217966img; Mon, 18 Mar 2019 01:19:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuQrKZLZikZVKMtO/5AIoGdjRE/vEBiaVcpPLNKVcOm4cEoR1+6ZcTjdcmqTncTPcRQ9tz X-Received: by 2002:aa7:82d7:: with SMTP id f23mr18077289pfn.114.1552897181951; Mon, 18 Mar 2019 01:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552897181; cv=none; d=google.com; s=arc-20160816; b=HT32HIEHzf2JX8DwSYPc2im0svqmubNwkDhDkXYUuq2R7UDIjBLu+vh6BzI2x4uYYd 1gS/JNWPkrkuVzKUxO+rjf2nRML4AsElFP7Y4aIjCIgp0EV4+g0i7iWIIoKH7suwvf5h ECzkrme0qS71aW6XZ+kHlHYOXqmcsLE0/HspYAVDaUBxg8YzMkSvWCz7A0Z9eVEJHuiq zlrUo4XbASWa7UqKzFGnMDr+hNQKDJ1z5e0Vr43uFAjJkYexVTOHfpof/XnlMIbaNEmC Y41ZSHGob7anhaSoxiGdSfOPFHnSuWaVopoUqS+zDx3D6CsrDc1P1fPDYetInnsq1sE7 n7JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=ie7gEvCZHt2dPtaEXOSM/yOAG6BLizHKnECPLrS9Wh4=; b=v6blIoJbGyZtbhrLJng6Vu88iK+Xnu31UolemKsXH9jieMoYT2mRLHtE64WcJftj7R IIU3u+TAkObn1eAGS2cB1ogQZuef6P/fWELI5ekF+4eGLDO4q3R50cnACxsbIOkcHfKq DSgmVLSlXeaEB30yvYmVHsy+lHX7t/HT31NBqFnjBjiar7CVt5/jqU/Jtf3yaeWwTm7a OmbBNgU+3RMTZoE2oRrnLZlpzkqO/9COCwourvY6YODVQimJHtovxYO1uwrN8RK/LiXx /D3h0SqR+shS8Vp40JwLqOmJOoDVekNtyotyZXfxms8dkcpAjaNOnI0UMJKT20ph7XQK aO/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=sW0wQegx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si8117913pgq.330.2019.03.18.01.19.26; Mon, 18 Mar 2019 01:19:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=sW0wQegx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbfCRISt (ORCPT + 99 others); Mon, 18 Mar 2019 04:18:49 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:35166 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbfCRISt (ORCPT ); Mon, 18 Mar 2019 04:18:49 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E16C65C013A; Mon, 18 Mar 2019 09:18:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1552897126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ie7gEvCZHt2dPtaEXOSM/yOAG6BLizHKnECPLrS9Wh4=; b=sW0wQegxmWjmnhEyKdxVz0jAoBw+x8NsF00BgKchTuPHwm9DfUFtlbG22eVFYTbacFw7Pp fPZuekzVctsDCbIPhh+DMepDILrDCIc4EIZ6KfUfrve7HOmIDThdq/SckLzqVrmiPS96LE 9ynp2qUwSc6ZXU63wUHWOhvaPdz91mo= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Mon, 18 Mar 2019 09:18:46 +0100 From: Stefan Agner To: Anson Huang Cc: thierry.reding@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux@armlinux.org.uk, otavio@ossystems.com.br, Leonard Crestez , Robin Gong , jan.tuerk@emtrion.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, u.kleine-koenig@pengutronix.de, dl-linux-imx Subject: Re: [PATCH V5 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding In-Reply-To: <1552894581-3391-2-git-send-email-Anson.Huang@nxp.com> References: <1552894581-3391-1-git-send-email-Anson.Huang@nxp.com> <1552894581-3391-2-git-send-email-Anson.Huang@nxp.com> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.03.2019 08:41, Anson Huang wrote: > Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. > > Signed-off-by: Anson Huang > --- > No changes. > --- > Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt > > diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt > b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt > new file mode 100644 > index 0000000..d47b8fb > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt > @@ -0,0 +1,19 @@ > +Freescale i.MX TPM PWM controller > + > +Required properties: > +- compatible : Should be "fsl,imx-tpm-pwm". > +- reg: Physical base address and length of the controller's registers. > +- #pwm-cells: Should be 2. See pwm.txt in this directory for a > description of the cells format. It seems that the driver supports polarity. Can we use 3 cells so we can specify the polarity in the device tree? Also use 3 cells in the base device tree to enable other boards making use of the polarity (arch/arm/boot/dts/imx7ulp.dtsi). -- Stefan > +- clocks : The clock provided by the SoC to drive the PWM. > +- interrupts: The interrupt for the pwm controller. > + > +Example: > + > +pwm0: tpm@40250000 { > + compatible = "fsl,imx-tpm-pwm"; > + reg = <0x40250000 0x1000>; > + assigned-clocks = <&clks IMX7ULP_CLK_LPTPM4>; > + assigned-clock-parents = <&clks IMX7ULP_CLK_SOSC_BUS_CLK>; > + clocks = <&clks IMX7ULP_CLK_LPTPM4>; > + #pwm-cells = <2>; > +};