From patchwork Mon Aug 22 12:49:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9293473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4FA25607FF for ; Mon, 22 Aug 2016 12:50:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4430C28375 for ; Mon, 22 Aug 2016 12:50:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38D282898B; Mon, 22 Aug 2016 12:50:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BA67628375 for ; Mon, 22 Aug 2016 12:50:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bbog3-0007sN-2J; Mon, 22 Aug 2016 12:50:07 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bbog0-0007VI-3s for linux-amlogic@lists.infradead.org; Mon, 22 Aug 2016 12:50:05 +0000 Received: by mail-wm0-x22c.google.com with SMTP id f65so119045146wmi.0 for ; Mon, 22 Aug 2016 05:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=mac5+P2Md9CqHjwStbe2jgf2uYu3oN6rwd7uel4OZew=; b=k9QEpfyL57YtVdQo/gwn4rO5l02aMHCW3mEdTwaRS0HMmxLC/riZrx+9uUqOlzPX3y ou/gBupb3Z/453foVJTFdre+U6ITWcE8qnhCn588M2qhAIUziS5cpLMYzH6o5ARCE/pt S54kqWO4Dc3oxvQTUQgSljgLSlAvwF5XDYKXPTT03tiXJ8CDUwXgXQxnfeNJORjdxvx/ 7iVQKBsOnMgrnAG66KLbuBPIgvWyMzuf5I0pTvgWK+zkR7plKQG3s6kCLYaogVaaELJE V9/W+fYk1Hy3mVcG8dyRiufmLtJOrrwoNtyW7TzuUiDsXECUuCicZpAwfJ6owmIyHdU6 8LQA== 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; bh=mac5+P2Md9CqHjwStbe2jgf2uYu3oN6rwd7uel4OZew=; b=UlBcclEI8rH1Ui+CU5HQXEnzkq+5DjYHzmzBLIcvfd5+c122GlS5RqStdIbPnlNc4O fPI6nXZjGeCvYM15oFqnAL5+p+q4brxoC0N4b2+4ynIWrQ8ZwRJ0BOKR3buVHLD8I3i0 8JrFElbuvHwwQ4JiCYxQKKUTbQ1Serxeb1xQnkBLuUJlMpBO6gUMkOTG3QIgV1jzkX35 K79NAiUr0NShAgvZQMrxARYemqhkQYivu8TrK6Hzsj8VCrrhF3ARPWY0fJUY0GXSvsGs ShqDtZu0y7M/vydsCNYrA8YPcEwv/z5Pnyla2eI0spUpfKPzip+EwuM4Qz+DTGciJGna ye8A== X-Gm-Message-State: AEkoouvJxiEdSDikin63pbCe50n91jKoeUmAa6HarIPzhbGG8xO7d2QPeUAY8qah771aKu1f X-Received: by 10.194.115.99 with SMTP id jn3mr19085209wjb.194.1471870182136; Mon, 22 Aug 2016 05:49:42 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n2sm23897764wjd.1.2016.08.22.05.49.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 05:49:41 -0700 (PDT) From: Neil Armstrong To: sboyd@codeaurora.org, carlo@caione.org, khilman@baylibre.com, devicetree@vger.kernel.org Subject: [PATCH] clk: meson-gxbb: Export PWM related clocks for DT Date: Mon, 22 Aug 2016 14:49:37 +0200 Message-Id: <1471870177-10609-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_055004_314288_5AB0AB8C X-CRM114-Status: UNSURE ( 7.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the PWM related clocks in order to be referenced as PWM source clocks. Signed-off-by: Neil Armstrong Acked-by: Stephen Boyd --- drivers/clk/meson/gxbb.h | 6 +++--- include/dt-bindings/clock/gxbb-clkc.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/meson/gxbb.h index a2adf34..523b494 100644 --- a/drivers/clk/meson/gxbb.h +++ b/drivers/clk/meson/gxbb.h @@ -170,11 +170,11 @@ */ #define CLKID_SYS_PLL 0 /* CLKID_CPUCLK */ -#define CLKID_HDMI_PLL 2 +/* CLKID_HDMI_PLL */ #define CLKID_FIXED_PLL 3 #define CLKID_FCLK_DIV2 4 -#define CLKID_FCLK_DIV3 5 -#define CLKID_FCLK_DIV4 6 +/* CLKID_FCLK_DIV3 */ +/* CLKID_FCLK_DIV4 */ #define CLKID_FCLK_DIV5 7 #define CLKID_FCLK_DIV7 8 #define CLKID_GP0_PLL 9 diff --git a/include/dt-bindings/clock/gxbb-clkc.h b/include/dt-bindings/clock/gxbb-clkc.h index f889d80..a5897f3 100644 --- a/include/dt-bindings/clock/gxbb-clkc.h +++ b/include/dt-bindings/clock/gxbb-clkc.h @@ -6,6 +6,9 @@ #define __GXBB_CLKC_H #define CLKID_CPUCLK 1 +#define CLKID_HDMI_PLL 2 +#define CLKID_FCLK_DIV3 5 +#define CLKID_FCLK_DIV4 6 #define CLKID_CLK81 12 #define CLKID_ETH 36