From patchwork Fri Nov 18 12:23:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9436363 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 5A9606047D for ; Fri, 18 Nov 2016 12:23:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60F4229883 for ; Fri, 18 Nov 2016 12:23:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55E112989D; Fri, 18 Nov 2016 12:23:55 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham 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 002AB29883 for ; Fri, 18 Nov 2016 12:23:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752833AbcKRMXy (ORCPT ); Fri, 18 Nov 2016 07:23:54 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:37114 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbcKRMXx (ORCPT ); Fri, 18 Nov 2016 07:23:53 -0500 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGU030727RNEX80@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 18 Nov 2016 21:23:50 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-33-582ef2d54771 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id E6.AB.16530.5D2FE285; Fri, 18 Nov 2016 21:23:50 +0900 (KST) Received: from AMDC2765.digital.local ([106.116.147.25]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGU00EIW7QV1S10@mmp2.samsung.com>; Fri, 18 Nov 2016 21:23:49 +0900 (KST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Chanwoo Choi Subject: [PATCH v2 RESEND 3/3] arm64: dts: exynos: TM2 - add support for MFC video codec device Date: Fri, 18 Nov 2016 13:23:13 +0100 Message-id: <1479471793-13021-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1479471793-13021-1-git-send-email-m.szyprowski@samsung.com> References: <1479471793-13021-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsVy+t9jQd1rn/QiDJZfZLLYOGM9q8X1L89Z Lc6f38BuMeP8PiaLtUfuslscftPOajFj8ks2B3aPTas62Tz6tqxi9Pi8SS6AOcrNJiM1MSW1 SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEsMacUyDMyQAMOzgHuwUr6dgluGedW z2IpmC5SMfPwc/YGxhMCXYycHBICJhLb97xhhLDFJC7cW8/WxcjFISQwi1Hi8N77LBDOL0aJ hVeuMoFUsQkYSnS97WIDsUUEVCU+ty1gByliFuhnkjgzewvQKA4OYYFEia6HlSA1LEA1Z+5/ ANvAK+Ahse/SDVaIbXISJ49NBrM5BTwl9uzdB1YjBFSz+UI/8wRG3gWMDKsYJVILkguKk9Jz jfJSy/WKE3OLS/PS9ZLzczcxggP4mfQOxsO73A8xCnAwKvHwdjDoRQixJpYVV+YeYpTgYFYS 4V3+ASjEm5JYWZValB9fVJqTWnyI0RTosInMUqLJ+cDoyiuJNzQxNzE3NrAwt7Q0MVIS522c /SxcSCA9sSQ1OzW1ILUIpo+Jg1OqgVFWS+rdOqO7eftnrzy62ETx7a2fk18fWyl4NvTP7dQv W2w7hD913Wj6HHCote7+EysJhc1c33y75c9+uynQ+tasN/a7/9H2G7caWG7c+LO3V+6QjIHW 0lNXr8drmkqI3rWSeOtesjw6Wj9+rnbjhdNKK74kPTO7seeGA8ffigaNtXXpW/uilt1WYinO SDTUYi4qTgQAJGDYrnYCAAA= X-MTR: 20000000000000000@CPGS 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 This patch adds device nodes for MFC video codec device to Exynos5433 SoC dtsi and proper initial clock configuration to TM2 dts. Signed-off-by: Marek Szyprowski --- arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 5 +++++ arch/arm64/boot/dts/exynos/exynos5433.dtsi | 32 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index 6f506dd..ce41781 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -196,6 +196,11 @@ <&cmu_top CLK_ACLK_GSCL_333>; }; +&cmu_mfc { + assigned-clocks = <&cmu_mfc CLK_MOUT_ACLK_MFC_400_USER>; + assigned-clock-parents = <&cmu_top CLK_ACLK_MFC_400>; +}; + &cmu_mscl { assigned-clocks = <&cmu_mscl CLK_MOUT_ACLK_MSCL_400_USER>, <&cmu_mscl CLK_MOUT_SCLK_JPEG_USER>, diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 1d47480..64226d5 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -856,6 +856,18 @@ iommus = <&sysmmu_jpeg>; }; + mfc: codec@152E0000 { + compatible = "samsung,exynos5433-mfc"; + reg = <0x152E0000 0x10000>; + interrupts = ; + clock-names = "pclk", "aclk", "aclk_xiu"; + clocks = <&cmu_mfc CLK_PCLK_MFC>, + <&cmu_mfc CLK_ACLK_MFC>, + <&cmu_mfc CLK_ACLK_XIU_MFCX>; + iommus = <&sysmmu_mfc_0>, <&sysmmu_mfc_1>; + iommu-names = "left", "right"; + }; + sysmmu_decon0x: sysmmu@0x13a00000 { compatible = "samsung,exynos-sysmmu"; reg = <0x13a00000 0x1000>; @@ -916,6 +928,26 @@ #iommu-cells = <0>; }; + sysmmu_mfc_0: sysmmu@0x15200000 { + compatible = "samsung,exynos-sysmmu"; + reg = <0x15200000 0x1000>; + interrupts = ; + clock-names = "pclk", "aclk"; + clocks = <&cmu_mfc CLK_PCLK_SMMU_MFC_0>, + <&cmu_mfc CLK_ACLK_SMMU_MFC_0>; + #iommu-cells = <0>; + }; + + sysmmu_mfc_1: sysmmu@0x15210000 { + compatible = "samsung,exynos-sysmmu"; + reg = <0x15210000 0x1000>; + interrupts = ; + clock-names = "pclk", "aclk"; + clocks = <&cmu_mfc CLK_PCLK_SMMU_MFC_1>, + <&cmu_mfc CLK_ACLK_SMMU_MFC_1>; + #iommu-cells = <0>; + }; + serial_0: serial@14c10000 { compatible = "samsung,exynos5433-uart"; reg = <0x14c10000 0x100>;