From patchwork Tue Mar 8 01:23:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Cooper X-Patchwork-Id: 8528241 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 F0554C0553 for ; Tue, 8 Mar 2016 01:24:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 168BF201B9 for ; Tue, 8 Mar 2016 01:24:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3CE3D2017E for ; Tue, 8 Mar 2016 01:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754109AbcCHBYd (ORCPT ); Mon, 7 Mar 2016 20:24:33 -0500 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33655 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753843AbcCHBYK (ORCPT ); Mon, 7 Mar 2016 20:24:10 -0500 Received: by mail-pa0-f66.google.com with SMTP id q6so81240pav.0; Mon, 07 Mar 2016 17:24:09 -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=a/Koip5qwifNsVD9O+BM/uGa9LgsP1YKUF5k4pXKfhs=; b=P9vnmiJWu2o+zLj15t+HwN1xX4qxZvJqwK39ESQB7I+8LkNpQ0Mg0sYCpb+J8wg4q3 vjt5euSjKfeBFQAR9at5Rl1oIE+wAabmxAubJwOY3qgoYivZ+iKglQNk8IhZc9ESrOYE dND65/Dg/a6LbPgHX9fX/Z6n1ambXylv765zZSBoeV/n2tb3INcFZj53gKgsEO2DEEZJ AOl37xkcsjMVEzbFahbm5UNmXAy5IB68wQxsgbvFR9AukmqS3lqpn3Xl53VKvznveIti o3TpFxfcq7JLHqRDBFG25zLZJF2fjvqqQXcnJwoNZCT8d2IdtoPgmFdQdBblq9ca3CGZ sCwA== X-Gm-Message-State: AD7BkJKsibuiV7dQRLuRNMOeoBkcczJBfBGnwql3QqORhhGbapSw9kLIZHE/gtdXymuogQ== X-Received: by 10.66.160.231 with SMTP id xn7mr38363990pab.134.1457400248875; Mon, 07 Mar 2016 17:24:08 -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 82sm294823pfi.78.2016.03.07.17.24.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Mar 2016 17:24:08 -0800 (PST) From: Franklin S Cooper Jr To: 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, linux@arm.linux.org.uk, 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, vigneshr@ti.com Cc: Franklin S Cooper Jr Subject: [PATCH v5 5/6] ARM: dts: DRA7: Add TBCLK for PWMSS Date: Mon, 7 Mar 2016 19:23:43 -0600 Message-Id: <1457400224-24797-6-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457400224-24797-1-git-send-email-fcooper@ti.com> References: <1457400224-24797-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=ham 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 5 changes: None 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>; + }; };