Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756028AbcCDBkA (ORCPT ); Thu, 3 Mar 2016 20:40:00 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:50363 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753967AbcCDBjx (ORCPT ); Thu, 3 Mar 2016 20:39:53 -0500 Subject: Re: [PATCH v3 5/5] ARM: dts: DRA7: Add dt nodes for PWMSS To: Rob Herring References: <1456439796-28546-1-git-send-email-fcooper@ti.com> <1456439796-28546-6-git-send-email-fcooper@ti.com> <20160302182634.GA26055@rob-hp-laptop> CC: , , , , , , , , , From: "Franklin S Cooper Jr." Message-ID: <56D8E74A.6090601@ti.com> Date: Thu, 3 Mar 2016 19:39:22 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160302182634.GA26055@rob-hp-laptop> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2316 Lines: 57 Hi Rob, On 03/02/2016 12:26 PM, Rob Herring wrote: > On Thu, Feb 25, 2016 at 04:36:36PM -0600, Franklin S Cooper Jr wrote: >> From: Vignesh R >> >> Add PWMSS device tree nodes for DRA7 SoC family and add documentation >> for dt bindings. >> >> Signed-off-by: Vignesh R >> --- >> Version 3 changes: >> None >> >> .../devicetree/bindings/pwm/pwm-tiehrpwm.txt | 8 +++ >> .../devicetree/bindings/pwm/pwm-tipwmss.txt | 17 +++++- >> arch/arm/boot/dts/dra7.dtsi | 64 ++++++++++++++++++++++ >> 3 files changed, 88 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt >> index 9c100b2..25d91ae 100644 >> --- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt >> +++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt >> @@ -4,6 +4,7 @@ Required properties: >> - compatible: Must be "ti,-ehrpwm". >> for am33xx - compatible = "ti,am33xx-ehrpwm"; >> for da850 - compatible = "ti,da850-ehrpwm", "ti,am33xx-ehrpwm"; >> + for dra7xx - compatible = "ti,dra7xx-ehrpwm", "ti,am33xx-ehrpwm"; > We're starting to push back on wildcards in compatible strings. I guess > this is okay... > >> - #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. >> @@ -27,3 +28,10 @@ ehrpwm0: ehrpwm@0 { /* EHRPWM on da850 */ >> #pwm-cells = <3>; >> reg = <0x300000 0x2000>; >> }; >> + >> +ehrpwm0: ehrpwm@0 { /* EHRPWM on dra7xx */ > Should be pwm@48440200 So the AM335x, AM437x and DA850 all use ehrpwm0: ehrpwm@
. Also the address of 0 simply follows the pattern used in the other binding examples in that doc. I can replace the 0 address in this patch and make another patch that fixes it for the other examples in that file. But in terms of switching from ehrpwm0:ehrpwm@
to ehrpwm0:pwm@
that would also require making changes to the various dtsis also. So is it worth making that change? If so I have no problem doing it. > >> + compatible = "ti,dra7xx-ehrpwm", "ti,am33xx-ehrpwm"; >> + #pwm-cells = <3>; >> + reg = <0x48440200 0x80>; >> + ti,hwmods = "ehrpwm0"; >> +};