* [PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board @ 2016-12-08 4:58 Chanwoo Choi 2016-12-08 4:58 ` [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical Chanwoo Choi ` (4 more replies) 0 siblings, 5 replies; 16+ messages in thread From: Chanwoo Choi @ 2016-12-08 4:58 UTC (permalink / raw) To: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa Cc: cw00.choi, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel This patches add the AMBA bus Device-tree node unsing VDD_INT to enable the bus frequency scaling on Exynos5433-based TM2 board. There are two kind of bus device with devfreq framework. - Parent bus device : Change the frequency/voltage according to bus's utilization. - Passive bus device : Change only frequency according to the new level of parent bus device. The VDD_INT regulator provides the power source to INT (Internal) block as following. The sub-blocks in the INT block share the one power source. VDD_INT |--- G2D_400 (parent device) |--- G2D_266 |--- GSCL |--- JPEG |--- HEVC |--- MFC |--- MSCL |--- NoC0 |--- NoC1 |--- NoC2 |--- PERIS (Fixed clock rate) |--- PERIC (Fixed clock rate) |--- FSYS (Fixed clock rate) Each sub-block has the bus clock as following: - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Effective Video Codec) - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP Changes from v1: - Remove duplicate description of exynos5433-bus.dtsi - Move the bus device-tree node under the 'soc' - Modify the node name of bus from 'bus_xxx_xxx' to 'bus[number]' - Reorder the bus device-tree node alpabetically - Change the node name from 'bus_busX' to 'bus_nocX' - Fix minor issue - Add reviewed-by tag of Krzysztof Kozlowski for patch3/5 Chanwoo Choi (5): clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical PM / devfreq: exynos-bus: Add the detailed correlation for Exynos5433 arm64: dts: exynos5433: Add PPMU dt node arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 .../devicetree/bindings/devfreq/exynos-bus.txt | 15 ++ arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 70 ++++++++ arch/arm64/boot/dts/exynos/exynos5433.dtsi | 25 +++ drivers/clk/samsung/clk-exynos5433.c | 8 +- 5 files changed, 311 insertions(+), 4 deletions(-) create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi -- 1.9.1 ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical 2016-12-08 4:58 [PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board Chanwoo Choi @ 2016-12-08 4:58 ` Chanwoo Choi 2016-12-15 4:33 ` Chanwoo Choi [not found] ` <1481173091-9728-1-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> ` (3 subsequent siblings) 4 siblings, 1 reply; 16+ messages in thread From: Chanwoo Choi @ 2016-12-08 4:58 UTC (permalink / raw) To: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa Cc: cw00.choi, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel, Michael Turquette, Stephen Boyd The ACLK_BUS0/1/2 are used for NoC (Network on Chip). If NoC's clocks are disabled, the system halt happen. Following clock must be always enabled. - CLK_ACLK_BUS0_400 : NoC's bus clock for PERIC/PERIS/FSYS/MSCL - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP Also, this patch adds the CLK_SET_RATE_PARENT flag to the CLK_SCLK_JPEG_MSCL because this clock should be used for bus frequency scaling. This clock need to be changed on the fly with CLK_SET_RATE_PARENT flag. Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Chanwoo Choi <cw00.choi@samsung.com> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc:linux-clk@vger.kernel.org Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- drivers/clk/samsung/clk-exynos5433.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index f096bd7df40c..0db5204c307c 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -549,10 +549,10 @@ 29, CLK_IGNORE_UNUSED, 0), GATE(CLK_ACLK_BUS0_400, "aclk_bus0_400", "div_aclk_bus0_400", ENABLE_ACLK_TOP, 26, - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), + CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), GATE(CLK_ACLK_BUS1_400, "aclk_bus1_400", "div_aclk_bus1_400", ENABLE_ACLK_TOP, 25, - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), + CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), GATE(CLK_ACLK_IMEM_200, "aclk_imem_200", "div_aclk_imem_266", ENABLE_ACLK_TOP, 24, CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), @@ -616,7 +616,7 @@ /* ENABLE_SCLK_TOP_MSCL */ GATE(CLK_SCLK_JPEG_MSCL, "sclk_jpeg_mscl", "div_sclk_jpeg", - ENABLE_SCLK_TOP_MSCL, 0, 0, 0), + ENABLE_SCLK_TOP_MSCL, 0, CLK_SET_RATE_PARENT, 0), /* ENABLE_SCLK_TOP_CAM1 */ GATE(CLK_SCLK_ISP_SENSOR2, "sclk_isp_sensor2", "div_sclk_isp_sensor2_b", @@ -1382,7 +1382,7 @@ static void __init exynos5433_cmu_cpif_init(struct device_node *np) /* ENABLE_ACLK_MIF3 */ GATE(CLK_ACLK_BUS2_400, "aclk_bus2_400", "div_aclk_bus2_400", ENABLE_ACLK_MIF3, 4, - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), + CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), GATE(CLK_ACLK_DISP_333, "aclk_disp_333", "div_aclk_disp_333", ENABLE_ACLK_MIF3, 1, CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), -- 1.9.1 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical 2016-12-08 4:58 ` [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical Chanwoo Choi @ 2016-12-15 4:33 ` Chanwoo Choi [not found] ` <58521D0F.5040704-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 16+ messages in thread From: Chanwoo Choi @ 2016-12-15 4:33 UTC (permalink / raw) To: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa Cc: myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel, Michael Turquette, Stephen Boyd Dear Sylwester, Could you please review this patch? -- Regards, Chanwoo Choi On 2016년 12월 08일 13:58, Chanwoo Choi wrote: > The ACLK_BUS0/1/2 are used for NoC (Network on Chip). If NoC's clocks are > disabled, the system halt happen. Following clock must be always enabled. > - CLK_ACLK_BUS0_400 : NoC's bus clock for PERIC/PERIS/FSYS/MSCL > - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D > - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP > > Also, this patch adds the CLK_SET_RATE_PARENT flag to the CLK_SCLK_JPEG_MSCL > because this clock should be used for bus frequency scaling. This clock need to > be changed on the fly with CLK_SET_RATE_PARENT flag. > > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> > Cc: Tomasz Figa <tomasz.figa@gmail.com> > Cc: Chanwoo Choi <cw00.choi@samsung.com> > Cc: Michael Turquette <mturquette@baylibre.com> > Cc: Stephen Boyd <sboyd@codeaurora.org> > Cc:linux-clk@vger.kernel.org > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > --- > drivers/clk/samsung/clk-exynos5433.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c > index f096bd7df40c..0db5204c307c 100644 > --- a/drivers/clk/samsung/clk-exynos5433.c > +++ b/drivers/clk/samsung/clk-exynos5433.c > @@ -549,10 +549,10 @@ > 29, CLK_IGNORE_UNUSED, 0), > GATE(CLK_ACLK_BUS0_400, "aclk_bus0_400", "div_aclk_bus0_400", > ENABLE_ACLK_TOP, 26, > - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), > + CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), > GATE(CLK_ACLK_BUS1_400, "aclk_bus1_400", "div_aclk_bus1_400", > ENABLE_ACLK_TOP, 25, > - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), > + CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), > GATE(CLK_ACLK_IMEM_200, "aclk_imem_200", "div_aclk_imem_266", > ENABLE_ACLK_TOP, 24, > CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), > @@ -616,7 +616,7 @@ > > /* ENABLE_SCLK_TOP_MSCL */ > GATE(CLK_SCLK_JPEG_MSCL, "sclk_jpeg_mscl", "div_sclk_jpeg", > - ENABLE_SCLK_TOP_MSCL, 0, 0, 0), > + ENABLE_SCLK_TOP_MSCL, 0, CLK_SET_RATE_PARENT, 0), > > /* ENABLE_SCLK_TOP_CAM1 */ > GATE(CLK_SCLK_ISP_SENSOR2, "sclk_isp_sensor2", "div_sclk_isp_sensor2_b", > @@ -1382,7 +1382,7 @@ static void __init exynos5433_cmu_cpif_init(struct device_node *np) > /* ENABLE_ACLK_MIF3 */ > GATE(CLK_ACLK_BUS2_400, "aclk_bus2_400", "div_aclk_bus2_400", > ENABLE_ACLK_MIF3, 4, > - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), > + CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), > GATE(CLK_ACLK_DISP_333, "aclk_disp_333", "div_aclk_disp_333", > ENABLE_ACLK_MIF3, 1, > CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, 0), > ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <58521D0F.5040704-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical [not found] ` <58521D0F.5040704-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-12-20 10:47 ` Sylwester Nawrocki 2016-12-29 15:16 ` Sylwester Nawrocki 0 siblings, 1 reply; 16+ messages in thread From: Sylwester Nawrocki @ 2016-12-20 10:47 UTC (permalink / raw) To: Chanwoo Choi Cc: krzk-DgEjT+Ai2ygdnm+yROfE0A, javier-JPH+aEBZ4P+UEJcrhfAQsw, kgene-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w, myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ, kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Michael Turquette, Stephen Boyd On 12/15/2016 05:33 AM, Chanwoo Choi wrote: > Could you please review this patch? Chanwoo, the patch looks good to me, I'm going to queue it after v4.10-rc1 is released. -- Thanks, Sylwester -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical 2016-12-20 10:47 ` Sylwester Nawrocki @ 2016-12-29 15:16 ` Sylwester Nawrocki 0 siblings, 0 replies; 16+ messages in thread From: Sylwester Nawrocki @ 2016-12-29 15:16 UTC (permalink / raw) To: Chanwoo Choi Cc: krzk, javier, kgene, tomasz.figa, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, Michael Turquette, Stephen Boyd On 12/20/2016 11:47 AM, Sylwester Nawrocki wrote: > On 12/15/2016 05:33 AM, Chanwoo Choi wrote: >> Could you please review this patch? > > Chanwoo, the patch looks good to me, I'm going to queue it after > v4.10-rc1 is released. Applied, thanks. ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <1481173091-9728-1-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* [PATCH v2 2/5] PM / devfreq: exynos-bus: Add the detailed correlation for Exynos5433 [not found] ` <1481173091-9728-1-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-12-08 4:58 ` Chanwoo Choi 0 siblings, 0 replies; 16+ messages in thread From: Chanwoo Choi @ 2016-12-08 4:58 UTC (permalink / raw) To: krzk-DgEjT+Ai2ygdnm+yROfE0A, javier-JPH+aEBZ4P+UEJcrhfAQsw, kgene-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ, tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w Cc: cw00.choi-Sze3O3UU22JBDgjK7y7TUQ, myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ, kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA This patch adds the detailed corrleation between sub-blocks and VDD_INT power line for Exynos5433. VDD_INT provided the power source to INT (Internal) block. Cc: MyungJoo Ham <myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Cc: Kyungmin Park <kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Signed-off-by: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> --- Documentation/devicetree/bindings/devfreq/exynos-bus.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/devfreq/exynos-bus.txt b/Documentation/devicetree/bindings/devfreq/exynos-bus.txt index d3ec8e676b6b..d6107770face 100644 --- a/Documentation/devicetree/bindings/devfreq/exynos-bus.txt +++ b/Documentation/devicetree/bindings/devfreq/exynos-bus.txt @@ -123,6 +123,21 @@ Detailed correlation between sub-blocks and power line according to Exynos SoC: |--- FSYS |--- FSYS2 +- In case of Exynos5433, there is VDD_INT power line as following: + VDD_INT |--- G2D_400 (parent device) + |--- G2D_266 + |--- GSCL + |--- JPEG + |--- HEVC + |--- MFC + |--- MSCL + |--- NoC0 + |--- NoC1 + |--- NoC2 + |--- PERIS (Fixed clock rate) + |--- PERIC (Fixed clock rate) + |--- FSYS (Fixed clock rate) + Example1: Show the AXI buses of Exynos3250 SoC. Exynos3250 divides the buses to power line (regulator). The MIF (Memory Interface) AXI bus is used to -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH v2 3/5] arm64: dts: exynos5433: Add PPMU dt node 2016-12-08 4:58 [PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board Chanwoo Choi 2016-12-08 4:58 ` [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical Chanwoo Choi [not found] ` <1481173091-9728-1-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-12-08 4:58 ` Chanwoo Choi [not found] ` <1481173091-9728-4-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-12-08 4:58 ` [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 Chanwoo Choi 2016-12-08 4:58 ` [PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 Chanwoo Choi 4 siblings, 1 reply; 16+ messages in thread From: Chanwoo Choi @ 2016-12-08 4:58 UTC (permalink / raw) To: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa Cc: cw00.choi, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel This patch adds PPMU (Platform Performance Monitoring Unit) Device-tree node to measure the utilization of each IP in Exynos SoC. - PPMU_D{0|1}_CPU are used to measure the utilization of MIF (Memory Interface) block with VDD_MIF power source. - PPMU_D{0|1}_GENERAL are used to measure the utilization of INT(Internal) block with VDD_INT power source. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 64226d5ae471..8c4ee84d5232 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -599,6 +599,30 @@ clock-names = "fin_pll", "mct"; }; + ppmu_d0_cpu: ppmu@10480000 { + compatible = "samsung,exynos-ppmu-v2"; + reg = <0x10480000 0x2000>; + status = "disabled"; + }; + + ppmu_d0_general: ppmu@10490000 { + compatible = "samsung,exynos-ppmu-v2"; + reg = <0x10490000 0x2000>; + status = "disabled"; + }; + + ppmu_d1_cpu: ppmu@104b0000 { + compatible = "samsung,exynos-ppmu-v2"; + reg = <0x104b0000 0x2000>; + status = "disabled"; + }; + + ppmu_d1_general: ppmu@104c0000 { + compatible = "samsung,exynos-ppmu-v2"; + reg = <0x104c0000 0x2000>; + status = "disabled"; + }; + pinctrl_alive: pinctrl@10580000 { compatible = "samsung,exynos5433-pinctrl"; reg = <0x10580000 0x1a20>, <0x11090000 0x100>; -- 1.9.1 ^ permalink raw reply related [flat|nested] 16+ messages in thread
[parent not found: <1481173091-9728-4-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v2 3/5] arm64: dts: exynos5433: Add PPMU dt node [not found] ` <1481173091-9728-4-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2017-01-02 18:33 ` Krzysztof Kozlowski 0 siblings, 0 replies; 16+ messages in thread From: Krzysztof Kozlowski @ 2017-01-02 18:33 UTC (permalink / raw) To: Chanwoo Choi Cc: krzk-DgEjT+Ai2ygdnm+yROfE0A, javier-JPH+aEBZ4P+UEJcrhfAQsw, kgene-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ, tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w, myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ, kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA On Thu, Dec 08, 2016 at 01:58:09PM +0900, Chanwoo Choi wrote: > This patch adds PPMU (Platform Performance Monitoring Unit) Device-tree node > to measure the utilization of each IP in Exynos SoC. > > - PPMU_D{0|1}_CPU are used to measure the utilization of MIF (Memory Interface) > block with VDD_MIF power source. > - PPMU_D{0|1}_GENERAL are used to measure the utilization of INT(Internal) > block with VDD_INT power source. > > Signed-off-by: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Reviewed-by: Krzysztof Kozlowski <krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > --- > arch/arm64/boot/dts/exynos/exynos5433.dtsi | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > Thanks, applied. Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 2016-12-08 4:58 [PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board Chanwoo Choi ` (2 preceding siblings ...) 2016-12-08 4:58 ` [PATCH v2 3/5] arm64: dts: exynos5433: Add PPMU dt node Chanwoo Choi @ 2016-12-08 4:58 ` Chanwoo Choi 2016-12-08 17:52 ` Krzysztof Kozlowski 2017-01-02 18:35 ` Krzysztof Kozlowski 2016-12-08 4:58 ` [PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 Chanwoo Choi 4 siblings, 2 replies; 16+ messages in thread From: Chanwoo Choi @ 2016-12-08 4:58 UTC (permalink / raw) To: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa Cc: cw00.choi, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. Exynos5433 has the following AMBA AXI buses to translate data between DRAM and sub-blocks. Following list specify the detailed correlation between sub-block and clock: - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Efficient Video Codec) - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + 2 files changed, 198 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi diff --git a/arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi new file mode 100644 index 000000000000..09dac0124f73 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi @@ -0,0 +1,197 @@ +/* + * Samsung's Exynos5433 SoC Memory interface and AMBA bus device tree source + * + * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Chanwoo Choi <cw00.choi@samsung.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +&soc { + bus_g2d_400: bus0 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_G2D_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_g2d_400_opp_table>; + status ="disabled"; + }; + + bus_g2d_266: bus1 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_G2D_266>; + clock-names = "bus"; + operating-points-v2 = <&bus_g2d_266_opp_table>; + status ="disabled"; + }; + + bus_gscl: bus2 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_GSCL_333>; + clock-names = "bus"; + operating-points-v2 = <&bus_gscl_opp_table>; + status ="disabled"; + }; + + bus_hevc: bus3 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_HEVC_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_hevc_opp_table>; + status ="disabled"; + }; + + bus_jpeg: bus4 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_SCLK_JPEG_MSCL>; + clock-names = "bus"; + operating-points-v2 = <&bus_g2d_400_opp_table>; + status ="disabled"; + }; + + bus_mfc: bus5 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_MFC_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_g2d_400_opp_table>; + status ="disabled"; + }; + + bus_mscl: bus6 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_MSCL_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_g2d_400_opp_table>; + status ="disabled"; + }; + + bus_noc0: bus7 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_BUS0_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_hevc_opp_table>; + status ="disabled"; + }; + + bus_noc1: bus8 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_top CLK_ACLK_BUS1_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_hevc_opp_table>; + status ="disabled"; + }; + + bus_noc2: bus9 { + compatible = "samsung,exynos-bus"; + clocks = <&cmu_mif CLK_ACLK_BUS2_400>; + clock-names = "bus"; + operating-points-v2 = <&bus_noc2_opp_table>; + status ="disabled"; + }; + + bus_g2d_400_opp_table: opp_table2 { + compatible = "operating-points-v2"; + opp-shared; + + opp@400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <1075000>; + }; + opp@267000000 { + opp-hz = /bits/ 64 <267000000>; + opp-microvolt = <1000000>; + }; + opp@200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <975000>; + }; + opp@160000000 { + opp-hz = /bits/ 64 <160000000>; + opp-microvolt = <962500>; + }; + opp@134000000 { + opp-hz = /bits/ 64 <134000000>; + opp-microvolt = <950000>; + }; + opp@100000000 { + opp-hz = /bits/ 64 <100000000>; + opp-microvolt = <937500>; + }; + }; + + bus_g2d_266_opp_table: opp_table3 { + compatible = "operating-points-v2"; + + opp@267000000 { + opp-hz = /bits/ 64 <267000000>; + }; + opp@200000000 { + opp-hz = /bits/ 64 <200000000>; + }; + opp@160000000 { + opp-hz = /bits/ 64 <160000000>; + }; + opp@134000000 { + opp-hz = /bits/ 64 <134000000>; + }; + opp@100000000 { + opp-hz = /bits/ 64 <100000000>; + }; + }; + + bus_gscl_opp_table: opp_table4 { + compatible = "operating-points-v2"; + + opp@333000000 { + opp-hz = /bits/ 64 <333000000>; + }; + opp@222000000 { + opp-hz = /bits/ 64 <222000000>; + }; + opp@166500000 { + opp-hz = /bits/ 64 <166500000>; + }; + }; + + bus_hevc_opp_table: opp_table5 { + compatible = "operating-points-v2"; + opp-shared; + + opp@400000000 { + opp-hz = /bits/ 64 <400000000>; + }; + opp@267000000 { + opp-hz = /bits/ 64 <267000000>; + }; + opp@200000000 { + opp-hz = /bits/ 64 <200000000>; + }; + opp@160000000 { + opp-hz = /bits/ 64 <160000000>; + }; + opp@134000000 { + opp-hz = /bits/ 64 <134000000>; + }; + opp@100000000 { + opp-hz = /bits/ 64 <100000000>; + }; + }; + + bus_noc2_opp_table: opp_table6 { + compatible = "operating-points-v2"; + + opp@400000000 { + opp-hz = /bits/ 64 <400000000>; + }; + opp@200000000 { + opp-hz = /bits/ 64 <200000000>; + }; + opp@134000000 { + opp-hz = /bits/ 64 <134000000>; + }; + opp@100000000 { + opp-hz = /bits/ 64 <100000000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 8c4ee84d5232..68f764e5851c 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -1482,5 +1482,6 @@ }; }; +#include "exynos5433-bus.dtsi" #include "exynos5433-pinctrl.dtsi" #include "exynos5433-tmu.dtsi" -- 1.9.1 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 2016-12-08 4:58 ` [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 Chanwoo Choi @ 2016-12-08 17:52 ` Krzysztof Kozlowski 2016-12-30 0:59 ` Chanwoo Choi 2017-01-02 18:35 ` Krzysztof Kozlowski 1 sibling, 1 reply; 16+ messages in thread From: Krzysztof Kozlowski @ 2016-12-08 17:52 UTC (permalink / raw) To: Chanwoo Choi Cc: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel On Thu, Dec 08, 2016 at 01:58:10PM +0900, Chanwoo Choi wrote: > This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. > Exynos5433 has the following AMBA AXI buses to translate data > between DRAM and sub-blocks. > > Following list specify the detailed correlation between sub-block and clock: > - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) > - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) > - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) > - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG > - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) > - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Efficient Video Codec) > - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL > - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D > - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > --- > arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++++++ > arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + > 2 files changed, 198 insertions(+) > create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi For the reference: Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> I'll queue it for v4.11, after this merge window. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 2016-12-08 17:52 ` Krzysztof Kozlowski @ 2016-12-30 0:59 ` Chanwoo Choi 2016-12-30 14:51 ` Krzysztof Kozlowski 0 siblings, 1 reply; 16+ messages in thread From: Chanwoo Choi @ 2016-12-30 0:59 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: javier-JPH+aEBZ4P+UEJcrhfAQsw, kgene-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ, tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w, myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ, kyungmin.park-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi Krzysztof, On 2016년 12월 09일 02:52, Krzysztof Kozlowski wrote: > On Thu, Dec 08, 2016 at 01:58:10PM +0900, Chanwoo Choi wrote: >> This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. >> Exynos5433 has the following AMBA AXI buses to translate data >> between DRAM and sub-blocks. >> >> Following list specify the detailed correlation between sub-block and clock: >> - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) >> - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) >> - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) >> - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG >> - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) >> - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Efficient Video Codec) >> - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL >> - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D >> - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP >> >> Signed-off-by: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >> --- >> arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++++++ >> arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + >> 2 files changed, 198 insertions(+) >> create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi > > For the reference: > Reviewed-by: Krzysztof Kozlowski <krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > > I'll queue it for v4.11, after this merge window. Could you please pick this patch3/4/5? These patches were already reviewed by you. -- Regards, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 2016-12-30 0:59 ` Chanwoo Choi @ 2016-12-30 14:51 ` Krzysztof Kozlowski 2016-12-30 15:08 ` Chanwoo Choi 0 siblings, 1 reply; 16+ messages in thread From: Krzysztof Kozlowski @ 2016-12-30 14:51 UTC (permalink / raw) To: Chanwoo Choi Cc: Krzysztof Kozlowski, javier, kgene, robh+dt, s.nawrocki, tomasz.figa, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel On Fri, Dec 30, 2016 at 09:59:17AM +0900, Chanwoo Choi wrote: > Hi Krzysztof, > > On 2016년 12월 09일 02:52, Krzysztof Kozlowski wrote: > > On Thu, Dec 08, 2016 at 01:58:10PM +0900, Chanwoo Choi wrote: > >> This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. > >> Exynos5433 has the following AMBA AXI buses to translate data > >> between DRAM and sub-blocks. > >> > >> Following list specify the detailed correlation between sub-block and clock: > >> - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) > >> - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) > >> - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) > >> - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG > >> - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) > >> - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Efficient Video Codec) > >> - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL > >> - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D > >> - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP > >> > >> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > >> --- > >> arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++++++ > >> arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + > >> 2 files changed, 198 insertions(+) > >> create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi > > > > For the reference: > > Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> > > > > I'll queue it for v4.11, after this merge window. > > Could you please pick this patch3/4/5? > These patches were already reviewed by you. Not yet. I wanted to apply them few days ago but arm64 build is broken in 4.10-rc1 so I cannot auto-build them in my system. The arm64 is fixed already so I will apply them on top of 4.10-rc2 (when released). Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 2016-12-30 14:51 ` Krzysztof Kozlowski @ 2016-12-30 15:08 ` Chanwoo Choi 0 siblings, 0 replies; 16+ messages in thread From: Chanwoo Choi @ 2016-12-30 15:08 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Chanwoo Choi, javier, Kukjin Kim, Rob Herring, Sylwester Nawrocki, Tomasz Figa, myungjoo.ham@samsung.com, Kyungmin Park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel 2016-12-30 23:51 GMT+09:00 Krzysztof Kozlowski <krzk@kernel.org>: > On Fri, Dec 30, 2016 at 09:59:17AM +0900, Chanwoo Choi wrote: >> Hi Krzysztof, >> >> On 2016년 12월 09일 02:52, Krzysztof Kozlowski wrote: >> > On Thu, Dec 08, 2016 at 01:58:10PM +0900, Chanwoo Choi wrote: >> >> This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. >> >> Exynos5433 has the following AMBA AXI buses to translate data >> >> between DRAM and sub-blocks. >> >> >> >> Following list specify the detailed correlation between sub-block and clock: >> >> - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) >> >> - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) >> >> - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) >> >> - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG >> >> - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) >> >> - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Efficient Video Codec) >> >> - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL >> >> - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D >> >> - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP >> >> >> >> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> >> >> --- >> >> arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++++++ >> >> arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + >> >> 2 files changed, 198 insertions(+) >> >> create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi >> > >> > For the reference: >> > Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> >> > >> > I'll queue it for v4.11, after this merge window. >> >> Could you please pick this patch3/4/5? >> These patches were already reviewed by you. > > Not yet. I wanted to apply them few days ago but arm64 build is broken > in 4.10-rc1 so I cannot auto-build them in my system. The arm64 is fixed > already so I will apply them on top of 4.10-rc2 (when released). OK. Thanks for reply. -- Best Regards, Chanwoo Choi ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 2016-12-08 4:58 ` [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 Chanwoo Choi 2016-12-08 17:52 ` Krzysztof Kozlowski @ 2017-01-02 18:35 ` Krzysztof Kozlowski 1 sibling, 0 replies; 16+ messages in thread From: Krzysztof Kozlowski @ 2017-01-02 18:35 UTC (permalink / raw) To: Chanwoo Choi Cc: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel On Thu, Dec 08, 2016 at 01:58:10PM +0900, Chanwoo Choi wrote: > This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. > Exynos5433 has the following AMBA AXI buses to translate data > between DRAM and sub-blocks. > > Following list specify the detailed correlation between sub-block and clock: > - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine) > - CLK_ACLK_MSCL_400 : Bus clock for MSCL (Memory to memory Scaler) > - CLK_ACLK_GSCL_333 : Bus clock for GSCL (General Scaler) > - CLK_SCLK_JPEG_MSCL : Bus clock for JPEG > - CLK_ACLK_MFC_400 : Bus clock for MFC (Multi Format Codec) > - CLK_ACLK_HEVC_400 : Bus clock for HEVC (High Efficient Video Codec) > - CLK_ACLK_BUS0_400 : NoC(Network On Chip)'s bus clock for PERIC/PERIS/FSYS/MSCL > - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D > - CLK_ACLK_BUS2_400 : NoC's bus clock for GSCL/DISP/G2D/CAM0/CAM1/ISP > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > --- > arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi | 197 +++++++++++++++++++++++++ > arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + > 2 files changed, 198 insertions(+) > create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-bus.dtsi > Thanks, applied with changes: 1. Subject prefix, 2. Minor adjustments in commit msg, 3. Fixed missing space in 'status = "disabled"'. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 2016-12-08 4:58 [PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board Chanwoo Choi ` (3 preceding siblings ...) 2016-12-08 4:58 ` [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 Chanwoo Choi @ 2016-12-08 4:58 ` Chanwoo Choi 2017-01-02 18:37 ` Krzysztof Kozlowski 4 siblings, 1 reply; 16+ messages in thread From: Chanwoo Choi @ 2016-12-08 4:58 UTC (permalink / raw) To: krzk, javier, kgene, robh+dt, s.nawrocki, tomasz.figa Cc: cw00.choi, myungjoo.ham, kyungmin.park, devicetree, linux-samsung-soc, linux-arm-kernel, linux-kernel This patch adds the bus Device-tree nodes for INT (Internal) block to enable the bus frequency scaling. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> --- arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 70 +++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index c08589970134..451788642b21 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -170,6 +170,58 @@ }; }; +&bus_g2d_400 { + devfreq-events = <&ppmu_event0_d0_general>, <&ppmu_event0_d1_general>; + vdd-supply = <&buck4_reg>; + exynos,saturation-ratio = <10>; + status = "okay"; +}; + +&bus_g2d_266 { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_gscl { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_hevc { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_jpeg { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_mfc { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_mscl { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_noc0 { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_noc1 { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + +&bus_noc2 { + devfreq = <&bus_g2d_400>; + status = "okay"; +}; + &cmu_aud { assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>; assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>; @@ -794,6 +846,24 @@ bus-width = <4>; }; +&ppmu_d0_general { + status = "okay"; + events { + ppmu_event0_d0_general: ppmu-event0-d0-general { + event-name = "ppmu-event0-d0-general"; + }; + }; +}; + +&ppmu_d1_general { + status = "okay"; + events { + ppmu_event0_d1_general: ppmu-event0-d1-general { + event-name = "ppmu-event0-d1-general"; + }; + }; +}; + &pinctrl_alive { pinctrl-names = "default"; pinctrl-0 = <&initial_alive>; -- 1.9.1 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 2016-12-08 4:58 ` [PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 Chanwoo Choi @ 2017-01-02 18:37 ` Krzysztof Kozlowski 0 siblings, 0 replies; 16+ messages in thread From: Krzysztof Kozlowski @ 2017-01-02 18:37 UTC (permalink / raw) To: Chanwoo Choi Cc: devicetree, linux-samsung-soc, tomasz.figa, robh+dt, linux-kernel, javier, myungjoo.ham, kgene, krzk, s.nawrocki, kyungmin.park, linux-arm-kernel On Thu, Dec 08, 2016 at 01:58:11PM +0900, Chanwoo Choi wrote: > This patch adds the bus Device-tree nodes for INT (Internal) block > to enable the bus frequency scaling. > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> > --- > arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 70 +++++++++++++++++++++++++++ > 1 file changed, 70 insertions(+) > Thanks, applied. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2017-01-02 18:37 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-12-08 4:58 [PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board Chanwoo Choi 2016-12-08 4:58 ` [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical Chanwoo Choi 2016-12-15 4:33 ` Chanwoo Choi [not found] ` <58521D0F.5040704-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-12-20 10:47 ` Sylwester Nawrocki 2016-12-29 15:16 ` Sylwester Nawrocki [not found] ` <1481173091-9728-1-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-12-08 4:58 ` [PATCH v2 2/5] PM / devfreq: exynos-bus: Add the detailed correlation for Exynos5433 Chanwoo Choi 2016-12-08 4:58 ` [PATCH v2 3/5] arm64: dts: exynos5433: Add PPMU dt node Chanwoo Choi [not found] ` <1481173091-9728-4-git-send-email-cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2017-01-02 18:33 ` Krzysztof Kozlowski 2016-12-08 4:58 ` [PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433 Chanwoo Choi 2016-12-08 17:52 ` Krzysztof Kozlowski 2016-12-30 0:59 ` Chanwoo Choi 2016-12-30 14:51 ` Krzysztof Kozlowski 2016-12-30 15:08 ` Chanwoo Choi 2017-01-02 18:35 ` Krzysztof Kozlowski 2016-12-08 4:58 ` [PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2 Chanwoo Choi 2017-01-02 18:37 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).