From patchwork Tue Mar 13 10:46:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10278159 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 66F556038F for ; Tue, 13 Mar 2018 10:46:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 574A328AF0 for ; Tue, 13 Mar 2018 10:46:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C07F28D28; Tue, 13 Mar 2018 10:46:29 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B49828D2F for ; Tue, 13 Mar 2018 10:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932577AbeCMKq0 (ORCPT ); Tue, 13 Mar 2018 06:46:26 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:39213 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932514AbeCMKqZ (ORCPT ); Tue, 13 Mar 2018 06:46:25 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180313104623euoutp01bf8535810590ffa77985aba6b4d2ef52~bdQmX2IaI2908229082euoutp01W; Tue, 13 Mar 2018 10:46:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180313104623euoutp01bf8535810590ffa77985aba6b4d2ef52~bdQmX2IaI2908229082euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520937983; bh=Lie1jBGr6tuM7oOSHms0uKnoeKScbeXKCXibk0ndFVM=; h=From:To:Cc:Subject:Date:References:From; b=cd8lInjJcgrUJMFTixnpEbmWqcHi52KaZrn5WUZ3mHYdeRadY3w3xJAHBOsVTEsM6 u9WjfHWBjqZT/S0dQIWYdNFbLTC8RiIiB7KE6uNMRPdz7WO7rtwzXMqSIC8tsBSxMS 4SuEjWyW+jaoxBjzOIGQ3+1+U6py00npIjkangCc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180313104622eucas1p1ae2639b67b283a739b553c5023061950~bdQlTwFV33073430734eucas1p1o; Tue, 13 Mar 2018 10:46:22 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 01.97.10409.DFBA7AA5; Tue, 13 Mar 2018 10:46:21 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180313104621eucas1p1905014d182b444b86605d07702e91533~bdQkjmrT02622726227eucas1p1G; Tue, 13 Mar 2018 10:46:21 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-66-5aa7abfd055a Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 92.54.04178.DFBA7AA5; Tue, 13 Mar 2018 10:46:21 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P5I0010SZ96J3D0@eusync4.samsung.com>; Tue, 13 Mar 2018 10:46:21 +0000 (GMT) From: Marek Szyprowski To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v2] clk: samsung: exynos5250: Add missing clocks for FIMC LITE SYSMMU devices Date: Tue, 13 Mar 2018 11:46:12 +0100 Message-id: <20180313104612.24257-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsWy7djP87p/Vy+PMrh/z9Bi44z1rBbXvzxn tTh/fgO7xceee6wWM87vY7JYe+Quu8XhN+2sDuwem1Z1snn0bVnF6PF5k1wAcxSXTUpqTmZZ apG+XQJXxvVNBgUrBSqOP7rB3sD4j7eLkZNDQsBEYtuKeWxdjFwcQgIrGCUOb7vPCuF8ZpRY cnMNM0zVhp6VUIlljBL/Z56Famlgknjwfw0rSBWbgKFE19suNhBbRMBB4vOn14wgRcwCTxkl Thx6zgSSEBaIl3gy9zYLiM0ioCpxYfo6sDivgK3E9u2dbBDr5CUWf98JtkFC4CGrxJ7ny1gh Ei4SCzc9Z4SwhSVeHd/CDmHLSHR2HGSCsOsl+r4fYYJo7mGU2NsyFSphLXH4+EWwQcwCfBKT tk0Heo4DKM4r0dEmBFHiIbH9wEao+Y4S63b1gdlCArESW3+1MU1glFzAyLCKUTy1tDg3PbXY OC+1XK84Mbe4NC9dLzk/dxMjMNpO/zv+dQfjvj9JhxgFOBiVeHgNmpdFCbEmlhVX5h5ilOBg VhLhNetZHiXEm5JYWZValB9fVJqTWnyIUZqDRUmcN06jLkpIID2xJDU7NbUgtQgmy8TBKdXA 6FZ2R5+7POxOQlupZoEXv/KeeQ5TgnSZzRd3TtlcFnyab/Iby1V7n1VOmpe8VztVo3v2shLt hLgVmZ8l+DrV+Fw3bNtuN9PMcXtG8+Ptj95GHWpTXrWn0OXX5zeXNlw4NMPp3Eb2Wedu1q/+ v2xaQspex85nNrItmRHPCjMT9moK5pdFTj3xRImlOCPRUIu5qDgRAII9F+CyAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t/xa7p/Vy+PMjixjMNi44z1rBbXvzxn tTh/fgO7xceee6wWM87vY7JYe+Quu8XhN+2sDuwem1Z1snn0bVnF6PF5k1wAcxSXTUpqTmZZ apG+XQJXxvVNBgUrBSqOP7rB3sD4j7eLkZNDQsBEYkPPStYuRi4OIYEljBIzzs5jg3CamCT2 T9zAAlLFJmAo0fW2iw3EFhFwkPj86TUjSBGzwFNGieNvpwIVcXAIC8RLHD6hDlLDIqAqcWH6 OiYQm1fAVmL79k42iG3yEou/72SbwMi1gJFhFaNIamlxbnpusaFecWJucWleul5yfu4mRqDf tx37uXkH46WNwYcYBTgYlXh4DZqXRQmxJpYVV+YeYpTgYFYS4TXrWR4lxJuSWFmVWpQfX1Sa k1p8iFGag0VJnPe8QWWUkEB6YklqdmpqQWoRTJaJg1OqgVFvmvk6ldaI+FuhF3VuCRXv9jzb 9OHnE3OfDVyNV7fknwi2rZRctEzd5+GG0p3JPaKlNZn882WXlJxU7oi+af58hT/7+xU/PR/x 5H5ZrW07ucbxtJq87MxttvvTt/iu07S2qBXWDJ3D33POZ+v3uwc9Vu66JD0vL/jup935a7sO mXv8nZ2uxaPEUpyRaKjFXFScCAClXQbx9wEAAA== X-CMS-MailID: 20180313104621eucas1p1905014d182b444b86605d07702e91533 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180313104621eucas1p1905014d182b444b86605d07702e91533 X-RootMTR: 20180313104621eucas1p1905014d182b444b86605d07702e91533 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP FIMC LITE SYSMMU devices are defined in exynos5250.dtsi, but clocks for them are not instantiated by Exynos5250 clock provider driver. Add needed definitions for those clocks to fix IOMMU probe failure: ERROR: could not get clock /soc/sysmmu@13c40000:sysmmu(0) exynos-sysmmu 13c40000.sysmmu: Failed to get device clock(s)! exynos-sysmmu: probe of 13c40000.sysmmu failed with error -38 ERROR: could not get clock /soc/sysmmu@13c50000:sysmmu(0) exynos-sysmmu 13c50000.sysmmu: Failed to get device clock(s)! exynos-sysmmu: probe of 13c50000.sysmmu failed with error -38 Signed-off-by: Marek Szyprowski Fixes: bfed1074f213 ("clk: exynos5250: Add missing sysmmu clocks for DISP and ISP blocks") Acked-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos5250.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index 06e5ddcb30db..347fd80c351b 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -561,6 +561,8 @@ static const struct samsung_gate_clock exynos5250_gate_clks[] __initconst = { 0), GATE(CLK_GSCL3, "gscl3", "mout_aclk266_gscl_sub", GATE_IP_GSCL, 3, 0, 0), + GATE(CLK_CAMIF_TOP, "camif_top", "mout_aclk266_gscl_sub", + GATE_IP_GSCL, 4, 0, 0), GATE(CLK_GSCL_WA, "gscl_wa", "div_gscl_wa", GATE_IP_GSCL, 5, 0, 0), GATE(CLK_GSCL_WB, "gscl_wb", "div_gscl_wb", GATE_IP_GSCL, 6, 0, 0), GATE(CLK_SMMU_GSCL0, "smmu_gscl0", "mout_aclk266_gscl_sub", @@ -571,6 +573,10 @@ static const struct samsung_gate_clock exynos5250_gate_clks[] __initconst = { GATE_IP_GSCL, 9, 0, 0), GATE(CLK_SMMU_GSCL3, "smmu_gscl3", "mout_aclk266_gscl_sub", GATE_IP_GSCL, 10, 0, 0), + GATE(CLK_SMMU_FIMC_LITE0, "smmu_fimc_lite0", "mout_aclk266_gscl_sub", + GATE_IP_GSCL, 11, 0, 0), + GATE(CLK_SMMU_FIMC_LITE1, "smmu_fimc_lite1", "mout_aclk266_gscl_sub", + GATE_IP_GSCL, 12, 0, 0), GATE(CLK_MFC, "mfc", "mout_aclk333_sub", GATE_IP_MFC, 0, 0, 0),