Commit e3d30890 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Krzysztof Kozlowski

ARM: dts: exynos: Add Exynos4412 ISP clock controller

Exynos4412 ISP clock controller is located in the SOC area, which belongs
to ISP power domain. This patch instantiates a separate clock driver
for those clocks, updates all clients of ISP clocks and ensures that the
driver is properly integrated in ISP power domin.

This finally solves all the mysterious freezes in accessing ISP clocks
when ISP power domain is disabled.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 1842713c
...@@ -191,10 +191,19 @@ l2c: l2-cache-controller@10502000 { ...@@ -191,10 +191,19 @@ l2c: l2-cache-controller@10502000 {
clock: clock-controller@10030000 { clock: clock-controller@10030000 {
compatible = "samsung,exynos4412-clock"; compatible = "samsung,exynos4412-clock";
reg = <0x10030000 0x20000>; reg = <0x10030000 0x18000>;
#clock-cells = <1>; #clock-cells = <1>;
}; };
isp_clock: clock-controller@10048000 {
compatible = "samsung,exynos4412-isp-clock";
reg = <0x10048000 0x1000>;
#clock-cells = <1>;
power-domains = <&pd_isp>;
clocks = <&clock CLK_ACLK200>, <&clock CLK_ACLK400_MCUISP>;
clock-names = "aclk200", "aclk400_mcuisp";
};
mct@10050000 { mct@10050000 {
compatible = "samsung,exynos4412-mct"; compatible = "samsung,exynos4412-mct";
reg = <0x10050000 0x800>; reg = <0x10050000 0x800>;
...@@ -257,7 +266,7 @@ fimc_lite_0: fimc-lite@12390000 { ...@@ -257,7 +266,7 @@ fimc_lite_0: fimc-lite@12390000 {
reg = <0x12390000 0x1000>; reg = <0x12390000 0x1000>;
interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clocks = <&clock CLK_FIMC_LITE0>; clocks = <&isp_clock CLK_ISP_FIMC_LITE0>;
clock-names = "flite"; clock-names = "flite";
iommus = <&sysmmu_fimc_lite0>; iommus = <&sysmmu_fimc_lite0>;
status = "disabled"; status = "disabled";
...@@ -268,7 +277,7 @@ fimc_lite_1: fimc-lite@123A0000 { ...@@ -268,7 +277,7 @@ fimc_lite_1: fimc-lite@123A0000 {
reg = <0x123A0000 0x1000>; reg = <0x123A0000 0x1000>;
interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clocks = <&clock CLK_FIMC_LITE1>; clocks = <&isp_clock CLK_ISP_FIMC_LITE1>;
clock-names = "flite"; clock-names = "flite";
iommus = <&sysmmu_fimc_lite1>; iommus = <&sysmmu_fimc_lite1>;
status = "disabled"; status = "disabled";
...@@ -280,29 +289,35 @@ fimc_is: fimc-is@12000000 { ...@@ -280,29 +289,35 @@ fimc_is: fimc-is@12000000 {
interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clocks = <&clock CLK_FIMC_LITE0>, clocks = <&isp_clock CLK_ISP_FIMC_LITE0>,
<&clock CLK_FIMC_LITE1>, <&clock CLK_PPMUISPX>, <&isp_clock CLK_ISP_FIMC_LITE1>,
<&clock CLK_PPMUISPMX>, <&isp_clock CLK_ISP_PPMUISPX>,
<&isp_clock CLK_ISP_PPMUISPMX>,
<&isp_clock CLK_ISP_FIMC_ISP>,
<&isp_clock CLK_ISP_FIMC_DRC>,
<&isp_clock CLK_ISP_FIMC_FD>,
<&isp_clock CLK_ISP_MCUISP>,
<&isp_clock CLK_ISP_GICISP>,
<&isp_clock CLK_ISP_MCUCTL_ISP>,
<&isp_clock CLK_ISP_PWM_ISP>,
<&isp_clock CLK_ISP_DIV_ISP0>,
<&isp_clock CLK_ISP_DIV_ISP1>,
<&isp_clock CLK_ISP_DIV_MCUISP0>,
<&isp_clock CLK_ISP_DIV_MCUISP1>,
<&clock CLK_MOUT_MPLL_USER_T>, <&clock CLK_MOUT_MPLL_USER_T>,
<&clock CLK_FIMC_ISP>, <&clock CLK_FIMC_DRC>, <&clock CLK_ACLK200>,
<&clock CLK_FIMC_FD>, <&clock CLK_MCUISP>,
<&clock CLK_GICISP>, <&clock CLK_MCUCTL_ISP>,
<&clock CLK_PWM_ISP>,
<&clock CLK_DIV_ISP0>, <&clock CLK_DIV_ISP1>,
<&clock CLK_DIV_MCUISP0>,
<&clock CLK_DIV_MCUISP1>,
<&clock CLK_UART_ISP_SCLK>,
<&clock CLK_ACLK200>, <&clock CLK_DIV_ACLK200>,
<&clock CLK_ACLK400_MCUISP>, <&clock CLK_ACLK400_MCUISP>,
<&clock CLK_DIV_ACLK400_MCUISP>; <&clock CLK_DIV_ACLK200>,
<&clock CLK_DIV_ACLK400_MCUISP>,
<&clock CLK_UART_ISP_SCLK>;
clock-names = "lite0", "lite1", "ppmuispx", clock-names = "lite0", "lite1", "ppmuispx",
"ppmuispmx", "mpll", "isp", "ppmuispmx", "isp",
"drc", "fd", "mcuisp", "drc", "fd", "mcuisp",
"gicisp", "mcuctl_isp", "pwm_isp", "gicisp", "mcuctl_isp", "pwm_isp",
"ispdiv0", "ispdiv1", "mcuispdiv0", "ispdiv0", "ispdiv1", "mcuispdiv0",
"mcuispdiv1", "uart", "aclk200", "mcuispdiv1", "mpll", "aclk200",
"div_aclk200", "aclk400mcuisp", "aclk400mcuisp", "div_aclk200",
"div_aclk400mcuisp"; "div_aclk400mcuisp", "uart";
iommus = <&sysmmu_fimc_isp>, <&sysmmu_fimc_drc>, iommus = <&sysmmu_fimc_isp>, <&sysmmu_fimc_drc>,
<&sysmmu_fimc_fd>, <&sysmmu_fimc_mcuctl>; <&sysmmu_fimc_fd>, <&sysmmu_fimc_mcuctl>;
iommu-names = "isp", "drc", "fd", "mcuctl"; iommu-names = "isp", "drc", "fd", "mcuctl";
...@@ -318,7 +333,7 @@ pmu@10020000 { ...@@ -318,7 +333,7 @@ pmu@10020000 {
i2c1_isp: i2c-isp@12140000 { i2c1_isp: i2c-isp@12140000 {
compatible = "samsung,exynos4212-i2c-isp"; compatible = "samsung,exynos4212-i2c-isp";
reg = <0x12140000 0x100>; reg = <0x12140000 0x100>;
clocks = <&clock CLK_I2C1_ISP>; clocks = <&isp_clock CLK_ISP_I2C1_ISP>;
clock-names = "i2c_isp"; clock-names = "i2c_isp";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -355,7 +370,7 @@ sysmmu_fimc_isp: sysmmu@12260000 { ...@@ -355,7 +370,7 @@ sysmmu_fimc_isp: sysmmu@12260000 {
interrupts = <16 2>; interrupts = <16 2>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clock-names = "sysmmu"; clock-names = "sysmmu";
clocks = <&clock CLK_SMMU_ISP>; clocks = <&isp_clock CLK_ISP_SMMU_ISP>;
#iommu-cells = <0>; #iommu-cells = <0>;
}; };
...@@ -366,7 +381,7 @@ sysmmu_fimc_drc: sysmmu@12270000 { ...@@ -366,7 +381,7 @@ sysmmu_fimc_drc: sysmmu@12270000 {
interrupts = <16 3>; interrupts = <16 3>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clock-names = "sysmmu"; clock-names = "sysmmu";
clocks = <&clock CLK_SMMU_DRC>; clocks = <&isp_clock CLK_ISP_SMMU_DRC>;
#iommu-cells = <0>; #iommu-cells = <0>;
}; };
...@@ -377,7 +392,7 @@ sysmmu_fimc_fd: sysmmu@122A0000 { ...@@ -377,7 +392,7 @@ sysmmu_fimc_fd: sysmmu@122A0000 {
interrupts = <16 4>; interrupts = <16 4>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clock-names = "sysmmu"; clock-names = "sysmmu";
clocks = <&clock CLK_SMMU_FD>; clocks = <&isp_clock CLK_ISP_SMMU_FD>;
#iommu-cells = <0>; #iommu-cells = <0>;
}; };
...@@ -388,7 +403,7 @@ sysmmu_fimc_mcuctl: sysmmu@122B0000 { ...@@ -388,7 +403,7 @@ sysmmu_fimc_mcuctl: sysmmu@122B0000 {
interrupts = <16 5>; interrupts = <16 5>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clock-names = "sysmmu"; clock-names = "sysmmu";
clocks = <&clock CLK_SMMU_ISPCX>; clocks = <&isp_clock CLK_ISP_SMMU_ISPCX>;
#iommu-cells = <0>; #iommu-cells = <0>;
}; };
...@@ -399,7 +414,8 @@ sysmmu_fimc_lite0: sysmmu@123B0000 { ...@@ -399,7 +414,8 @@ sysmmu_fimc_lite0: sysmmu@123B0000 {
interrupts = <16 0>; interrupts = <16 0>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clock-names = "sysmmu", "master"; clock-names = "sysmmu", "master";
clocks = <&clock CLK_SMMU_LITE0>, <&clock CLK_FIMC_LITE0>; clocks = <&isp_clock CLK_ISP_SMMU_LITE0>,
<&isp_clock CLK_ISP_FIMC_LITE0>;
#iommu-cells = <0>; #iommu-cells = <0>;
}; };
...@@ -410,7 +426,8 @@ sysmmu_fimc_lite1: sysmmu@123C0000 { ...@@ -410,7 +426,8 @@ sysmmu_fimc_lite1: sysmmu@123C0000 {
interrupts = <16 1>; interrupts = <16 1>;
power-domains = <&pd_isp>; power-domains = <&pd_isp>;
clock-names = "sysmmu", "master"; clock-names = "sysmmu", "master";
clocks = <&clock CLK_SMMU_LITE1>, <&clock CLK_FIMC_LITE1>; clocks = <&isp_clock CLK_ISP_SMMU_LITE1>,
<&isp_clock CLK_ISP_FIMC_LITE1>;
#iommu-cells = <0>; #iommu-cells = <0>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment