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: 82874 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp45392qge; Fri, 18 Nov 2016 04:23:55 -0800 (PST) X-Received: by 10.13.208.2 with SMTP id s2mr7128947ywd.250.1479471835068; Fri, 18 Nov 2016 04:23:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o185si1623308ywb.213.2016.11.18.04.23.54; Fri, 18 Nov 2016 04:23:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752833AbcKRMXy (ORCPT + 4 others); 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 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(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>;