From patchwork Tue Mar 15 10:30:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 8587241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5606C9F44D for ; Tue, 15 Mar 2016 10:41:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 808C720263 for ; Tue, 15 Mar 2016 10:41:33 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0ED42025A for ; Tue, 15 Mar 2016 10:41:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1afmH5-0004xY-L1; Tue, 15 Mar 2016 10:32:27 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1afmFd-0004AZ-Ol for linux-arm-kernel@lists.infradead.org; Tue, 15 Mar 2016 10:30:59 +0000 Received: by mail-wm0-x233.google.com with SMTP id l68so19483525wml.1 for ; Tue, 15 Mar 2016 03:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wSFAqWotOhnDQEgdyQB2tnJlj5VbNv61yg6s1rBmCC0=; b=tzCdu36AJy/ZI/vbQpkq2JsoakNzXEywL3iFNkSmy9BcWkmHsbFN24NjHIO3CN1HpW YosaiwopxbO6KzlaAOwsrXhPZdz0+NMhgBT1KtE0iL8kgpRiY3Tk+sXEsRzIfUYx4GJc L1bY/oC4luQDVI7a6GUtT/HLELXvuRDMP49mvEiWQrB5Mqt8p98Dh0D8tQASCO70vvwx M8L0aGjGbgoxE0SQhZ1+ac3G7fYpqUB9jL2LlwIqDEemw58zbbaJPo5pei4hUiPLKKYX XNHepLqP27ZuTbeCyKZ6TNQgnJTj/M8k/KMF3g1T4nXeL8nTjlsYEf/PCLuYE4dURTCs YLBw== 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=wSFAqWotOhnDQEgdyQB2tnJlj5VbNv61yg6s1rBmCC0=; b=iXd/qlRewbUqkvVOe7waH/72suA8fBn0riPpN7XcaQtvOuFR+qIazA7XJcH+k3Ge+L B+BOvbztOY2WuyNiI4VX/fJx1MCZXcCnLlDeI3bxBf7ulVslUCKO3u+IVUtBKuP2BdKc sTUNuOgU90B2IKQXppDbkwwVsldI/ITEV9RmwRikFMcthRSxulO62T68hz/yAXfxTb5M VLYy1DACznQPGiEJSPaqFDIwd3o7cYic+t+Vi4OyNOwS0XO4RBdCaxK1CtUj66eZx44P P5QtlqQJUW2uqWAh5wTwys/kQU9mK12yjOOaQcQ4XeYKU97p13A3nG+fpjK81k5taytq aXOQ== X-Gm-Message-State: AD7BkJJXcMrDzZGU0UR2ARe+E260HRY0MJDfoZHFp752YFc1PAyV7NRkhr1eEgwUxDE8vQ== X-Received: by 10.28.11.69 with SMTP id 66mr23304524wml.103.1458037836076; Tue, 15 Mar 2016 03:30:36 -0700 (PDT) Received: from t450s.lan (89-92-156-188.hfc.dyn.abo.bbox.fr. [89.92.156.188]) by smtp.googlemail.com with ESMTPSA id 3sm20280906wmp.14.2016.03.15.03.30.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2016 03:30:35 -0700 (PDT) From: Gary Bisson To: devicetree@vger.kernel.org Subject: [PATCH 3/9] clk: imx: add ckil clock for i.MX7 Date: Tue, 15 Mar 2016 11:30:20 +0100 Message-Id: <1458037826-19375-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1458037826-19375-1-git-send-email-gary.bisson@boundarydevices.com> References: <1458037826-19375-1-git-send-email-gary.bisson@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160315_033057_958233_4E4668B3 X-CRM114-Status: GOOD ( 10.36 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@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@arm.linux.org.uk, mturquette@baylibre.com, troy.kisky@boundarydevices.com, Gary Bisson , robh+dt@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RDNS_NONE,T_DKIM_INVALID,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 Add the necessary clock to use the ckil on i.MX7. Inspired from the following patch: https://github.com/boundarydevices/linux-imx6/commit/b80e8271 Signed-off-by: Troy Kisky Signed-off-by: Gary Bisson --- drivers/clk/imx/clk-imx7d.c | 3 ++- include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index fbb6a8c..7912be8 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -342,7 +342,7 @@ static const char *clko1_sel[] = { "osc", "pll_sys_main_clk", static const char *clko2_sel[] = { "osc", "pll_sys_main_240m_clk", "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_166m_clk", "pll_sys_pfd4_clk", - "pll_audio_main_clk", "pll_video_main_clk", "osc_32k_clk", }; + "pll_audio_main_clk", "pll_video_main_clk", "ckil", }; static const char *lvds1_sel[] = { "pll_arm_main_clk", "pll_sys_main_clk", "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_332m_clk", @@ -382,6 +382,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_CLK_DUMMY] = imx_clk_fixed("dummy", 0); clks[IMX7D_OSC_24M_CLK] = of_clk_get_by_name(ccm_node, "osc"); + clks[IMX7D_CKIL] = of_clk_get_by_name(ccm_node, "ckil"); np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop"); base = of_iomap(np, 0); diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h index edca8985c..1183347 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h @@ -448,5 +448,6 @@ #define IMX7D_PLL_DRAM_TEST_DIV 435 #define IMX7D_ADC_ROOT_CLK 436 #define IMX7D_CLK_ARM 437 -#define IMX7D_CLK_END 438 +#define IMX7D_CKIL 438 +#define IMX7D_CLK_END 439 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */