arm64: dts: exynos: TM2 - add support for GScaler devices
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 18 Nov 2016 12:23:11 +0000 (13:23 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 18 Nov 2016 12:26:25 +0000 (14:26 +0200)
This patch adds device nodes for GScaler devices to Exynos5433 SoC dtsi
and proper initial clock configuration to TM2 dts.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
arch/arm64/boot/dts/exynos/exynos5433.dtsi

index 2569e4ab6f7e8bfc521c41f949fc06f7babf8c02..8eb59adc2bc486e840b4e7f5c02e33d2d143d34f 100644 (file)
@@ -23,6 +23,9 @@
        compatible = "samsung,tm2", "samsung,exynos5433";
 
        aliases {
+               gsc0 = &gsc_0;
+               gsc1 = &gsc_1;
+               gsc2 = &gsc_2;
                pinctrl0 = &pinctrl_alive;
                pinctrl1 = &pinctrl_aud;
                pinctrl2 = &pinctrl_cpif;
                               <66700000>, <66700000>;
 };
 
+&cmu_gscl {
+       assigned-clocks = <&cmu_gscl CLK_MOUT_ACLK_GSCL_111_USER>,
+                         <&cmu_gscl CLK_MOUT_ACLK_GSCL_333_USER>;
+       assigned-clock-parents = <&cmu_top CLK_ACLK_GSCL_111>,
+                                <&cmu_top CLK_ACLK_GSCL_333>;
+};
+
 &cpu0 {
        cpu-supply = <&buck3_reg>;
 };
index 7d718272caf61aaffb258e74481f002184856677..945b2502a4caed3e5967475a42ac888fd73dff6e 100644 (file)
                        reg = <0x145f0000 0x1038>;
                };
 
+               gsc_0: video-scaler@13C00000 {
+                       compatible = "samsung,exynos5433-gsc";
+                       reg = <0x13c00000 0x1000>;
+                       interrupts = <GIC_SPI 297 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "pclk", "aclk", "aclk_xiu",
+                                     "aclk_gsclbend";
+                       clocks = <&cmu_gscl CLK_PCLK_GSCL0>,
+                                <&cmu_gscl CLK_ACLK_GSCL0>,
+                                <&cmu_gscl CLK_ACLK_XIU_GSCLX>,
+                                <&cmu_gscl CLK_ACLK_GSCLBEND_333>;
+                       iommus = <&sysmmu_gscl0>;
+               };
+
+               gsc_1: video-scaler@13C10000 {
+                       compatible = "samsung,exynos5433-gsc";
+                       reg = <0x13c10000 0x1000>;
+                       interrupts = <GIC_SPI 298 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "pclk", "aclk", "aclk_xiu",
+                                     "aclk_gsclbend";
+                       clocks = <&cmu_gscl CLK_PCLK_GSCL1>,
+                                <&cmu_gscl CLK_ACLK_GSCL1>,
+                                <&cmu_gscl CLK_ACLK_XIU_GSCLX>,
+                                <&cmu_gscl CLK_ACLK_GSCLBEND_333>;
+                       iommus = <&sysmmu_gscl1>;
+               };
+
+               gsc_2: video-scaler@13C20000 {
+                       compatible = "samsung,exynos5433-gsc";
+                       reg = <0x13c20000 0x1000>;
+                       interrupts = <GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "pclk", "aclk", "aclk_xiu",
+                                     "aclk_gsclbend";
+                       clocks = <&cmu_gscl CLK_PCLK_GSCL2>,
+                                <&cmu_gscl CLK_ACLK_GSCL2>,
+                                <&cmu_gscl CLK_ACLK_XIU_GSCLX>,
+                                <&cmu_gscl CLK_ACLK_GSCLBEND_333>;
+                       iommus = <&sysmmu_gscl2>;
+               };
+
                sysmmu_decon0x: sysmmu@0x13a00000 {
                        compatible = "samsung,exynos-sysmmu";
                        reg = <0x13a00000 0x1000>;
                        #iommu-cells = <0>;
                };
 
+               sysmmu_gscl0: sysmmu@0x13C80000 {
+                       compatible = "samsung,exynos-sysmmu";
+                       reg = <0x13C80000 0x1000>;
+                       interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "aclk", "pclk";
+                       clocks = <&cmu_gscl CLK_ACLK_SMMU_GSCL0>,
+                                <&cmu_gscl CLK_PCLK_SMMU_GSCL0>;
+                       #iommu-cells = <0>;
+               };
+
+               sysmmu_gscl1: sysmmu@0x13C90000 {
+                       compatible = "samsung,exynos-sysmmu";
+                       reg = <0x13C90000 0x1000>;
+                       interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "aclk", "pclk";
+                       clocks = <&cmu_gscl CLK_ACLK_SMMU_GSCL1>,
+                                <&cmu_gscl CLK_PCLK_SMMU_GSCL1>;
+                       #iommu-cells = <0>;
+               };
+
+               sysmmu_gscl2: sysmmu@0x13CA0000 {
+                       compatible = "samsung,exynos-sysmmu";
+                       reg = <0x13CA0000 0x1000>;
+                       interrupts = <GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "aclk", "pclk";
+                       clocks = <&cmu_gscl CLK_ACLK_SMMU_GSCL2>,
+                                <&cmu_gscl CLK_PCLK_SMMU_GSCL2>;
+                       #iommu-cells = <0>;
+               };
+
                serial_0: serial@14c10000 {
                        compatible = "samsung,exynos5433-uart";
                        reg = <0x14c10000 0x100>;