Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1091784ybl; Tue, 13 Aug 2019 07:15:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD6t0SH/Q7cDLVYY3pODp8A0hxdzdDHEF63uZKcTPpgp3xJXouW2GSkkDVLjhfmu77/R77 X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr2509290pje.11.1565705743560; Tue, 13 Aug 2019 07:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565705743; cv=none; d=google.com; s=arc-20160816; b=HtX4lpcfL/TAqWcbqFRO8AqzWfiGoJP49awdY43wbak462NvgoKw3FuJl8blMzC1pq Pd82U6guGOb+M0Kypvbx0BcJQ4U8k2cXprrQ67///M5ztMJBNznYG6Iv5i2cfIYtqHQU T5V2DJT+r3bSe+XnwOFKlpAl/a5+ZuvQtnAe82rqV0Lqe/OWFRr5TR+Uo0vLNJ9w+Jh1 7pSsZsJMKtbEzyWkSWmYrGuRVWvlQC9fKki1GOeTXe45KfLu0uPjXJu5pMo/k0SuM4CC TO+fxj6+tBGdh/FTa/TwggXvLaL4j2JqNGHMNvgNzmgqZuDj2XXDG+MP+h6Ef6lqYGHg 8sBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9/a6MrNVpeyp+Q+zEdGaHUoPN4olhvaJwIECu6FpVpk=; b=s4MtA+wMM9Cu7aMvaBpWXs0miO79h866egDFs3GWyr3zy1oxDER3TcC9Up1r6yOI9V AqkCTvCDsYrhsb/G9714oizsVOIbE5nhIGfVFe/vn6b66NYoVhbdYAOm4+Atn1RWWbsI CldbUYnoskojdtaqorIXlJ+fhRFlmR9MRUCrlnB0d3kDxMDdp3z2L7io00ZK7SiNa88Y 4kzA6wyDMA/xteVM5bw7mROLZHZzYrFUcr00U8ybSiCWxZ8nzJSALfFyetrZTPGLMaBs reOkwL5+vv4JZj7qxPyG5h4dRV2vA5iVjg4SNHt4aYslBHEIlC/9A/rIniSbPQu0PXJb T5bQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w2si1025148pjn.29.2019.08.13.07.15.26; Tue, 13 Aug 2019 07:15:43 -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; 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 S1729352AbfHMOND (ORCPT + 99 others); Tue, 13 Aug 2019 10:13:03 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:36865 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727462AbfHMOND (ORCPT ); Tue, 13 Aug 2019 10:13:03 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hxXXl-000410-Ce; Tue, 13 Aug 2019 16:12:57 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1hxXXk-0007lN-Mu; Tue, 13 Aug 2019 16:12:56 +0200 Date: Tue, 13 Aug 2019 16:12:56 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Baolin Wang Cc: thierry.reding@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com, vincent.guittot@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: pwm: sprd: Add Spreadtrum PWM documentation Message-ID: <20190813141256.jnbrfld42rtigek3@pengutronix.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 09:46:40PM +0800, Baolin Wang wrote: > Add Spreadtrum PWM controller documentation. > > Signed-off-by: Baolin Wang > --- > Changes from v1: > - Use assigned-clock-parents and assigned-clocks to set PWM clock parent. > --- > Documentation/devicetree/bindings/pwm/pwm-sprd.txt | 38 ++++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sprd.txt > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-sprd.txt b/Documentation/devicetree/bindings/pwm/pwm-sprd.txt > new file mode 100644 > index 0000000..e6cf312 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/pwm-sprd.txt > @@ -0,0 +1,38 @@ > +Spreadtrum PWM controller > + > +Spreadtrum SoCs PWM controller provides 4 PWM channels. > + > +Required porperties: s/porperties/properties/ > +- compatible : Should be "sprd,ums512-pwm". > +- reg: Physical base address and length of the controller's registers. > +- clocks: The phandle and specifier referencing the controller's clocks. > +- clock-names: Should contain following entries: > + "pwmn": used to derive the functional clock for PWM channel n (n range: 0 ~ 3). > + "enablen": for PWM channel n enable clock (n range: 0 ~ 3). > +- assigned-clocks: Reference to the PWM clock entroes. s/entroes/entries/ > +- assigned-clock-parents: The phandle of the parent clock of PWM clock. I'm not sure you need to point out assigned-clocks and assigned-clock-parents as this is general clk stuff. Also I wonder if these should be "required properties". > +- #pwm-cells: Should be 2. See pwm.txt in this directory for a description of > + the cells format. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |