* [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108
@ 2017-08-22 13:11 Andy Yan
2017-08-22 13:13 ` [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb Andy Yan
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Andy Yan @ 2017-08-22 13:11 UTC (permalink / raw)
To: heiko
Cc: devicetree, linux-kernel, linux-rockchip, robh+dt,
linux-arm-kernel, Andy Yan
Add cpu opp table for rv1108 to support frequency
from 408MHZ to 1008MHZ.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
Changes in v2:
- switch to operating-points-v2
- split cpu-supply to a separate patch
arch/arm/boot/dts/rv1108.dtsi | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi
index 064cec3..1b854e1 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -69,6 +69,33 @@
device_type = "cpu";
compatible = "arm,cortex-a7";
reg = <0xf00>;
+ operating-points-v2 = <&cpu_opp_table>;
+ clocks = <&cru ARMCLK>;
+ };
+ };
+
+ cpu_opp_table: opp_table {
+ compatible = "operating-points-v2";
+
+ opp-408000000 {
+ opp-hz = /bits/ 64 <408000000>;
+ opp-microvolt = <975000>;
+ clock-latency-ns = <40000>;
+ };
+ opp-600000000 {
+ opp-hz = /bits/ 64 <600000000>;
+ opp-microvolt = <975000>;
+ clock-latency-ns = <40000>;
+ };
+ opp-816000000 {
+ opp-hz = /bits/ 64 <816000000>;
+ opp-microvolt = <1025000>;
+ clock-latency-ns = <40000>;
+ };
+ opp-1008000000 {
+ opp-hz = /bits/ 64 <1008000000>;
+ opp-microvolt = <1150000>;
+ clock-latency-ns = <40000>;
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb 2017-08-22 13:11 [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Andy Yan @ 2017-08-22 13:13 ` Andy Yan 2017-08-22 23:34 ` Heiko Stuebner 2017-08-22 13:15 ` [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 Andy Yan 2017-08-22 23:33 ` [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Heiko Stuebner 2 siblings, 1 reply; 8+ messages in thread From: Andy Yan @ 2017-08-22 13:13 UTC (permalink / raw) To: heiko Cc: devicetree, linux-kernel, linux-rockchip, robh+dt, linux-arm-kernel, Andy Yan The cpu is powered by regulator vdd_core on RV1108 evalution board. Add it to the cpu dt node. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> --- Changes in v2: None arch/arm/boot/dts/rv1108-evb.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rv1108-evb.dts b/arch/arm/boot/dts/rv1108-evb.dts index 32fb09a..e517aa3 100644 --- a/arch/arm/boot/dts/rv1108-evb.dts +++ b/arch/arm/boot/dts/rv1108-evb.dts @@ -104,6 +104,10 @@ }; }; +&cpu0 { + cpu-supply = <&vdd_core>; +}; + &i2c0 { status = "okay"; i2c-scl-rising-time-ns = <275>; -- 2.7.4 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb 2017-08-22 13:13 ` [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb Andy Yan @ 2017-08-22 23:34 ` Heiko Stuebner 0 siblings, 0 replies; 8+ messages in thread From: Heiko Stuebner @ 2017-08-22 23:34 UTC (permalink / raw) To: Andy Yan Cc: devicetree, linux-kernel, linux-rockchip, robh+dt, linux-arm-kernel Am Dienstag, 22. August 2017, 21:13:30 CEST schrieb Andy Yan: > The cpu is powered by regulator vdd_core on RV1108 evalution > board. Add it to the cpu dt node. > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com> applied for 4.14. Thanks Heiko ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 2017-08-22 13:11 [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Andy Yan 2017-08-22 13:13 ` [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb Andy Yan @ 2017-08-22 13:15 ` Andy Yan 2017-08-22 13:44 ` Rafael J. Wysocki 2017-08-22 23:33 ` [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Heiko Stuebner 2 siblings, 1 reply; 8+ messages in thread From: Andy Yan @ 2017-08-22 13:15 UTC (permalink / raw) To: rjw, viresh.kumar; +Cc: linux-kernel, linux-pm, Andy Yan Add the compatible string to support the generic device tree cpufreq-dt driver on rockchip rv1108 soc. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> --- Changes in v2: None drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 1c26292..2d71c09 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -69,6 +69,7 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "renesas,r8a7794", }, { .compatible = "renesas,sh73a0", }, + { .compatible = "rockchip,rv1108", }, { .compatible = "rockchip,rk2928", }, { .compatible = "rockchip,rk3036", }, { .compatible = "rockchip,rk3066a", }, -- 2.7.4 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 2017-08-22 13:15 ` [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 Andy Yan @ 2017-08-22 13:44 ` Rafael J. Wysocki 2017-08-23 0:49 ` Andy Yan 0 siblings, 1 reply; 8+ messages in thread From: Rafael J. Wysocki @ 2017-08-22 13:44 UTC (permalink / raw) To: Andy Yan; +Cc: viresh.kumar, linux-kernel, linux-pm On Tuesday, August 22, 2017 3:15:22 PM CEST Andy Yan wrote: > Add the compatible string to support the generic device tree > cpufreq-dt driver on rockchip rv1108 soc. > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com> This is a [3/3] in a series, so presumably it depends on something, so I guess it should be applied along with the thing it depends on. Right? Thanks, Rafael ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 2017-08-22 13:44 ` Rafael J. Wysocki @ 2017-08-23 0:49 ` Andy Yan 2017-08-23 1:08 ` Rafael J. Wysocki 0 siblings, 1 reply; 8+ messages in thread From: Andy Yan @ 2017-08-23 0:49 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: viresh.kumar, linux-kernel, linux-pm Hi Rafael: On 2017年08月22日 21:44, Rafael J. Wysocki wrote: > On Tuesday, August 22, 2017 3:15:22 PM CEST Andy Yan wrote: >> Add the compatible string to support the generic device tree >> cpufreq-dt driver on rockchip rv1108 soc. >> >> Signed-off-by: Andy Yan <andy.yan@rock-chips.com> > This is a [3/3] in a series, so presumably it depends on something, so I guess > it should be applied along with the thing it depends on. Right? The other two are dts parts [1] [2], they have been taken to arm-soc by Heiko. And Heiko also gave a Reviewed-by for this patch in v1[3]. [1] https://patchwork.kernel.org/patch/9915139/ [2] https://patchwork.kernel.org/patch/9915145/ [3] https://patchwork.kernel.org/patch/9911907/ > > Thanks, > Rafael > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 2017-08-23 0:49 ` Andy Yan @ 2017-08-23 1:08 ` Rafael J. Wysocki 0 siblings, 0 replies; 8+ messages in thread From: Rafael J. Wysocki @ 2017-08-23 1:08 UTC (permalink / raw) To: Andy Yan Cc: Rafael J. Wysocki, Viresh Kumar, Linux Kernel Mailing List, Linux PM On Wed, Aug 23, 2017 at 2:49 AM, Andy Yan <andy.yan@rock-chips.com> wrote: > Hi Rafael: > > > On 2017年08月22日 21:44, Rafael J. Wysocki wrote: >> >> On Tuesday, August 22, 2017 3:15:22 PM CEST Andy Yan wrote: >>> >>> Add the compatible string to support the generic device tree >>> cpufreq-dt driver on rockchip rv1108 soc. >>> >>> Signed-off-by: Andy Yan <andy.yan@rock-chips.com> >> >> This is a [3/3] in a series, so presumably it depends on something, so I >> guess >> it should be applied along with the thing it depends on. Right? > > > The other two are dts parts [1] [2], they have been taken to arm-soc by > Heiko. > And Heiko also gave a Reviewed-by for this patch in v1[3]. > > [1] https://patchwork.kernel.org/patch/9915139/ > [2] https://patchwork.kernel.org/patch/9915145/ > [3] https://patchwork.kernel.org/patch/9911907/ So please ask Viresh for an ACK on this one and route it through arm-soc as well. Thanks, Rafael ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 2017-08-22 13:11 [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Andy Yan 2017-08-22 13:13 ` [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb Andy Yan 2017-08-22 13:15 ` [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 Andy Yan @ 2017-08-22 23:33 ` Heiko Stuebner 2 siblings, 0 replies; 8+ messages in thread From: Heiko Stuebner @ 2017-08-22 23:33 UTC (permalink / raw) To: Andy Yan Cc: devicetree, linux-kernel, linux-rockchip, robh+dt, linux-arm-kernel Am Dienstag, 22. August 2017, 21:11:55 CEST schrieb Andy Yan: > Add cpu opp table for rv1108 to support frequency > from 408MHZ to 1008MHZ. > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com> applied for 4.14 Thanks Heiko ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-08-23 1:08 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-08-22 13:11 [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Andy Yan 2017-08-22 13:13 ` [PATCH v2 2/3] ARM: dts: rockchip: add cpu power supply for rv1108 evb Andy Yan 2017-08-22 23:34 ` Heiko Stuebner 2017-08-22 13:15 ` [PATCH v2 3/3] cpufreq: dt: add support for rockchip rv1108 Andy Yan 2017-08-22 13:44 ` Rafael J. Wysocki 2017-08-23 0:49 ` Andy Yan 2017-08-23 1:08 ` Rafael J. Wysocki 2017-08-22 23:33 ` [PATCH v2 1/3] ARM: dts: rockchip: add cpu opp table for rv1108 Heiko Stuebner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox