* [PATCH v3 3/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2Q
2015-09-17 10:14 [PATCH v3 0/6] ARM: berlin: add cpufreq support Antoine Tenart
@ 2015-09-17 10:15 ` Antoine Tenart
2015-09-17 10:15 ` [PATCH v3 4/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2 Antoine Tenart
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Antoine Tenart @ 2015-09-17 10:15 UTC (permalink / raw)
To: sebastian.hesselbarth
Cc: Antoine Tenart, zmxu, jszhang, linux-arm-kernel, linux-pm,
linux-kernel
The BG2Q uses cpugreq-dt. Add the corresponding bindings. The operating
points can be updated by the bootloader.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
arch/arm/boot/dts/berlin2q.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
index 63a48490e2f9..58f6792c0d77 100644
--- a/arch/arm/boot/dts/berlin2q.dtsi
+++ b/arch/arm/boot/dts/berlin2q.dtsi
@@ -53,6 +53,17 @@
device_type = "cpu";
next-level-cache = <&l2>;
reg = <0>;
+
+ clocks = <&chip_clk CLKID_CPU>;
+ clock-latency = <100000>;
+ /* Can be modified by the bootloader */
+ operating-points = <
+ /* kHz uV */
+ 1200000 1200000
+ 1000000 1200000
+ 800000 1200000
+ 600000 1200000
+ >;
};
cpu@1 {
--
2.5.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 4/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2
2015-09-17 10:14 [PATCH v3 0/6] ARM: berlin: add cpufreq support Antoine Tenart
2015-09-17 10:15 ` [PATCH v3 3/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2Q Antoine Tenart
@ 2015-09-17 10:15 ` Antoine Tenart
2015-09-17 10:15 ` [PATCH v3 5/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2CD Antoine Tenart
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Antoine Tenart @ 2015-09-17 10:15 UTC (permalink / raw)
To: sebastian.hesselbarth
Cc: Antoine Tenart, zmxu, jszhang, linux-arm-kernel, linux-pm,
linux-kernel
The BG2 uses cpugreq-dt. Add the corresponding bindings.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
arch/arm/boot/dts/berlin2.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/berlin2.dtsi b/arch/arm/boot/dts/berlin2.dtsi
index ef811de09908..d80dc82729b8 100644
--- a/arch/arm/boot/dts/berlin2.dtsi
+++ b/arch/arm/boot/dts/berlin2.dtsi
@@ -57,6 +57,16 @@
device_type = "cpu";
next-level-cache = <&l2>;
reg = <0>;
+
+ clocks = <&chip_clk CLKID_CPU>;
+ clock-latency = <100000>;
+ operating-points = <
+ /* kHz uV */
+ 1200000 1200000
+ 1000000 1200000
+ 800000 1200000
+ 600000 1200000
+ >;
};
cpu@1 {
--
2.5.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 5/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2CD
2015-09-17 10:14 [PATCH v3 0/6] ARM: berlin: add cpufreq support Antoine Tenart
2015-09-17 10:15 ` [PATCH v3 3/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2Q Antoine Tenart
2015-09-17 10:15 ` [PATCH v3 4/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2 Antoine Tenart
@ 2015-09-17 10:15 ` Antoine Tenart
2015-09-17 10:15 ` [PATCH v3 6/6] ARM: berlin: register cpufreq-dt Antoine Tenart
2015-09-20 18:23 ` [PATCH v3 0/6] ARM: berlin: add cpufreq support Sebastian Hesselbarth
4 siblings, 0 replies; 6+ messages in thread
From: Antoine Tenart @ 2015-09-17 10:15 UTC (permalink / raw)
To: sebastian.hesselbarth
Cc: Antoine Tenart, zmxu, jszhang, linux-arm-kernel, linux-pm,
linux-kernel
The BG2CD uses cpugreq-dt. Add the corresponding bindings.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
arch/arm/boot/dts/berlin2cd.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/berlin2cd.dtsi b/arch/arm/boot/dts/berlin2cd.dtsi
index 900213d78a32..3c7a7404f10c 100644
--- a/arch/arm/boot/dts/berlin2cd.dtsi
+++ b/arch/arm/boot/dts/berlin2cd.dtsi
@@ -56,6 +56,14 @@
device_type = "cpu";
next-level-cache = <&l2>;
reg = <0>;
+
+ clocks = <&chip_clk CLKID_CPU>;
+ clock-latency = <100000>;
+ operating-points = <
+ /* kHz uV */
+ 800000 1200000
+ 600000 1200000
+ >;
};
};
--
2.5.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 6/6] ARM: berlin: register cpufreq-dt
2015-09-17 10:14 [PATCH v3 0/6] ARM: berlin: add cpufreq support Antoine Tenart
` (2 preceding siblings ...)
2015-09-17 10:15 ` [PATCH v3 5/6] ARM: berlin: dts: add the cpufreq-dt bindings on the BG2CD Antoine Tenart
@ 2015-09-17 10:15 ` Antoine Tenart
2015-09-20 18:23 ` [PATCH v3 0/6] ARM: berlin: add cpufreq support Sebastian Hesselbarth
4 siblings, 0 replies; 6+ messages in thread
From: Antoine Tenart @ 2015-09-17 10:15 UTC (permalink / raw)
To: sebastian.hesselbarth
Cc: Antoine Tenart, zmxu, jszhang, linux-arm-kernel, linux-pm,
linux-kernel
The Berlin SoCs use cpufreq-dt for cpufreq. Register a platform device.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
arch/arm/mach-berlin/berlin.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/mach-berlin/berlin.c b/arch/arm/mach-berlin/berlin.c
index ac181c6797ee..25d73870ccca 100644
--- a/arch/arm/mach-berlin/berlin.c
+++ b/arch/arm/mach-berlin/berlin.c
@@ -18,6 +18,11 @@
#include <asm/hardware/cache-l2x0.h>
#include <asm/mach/arch.h>
+static void __init berlin_init_late(void)
+{
+ platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
+}
+
static const char * const berlin_dt_compat[] = {
"marvell,berlin",
NULL,
@@ -25,6 +30,7 @@ static const char * const berlin_dt_compat[] = {
DT_MACHINE_START(BERLIN_DT, "Marvell Berlin")
.dt_compat = berlin_dt_compat,
+ .init_late = berlin_init_late,
/*
* with DT probing for L2CCs, berlin_init_machine can be removed.
* Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc
--
2.5.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 0/6] ARM: berlin: add cpufreq support
2015-09-17 10:14 [PATCH v3 0/6] ARM: berlin: add cpufreq support Antoine Tenart
` (3 preceding siblings ...)
2015-09-17 10:15 ` [PATCH v3 6/6] ARM: berlin: register cpufreq-dt Antoine Tenart
@ 2015-09-20 18:23 ` Sebastian Hesselbarth
4 siblings, 0 replies; 6+ messages in thread
From: Sebastian Hesselbarth @ 2015-09-20 18:23 UTC (permalink / raw)
To: Antoine Tenart; +Cc: zmxu, jszhang, linux-arm-kernel, linux-pm, linux-kernel
On 17.09.2015 12:14, Antoine Tenart wrote:
> This series adds the cpufreq support to the Berlin SoCs, using
> cpufreq-dt.
[...]
> Antoine Tenart (6):
> clk: berlin: move MAX_CLKS out of drivers/clk/berlin
> clk: berlin: add cpuclk
> ARM: berlin: dts: add the cpufreq-dt bindings on the BG2Q
> ARM: berlin: dts: add the cpufreq-dt bindings on the BG2
> ARM: berlin: dts: add the cpufreq-dt bindings on the BG2CD
> ARM: berlin: register cpufreq-dt
Applied 1, 2 with Mike's and Stephen's Acked-by to berlin/driver.
Applied 3, 4, 5 to berlin/dt.
Applied 6 to berlin/driver again.
Sebastian
> arch/arm/boot/dts/berlin2.dtsi | 10 ++++++++++
> arch/arm/boot/dts/berlin2cd.dtsi | 8 ++++++++
> arch/arm/boot/dts/berlin2q.dtsi | 11 +++++++++++
> arch/arm/mach-berlin/berlin.c | 6 ++++++
> drivers/clk/berlin/bg2.c | 1 -
> drivers/clk/berlin/bg2q.c | 13 ++++++-------
> include/dt-bindings/clock/berlin2.h | 2 ++
> include/dt-bindings/clock/berlin2q.h | 3 +++
> 8 files changed, 46 insertions(+), 8 deletions(-)
>
^ permalink raw reply [flat|nested] 6+ messages in thread