Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753511AbcD1VHZ (ORCPT ); Thu, 28 Apr 2016 17:07:25 -0400 Received: from mail.kernel.org ([198.145.29.136]:57842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753070AbcD1VHW (ORCPT ); Thu, 28 Apr 2016 17:07:22 -0400 Date: Thu, 28 Apr 2016 16:07:16 -0500 From: Rob Herring To: Franklin S Cooper Jr Cc: thierry.reding@gmail.com, tony@atomide.com, paul@pwsan.com, t-kristo@ti.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, vigneshr@ti.com, nsekhar@ti.com Subject: Re: [PATCH v7 2/9] ARM: dts: am437x: Add missing compatibles to PWM binding documents Message-ID: <20160428210716.GA12508@rob-hp-laptop> References: <1461710209-6563-1-git-send-email-fcooper@ti.com> <1461710209-6563-3-git-send-email-fcooper@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461710209-6563-3-git-send-email-fcooper@ti.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3151 Lines: 74 On Tue, Apr 26, 2016 at 05:36:42PM -0500, Franklin S Cooper Jr wrote: > There are several SOC specific compatibles for ECAP, EHRPWM and PWMMS > that are in use but aren't properly documented. Therefore, fix this > by adding the compatibles to the appropriate binding documents. > > While at it make minor corrections to the binding document. > > Signed-off-by: Franklin S Cooper Jr > --- > .../devicetree/bindings/pwm/pwm-tiecap.txt | 12 ++++++++++-- > .../devicetree/bindings/pwm/pwm-tiehrpwm.txt | 12 ++++++++++-- > .../devicetree/bindings/pwm/pwm-tipwmss.txt | 21 +++++++++++++++++++-- > 3 files changed, 39 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt > index fb81179..788da6c 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt > +++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt > @@ -2,8 +2,9 @@ TI SOC ECAP based APWM controller > > Required properties: > - compatible: Must be "ti,-ecap". > - for am33xx - compatible = "ti,am33xx-ecap"; > - for da850 - compatible = "ti,da850-ecap", "ti,am33xx-ecap"; > + for am33xx - compatible = "ti,am33xx-ecap"; > + for am4372 - compatible = "ti,am4372-ecap", "ti,am33xx-ecap"; > + for da850 - compatible = "ti,da850-ecap", "ti,am33xx-ecap"; > - #pwm-cells: should be 3. See pwm.txt in this directory for a description of > the cells format. The PWM channel index ranges from 0 to 4. The only third > cell flag supported by this binding is PWM_POLARITY_INVERTED. > @@ -22,6 +23,13 @@ ecap0: ecap@0 { /* ECAP on am33xx */ > ti,hwmods = "ecap0"; > }; > > +ecap0: ecap@0 { /* ECAP on am4372 */ The unit address is wrong. > + compatible = "ti,am4372-ecap", "ti,am33xx-ecap"; > + #pwm-cells = <3>; > + reg = <0x48300100 0x80>; > + ti,hwmods = "ecap0"; > +}; > + > ecap0: ecap@0 { /* ECAP on da850 */ > compatible = "ti,da850-ecap", "ti,am33xx-ecap"; > #pwm-cells = <3>; > diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt > index 9c100b2..99b544f 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt > +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt > @@ -2,8 +2,9 @@ TI SOC EHRPWM based PWM controller > > Required properties: > - compatible: Must be "ti,-ehrpwm". > - for am33xx - compatible = "ti,am33xx-ehrpwm"; > - for da850 - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; > + for am33xx - compatible = "ti,am33xx-ehrpwm"; > + for am4372 - compatible = "ti,am4372-ehrpwm", "ti,am33xx-ehrpwm"; > + for da850 - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; > - #pwm-cells: should be 3. See pwm.txt in this directory for a description of > the cells format. The only third cell flag supported by this binding is > PWM_POLARITY_INVERTED. > @@ -22,6 +23,13 @@ ehrpwm0: ehrpwm@0 { /* EHRPWM on am33xx */ > ti,hwmods = "ehrpwm0"; > }; > > +ehrpwm0: ehrpwm@0 { /* EHRPWM on am4372 */ ditto Otherwise, Acked-by: Rob Herring