From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753631AbcCAMyt (ORCPT ); Tue, 1 Mar 2016 07:54:49 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:38771 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbcCAMyr (ORCPT ); Tue, 1 Mar 2016 07:54:47 -0500 Subject: Re: [PATCH v3 3/5] ARM: dts: DRA7: Add TBCLK for PWMSS To: Tony Lindgren , Franklin S Cooper Jr References: <1456439796-28546-1-git-send-email-fcooper@ti.com> <1456439796-28546-4-git-send-email-fcooper@ti.com> <20160229232348.GV13417@atomide.com> CC: , , , , , , , From: Tero Kristo Message-ID: <56D59100.3060803@ti.com> Date: Tue, 1 Mar 2016 14:54:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160229232348.GV13417@atomide.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/01/2016 01:23 AM, Tony Lindgren wrote: > * Franklin S Cooper Jr [160225 14:37]: >> From: Vignesh R >> >> tbclk is used by ehrpwm to generate PWM waveform on DRA7 SoC. Add Linux >> clock to control ehrpwm tbclk. >> The TRM says, tbclk is derived from SYSCLKOUT. SYSCLKOUT is nothing but >> ehrpwm functional clock derived from the gateable interface and >> functional clock of PWMSS(l4_root_clk_div). >> Refer AM57x TRM SPRUHZ6[1], October 2014, Table 29-4 and Section 29.2.2.1, >> Table 29-19 and the NOTE at the end of the table. >> >> [1] www.ti.com/lit/ug/spruhz6/spruhz6.pdf > > Applying this into omap-for-v4.6/dt thanks. > > Note for Tero, let's plan on getting rid of the duplicate > reg entries by using the standard clock output offset within > the clock register. I think we should easily be able to add > a binding for this and then deprecate the overlapping reg > entries. Yeah, we have been discussing this offline a bit, but haven't had time to look at this. I believe the hwmod clock conversion is of higher priority still. -Tero > > Regards, > > Tony > >> --- a/arch/arm/boot/dts/dra7xx-clocks.dtsi >> +++ b/arch/arm/boot/dts/dra7xx-clocks.dtsi >> @@ -2146,4 +2146,28 @@ >> ti,bit-shift = <0>; >> reg = <0x558>; >> }; >> + >> + ehrpwm0_tbclk: ehrpwm0_tbclk { >> + #clock-cells = <0>; >> + compatible = "ti,gate-clock"; >> + clocks = <&l4_root_clk_div>; >> + ti,bit-shift = <20>; >> + reg = <0x0558>; >> + }; >> + >> + ehrpwm1_tbclk: ehrpwm1_tbclk { >> + #clock-cells = <0>; >> + compatible = "ti,gate-clock"; >> + clocks = <&l4_root_clk_div>; >> + ti,bit-shift = <21>; >> + reg = <0x0558>; >> + }; >> + >> + ehrpwm2_tbclk: ehrpwm2_tbclk { >> + #clock-cells = <0>; >> + compatible = "ti,gate-clock"; >> + clocks = <&l4_root_clk_div>; >> + ti,bit-shift = <22>; >> + reg = <0x0558>; >> + }; >> }; >> -- >> 2.7.0 >>