From patchwork Mon Mar 7 20:39:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Cooper X-Patchwork-Id: 8522911 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 32877C0554 for ; Mon, 7 Mar 2016 20:40:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5901920254 for ; Mon, 7 Mar 2016 20:40:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 845A420263 for ; Mon, 7 Mar 2016 20:40:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932115AbcCGUk3 (ORCPT ); Mon, 7 Mar 2016 15:40:29 -0500 Received: from mail-oi0-f51.google.com ([209.85.218.51]:35389 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753812AbcCGUjz (ORCPT ); Mon, 7 Mar 2016 15:39:55 -0500 Received: by mail-oi0-f51.google.com with SMTP id c203so88116325oia.2; Mon, 07 Mar 2016 12:39:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MFEs5UmdEk0pAAS8O/CXD/FFb4US/5GURFDYSB0Ozpk=; b=jjwc+RDWS4Vr3JQMvDH5322wbi4ENKc2ip8M3JmnM3pP7d8pEyUSD5GFNBIaKZXwj3 d91s613sO22gZgJC/uqVoyo/aqIMrj7vjNuI3fwSL6dcdrDhsZlTxTwcN6+rr+QGlWWA UlOKbSqPPh797+GGuMHXw0Jmfdne6hL2O7hibJMC0RbCZzfVX3mTxvlSsPJHfUZcqET3 822SJpPQJKNnE8+MAoQvBCqmSqJwFHPIDRcbLTtZtjvLA1gwitKVxsNq17KhCsjX7oUw s3IgDI1leFTiUaYyxMKfIx3Vy2YqPztB+zHTg6k1P9bINw8IRjV/Ytzir54jtUEUSqXX BGGA== X-Gm-Message-State: AD7BkJIARoW+zU1R8Fl0ZS8CMyWwl3Ndf48YSxlqOlkIRsyK23997eb0eR7eof9K0YEqJg== X-Received: by 10.202.210.18 with SMTP id j18mr14662448oig.33.1457383194181; Mon, 07 Mar 2016 12:39:54 -0800 (PST) Received: from beast-server.fios-router.home (pool-173-57-21-86.dllstx.fios.verizon.net. [173.57.21.86]) by smtp.gmail.com with ESMTPSA id s3sm10657547obf.29.2016.03.07.12.39.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Mar 2016 12:39:53 -0800 (PST) From: Franklin S Cooper Jr To: vigneshr@ti.com, thierry.reding@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, bcousson@baylibre.com, tony@atomide.com, paul@pwsan.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 Cc: Franklin S Cooper Jr Subject: [Patch v4 5/6] ARM: dts: DRA7: Add TBCLK for PWMSS Date: Mon, 7 Mar 2016 14:39:46 -0600 Message-Id: <1457383187-17166-6-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457383187-17166-1-git-send-email-fcooper@ti.com> References: <1457383187-17166-1-git-send-email-fcooper@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 SPRUHZ6E[1], Janurary 2016, Table 29-4 and Section 29.2.2.1, Table 29-19 and the NOTE at the end of the table. [1] http://www.ti.com/lit/ug/spruhz6e/spruhz6e.pdf Signed-off-by: Vignesh R Signed-off-by: Franklin S Cooper Jr --- Version v4 changes: Updated link to latest documentation arch/arm/boot/dts/dra7xx-clocks.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi index 357bede..d0bae06 100644 --- 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>; + }; };