From patchwork Sat Apr 2 16:25:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 8731901 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 327799F38C for ; Sat, 2 Apr 2016 16:28:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DF0620376 for ; Sat, 2 Apr 2016 16:28:29 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 638162012D for ; Sat, 2 Apr 2016 16:28:28 +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 1amOO9-0004IJ-8E; Sat, 02 Apr 2016 16:27:05 +0000 Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1amONd-00043m-MQ for linux-arm-kernel@lists.infradead.org; Sat, 02 Apr 2016 16:26:35 +0000 Received: by mail-lb0-x236.google.com with SMTP id u8so101986874lbk.0 for ; Sat, 02 Apr 2016 09:26:13 -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=vkFbAKU/v4aDD1ESF3iYbi0ZWcl0zvhhuttLdfMpmBQ=; b=uuAdtpsg4hUASPgA6fogFj66e1cjQqS4pKQOS83ZDRwN3scVuj/OKFB1x49evIBjRe 8EqPKC0AftGjA7Jrxj4IgnKtctPiVpTHgEUExvKaaf9fr4jqKGiaO7r4o5sOs0yjbXtU HtfFAl4yiM1h67mURT+fiDzXhNAttwbYCoKxavTrqrkKKLRmOcPf+RsGpB0Tsb60o0Q1 JecGsmtr8nmLqTCv9tDbmBIwIjvfLb30rsdYvp69pOqBPXgo4RlbC5seL5nAUAHeofop RP3lhVEs1qnNPC0Dl/a65IbPOThOmFAAuKrtZiwlyB7x8WosPNQJukrhy7M3Sa+adMDH LXjw== 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=vkFbAKU/v4aDD1ESF3iYbi0ZWcl0zvhhuttLdfMpmBQ=; b=X4pdZrV4X91O+bN+ghp5sDHOIt72eap06+M+tZ9js6fLvB/9kJ6QN1v6Bb43NeO5VW ghaEtoM+z+2i7u9zOGwqeT4qfJNKpnqXIeBUDI786BbL25J6+PTN5w7ChJYrZy6aSTH+ HOBOCCBg3Yw1kPVp+kK9XQOI1GBcVTvC4AIdMwR9bGFob5SY6pDx+fqMKiPXJL9CaqtW 24Ezlyz2Alyj/4pnSWpkVq2qW+68LO9+vaFCL0D7qedBtLeJl6nxLJkk/8+mGAm+jUwy 8eS/rntj1qXT8MyP4nOG9xwtWaACb6TB27hGn2l2WDpA9RTgwhXvRFjJYwgK/a6sC6pS hKAQ== X-Gm-Message-State: AD7BkJJzOqcBo9Wff48Lb/6ymNBVHXevCEUtBHqbfdJ5rwFon74IZfBdD8UTyn9gBxEfYQ== X-Received: by 10.28.179.7 with SMTP id c7mr4081808wmf.46.1459614371870; Sat, 02 Apr 2016 09:26:11 -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 c144sm4504237wmd.0.2016.04.02.09.26.11 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Apr 2016 09:26:11 -0700 (PDT) From: Gary Bisson To: devicetree@vger.kernel.org Subject: [PATCH v3 3/9] clk: imx: add ckil clock for i.MX7 Date: Sat, 2 Apr 2016 18:25:45 +0200 Message-Id: <1459614351-16731-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1459614351-16731-1-git-send-email-gary.bisson@boundarydevices.com> References: <1458050668-26748-1-git-send-email-gary.bisson@boundarydevices.com> <1459614351-16731-1-git-send-email-gary.bisson@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160402_092634_065140_69329C6A X-CRM114-Status: GOOD ( 10.96 ) 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=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,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 --- Changes v1 -> v2: - none Changes v2 -> v3: - none --- 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 */