Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp357224imu; Mon, 26 Nov 2018 23:05:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VaLDH6dlZ6h2GviqxefY+tUAtawoIVp7MhA0XllWnGYM5vuj5fDGR+mrwaRAqbEOfzYkh3 X-Received: by 2002:a63:7219:: with SMTP id n25mr28425061pgc.324.1543302347162; Mon, 26 Nov 2018 23:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543302347; cv=none; d=google.com; s=arc-20160816; b=QKWt+bpfjhsnFOmbpuMo5z7UcJ0jkiVs0gm6k9OW6i4e35y/+/EOA2wZADYxaEjVX2 XyIWHYkoDQrvizFJLZFeb80asaQXN/GK3tmTv0h8bO6VtBpfLI/NrtGg8d819AEchmkN fw0ncPAGmHD3y5A7JXUcsWmchgwuzpD47ykqNCxYqtvC1TrcL5LA/LsPJgx+qI3vWQqY XMGbxKipSam0n5uADaUaszDWDHAzchyvZLcwrTdBjsP05vztRxk9C//kqS23cf8bhN+q TU+Yj7dwXvPfNq9qDMgJj2j9Vi6e02yum6ZDzUrkUFIhaXv+HQqz5hfEM0nviSrOTcJK Zv2g== 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=8zns77Pt6T9WiGbu5W/OiMqQX25RKqk2n3PgpkvRHHY=; b=ruYoxXcQetBu7yqFEMPs4hdPQcvWvxwp2resdFk/+fWv7clMiRtVpv0raY08eDi0jk S1U9TqFaMbGq943osjMmxEVBa4aqrWVgR2smrur/CmVDw5shsEYqE/hfgrATr8Ghsy5w eb6M91vEStfsGY4vHChDOQPW9xVgJvnPbcA2MmInv76Rbr1MxVoOGEXi0D5bNhnEXz6p ps+/kszHn4swles3RsPnILy9RIgmPzIu93lLyMwy5fbwCuUHjlcVkFPhH2gHBo8HsCjr S9AQwmSAZGF5ArNnNDgKL49Hao65/u7tmSogqedXGg9YzQZICZPHPAiSe82pWp5fkAB/ ytgA== 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 a17-v6si3061166pfa.227.2018.11.26.23.05.32; Mon, 26 Nov 2018 23:05:47 -0800 (PST) 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 S1728909AbeK0SBW (ORCPT + 99 others); Tue, 27 Nov 2018 13:01:22 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:52797 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728625AbeK0SBW (ORCPT ); Tue, 27 Nov 2018 13:01:22 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gRXPw-0005vV-GA; Tue, 27 Nov 2018 08:04:20 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gRXPu-0003Xt-HY; Tue, 27 Nov 2018 08:04:18 +0100 Date: Tue, 27 Nov 2018 08:04:18 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Hao Zhang Cc: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, mturquette@baylibre.com, sboyd@kernel.org, thierry.reding@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v3 1/6] Documentation: ARM: sunxi: pwm: add Allwinner sun8i. Message-ID: <20181127070418.khdi4wslyv4lmngv@pengutronix.de> References: <20181125161859.GA5277@arx-s1> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181125161859.GA5277@arx-s1> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 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 Hello, On Mon, Nov 26, 2018 at 12:18:59AM +0800, Hao Zhang wrote: > This patch adds Allwinner sun8i pwm binding document. > > Signed-off-by: Hao Zhang > --- > .../devicetree/bindings/pwm/pwm-sun8i.txt | 24 ++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sun8i.txt > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-sun8i.txt b/Documentation/devicetree/bindings/pwm/pwm-sun8i.txt > new file mode 100644 > index 0000000..7531d85 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/pwm-sun8i.txt > @@ -0,0 +1,24 @@ > +Allwinner sun8i R40/V40/T3 SoC PWM controller > + > +Required properties: > + - compatible: Should be one of: > + - "allwinner,sun8i-r40-pwm" > + - reg: Physical base address and length of the controller's registers > + - interrupts: Should contain interrupt. > + - clocks: From common clock binding, handle to the parent clock. > + - clock-names: Must contain the clock names described just above. > + - pwm-channels: PWM channels of the controller. > + - #pwm-cells: Should be 3. See pwm.txt in this directory for a description of > + the cells format. I wonder why "interrupts" is needed here. I guess this is only needed for waveform capture? Is this only "optional"? The driver doesn't use it. Apart from this interrupts property this is all pretty standard and I wonder if we could merge several documents into one. For example Documentation/devicetree/bindings/pwm/pwm-st.txt looks identically apart from "pwm-channels" being called "st,pwm-num-chan" there. (It even has an interrupts property. Should the st driver move to "pwm-channels", too?) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |