Skip to contentSkip to conversation

ARM: dts: Switch i2c0 to 400kHz on rk3288-evb-rk808

PATCH In review Doug Anderson 3 participants 3 messages Sep 11, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: Switch i2c0 to 400kHz on rk3288-evb-rk808

We should be able to talk to the PMIC at 400kHz. No need to talk at the slow 100kHz.

As measured by ftrace (with a bunch of extra patches, since cpufreq for rk808 hasn't landed yet):
before this change: cpu0_set_target() => ~500us
after this change: cpu0_set_target() => ~300us

---
 arch/arm/boot/dts/rk3288-evb-rk808.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/rk3288-evb-rk808.dts +1 -0
index 36db177..ff522f8 100644
@@ -18,6 +18,7 @@
 };
 
 &i2c0 {
+	clock-frequency = <400000>;
 	status = "okay";
 
 	rk808: pmic at 1b {
Signature · 1 line
2.1.0.rc2.206.gedb03e5
#1 lore raw
Quoted 18 lines · Doug Anderson

We should be able to talk to the PMIC at 400kHz. No need to talk at the slow 100kHz.

As measured by ftrace (with a bunch of extra patches, since cpufreq for rk808 hasn't landed yet):
before this change: cpu0_set_target() => ~500us
after this change: cpu0_set_target() => ~300us

---
 arch/arm/boot/dts/rk3288-evb-rk808.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/rk3288-evb-rk808.dts +0 -0
index 36db177..ff522f8 100644

arch/arm/boot/dts/rk3288-evb-rk808.dts line 24

Quoted 7 lines
arch/arm/boot/dts/rk3288-evb-rk808.dts +1 -0
@@ -18,6 +18,7 @@
 };
 
 &i2c0 {
+	clock-frequency = <400000>;
 	status = "okay";
 
 	rk808: pmic at 1b {

I have tested on rk3288-pinky board, it work well. so

Reviewed-by Addy Ke <[email protected]>
Tested-by Addy Ke <[email protected]>

#2 lore raw
In reply to Doug Anderson

Am Mittwoch, 10. September 2014, 21:30:15 schrieb Doug Anderson:

Quoted 9 lines

We should be able to talk to the PMIC at 400kHz. No need to talk at the slow 100kHz.

As measured by ftrace (with a bunch of extra patches, since cpufreq for rk808 hasn't landed yet):
before this change: cpu0_set_target() => ~500us
after this change: cpu0_set_target() => ~300us

looks harmless :-)

I've added it to my v3.18-next/dts branch with Addy's tags

Quoted 16 lines
---
 arch/arm/boot/dts/rk3288-evb-rk808.dts | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/arch/arm/boot/dts/rk3288-evb-rk808.dts index 36db177..ff522f8 100644

arch/arm/boot/dts/rk3288-evb-rk808.dts +1 -0
@@ -18,6 +18,7 @@
 };
 
 &i2c0 {
+	clock-frequency = <400000>;
 	status = "okay";
 
 	rk808: pmic@1b {