From patchwork Wed Sep 10 16:37:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 4879201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C6FF3C0338 for ; Wed, 10 Sep 2014 16:40:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E1C62017A for ; Wed, 10 Sep 2014 16:40:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B7CF201B9 for ; Wed, 10 Sep 2014 16:40:12 +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 1XRkuQ-00006K-FV; Wed, 10 Sep 2014 16:38:18 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XRkuN-0008GM-8b for linux-arm-kernel@lists.infradead.org; Wed, 10 Sep 2014 16:38:16 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBP00E3D270TK70@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 11 Sep 2014 01:37:48 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-2d-54107e5b1ebe Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0B.38.04943.B5E70145; Thu, 11 Sep 2014 01:37:48 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBP00MR226PZG40@mmp2.samsung.com>; Thu, 11 Sep 2014 01:37:47 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Subject: [PATCH] ARM: dts: Specify default clocks for Exynos4 FIMC devices Date: Wed, 10 Sep 2014 18:37:34 +0200 Message-id: <1410367054-30926-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKJMWRmVeSWpSXmKPExsVy+t9jQd2YOoEQgz2n2Cx6F1xls9j0+Bqr xYzz+5gs1h65y25x+E07qwOrx+Yl9R59W1YxenzeJBfAHMVlk5Kak1mWWqRvl8CVMXfjQfaC 3dIVb1fNYG1gbBXrYuTgkBAwkZi3MLOLkRPIFJO4cG89WxcjF4eQwHRGia1777JAOB1MEu/O drCAVLEJGEr0Hu1jBLFFBCQlmhr+MIMUMQtMYZR4dvQsO0hCWMBL4m7bTXaQDSwCqhJN3dIg YV4BN4nbB16yQCxWkJgzyWYCI/cCRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMGefya1 g3Flg8UhRgEORiUeXoFa/hAh1sSy4srcQ4wSHMxKIrxNDgIhQrwpiZVVqUX58UWlOanFhxil OViUxHkPtFoHCgmkJ5akZqemFqQWwWSZODilGhh5p+3MPzjXrnR7N8exDTKf1rk1vZKZ4/iV 53t170NPnpOzuF7eqF/AMH/rvy0tmR/XvnPe8nVWc0Or10KBrycK2/mqNZV7G6c+42+re5Vh pvi/Y8qOw2XX9cy8HE3MToWrJ14TF756ZL2InEz1Vh0d9muau6yrDQTTyhXitdLfthRtC3g/ Y4cSS3FGoqEWc1FxIgAiGaT4+AEAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140910_093815_467918_AC174A2D X-CRM114-Status: UNSURE ( 7.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) Cc: linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-4.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 The default mux and divider clocks are specified in device tree so that the FIMC devices in Exynos4210 and Exynos4x12 SoCs are clocked from recommended clock source and with maximum supported frequency. If needed these settings could be overrode in board specific dts files, however they are in practice optimal in most cases. Signed-off-by: Sylwester Nawrocki --- arch/arm/boot/dts/exynos4210.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/exynos4x12.dtsi | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index 807bb5b..0969d2e 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -154,18 +154,30 @@ samsung,pix-limits = <4224 8192 1920 4224>; samsung,mainscaler-ext; samsung,cam-if; + assigned-clocks = <&clock CLK_MOUT_FIMC0>, + <&clock CLK_SCLK_FIMC0>; + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; + assigned-clock-rates = <0>, <160000000>; }; fimc_1: fimc@11810000 { samsung,pix-limits = <4224 8192 1920 4224>; samsung,mainscaler-ext; samsung,cam-if; + assigned-clocks = <&clock CLK_MOUT_FIMC1>, + <&clock CLK_SCLK_FIMC1>; + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; + assigned-clock-rates = <0>, <160000000>; }; fimc_2: fimc@11820000 { samsung,pix-limits = <4224 8192 1920 4224>; samsung,mainscaler-ext; samsung,lcd-wb; + assigned-clocks = <&clock CLK_MOUT_FIMC2>, + <&clock CLK_SCLK_FIMC2>; + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; + assigned-clock-rates = <0>, <160000000>; }; fimc_3: fimc@11830000 { @@ -173,6 +185,10 @@ samsung,rotators = <0>; samsung,mainscaler-ext; samsung,lcd-wb; + assigned-clocks = <&clock CLK_MOUT_FIMC3>, + <&clock CLK_SCLK_FIMC3>; + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; + assigned-clock-rates = <0>, <160000000>; }; }; }; diff --git a/arch/arm/boot/dts/exynos4x12.dtsi b/arch/arm/boot/dts/exynos4x12.dtsi index 861bb91..38ba14f 100644 --- a/arch/arm/boot/dts/exynos4x12.dtsi +++ b/arch/arm/boot/dts/exynos4x12.dtsi @@ -162,6 +162,10 @@ samsung,mainscaler-ext; samsung,isp-wb; samsung,cam-if; + assigned-clocks = <&clock CLK_MOUT_FIMC0>, + <&clock CLK_SCLK_FIMC0>; + assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; + assigned-clock-rates = <0>, <176000000>; }; fimc_1: fimc@11810000 { @@ -170,6 +174,10 @@ samsung,mainscaler-ext; samsung,isp-wb; samsung,cam-if; + assigned-clocks = <&clock CLK_MOUT_FIMC1>, + <&clock CLK_SCLK_FIMC1>; + assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; + assigned-clock-rates = <0>, <176000000>; }; fimc_2: fimc@11820000 { @@ -179,6 +187,10 @@ samsung,isp-wb; samsung,lcd-wb; samsung,cam-if; + assigned-clocks = <&clock CLK_MOUT_FIMC2>, + <&clock CLK_SCLK_FIMC2>; + assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; + assigned-clock-rates = <0>, <176000000>; }; fimc_3: fimc@11830000 { @@ -188,6 +200,10 @@ samsung,mainscaler-ext; samsung,isp-wb; samsung,lcd-wb; + assigned-clocks = <&clock CLK_MOUT_FIMC3>, + <&clock CLK_SCLK_FIMC3>; + assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>; + assigned-clock-rates = <0>, <176000000>; }; fimc_lite_0: fimc-lite@12390000 {