Skip to contentSkip to conversation

arm64: dts: renesas: gen3: use 400kHz for I2C DVFS bus

RFC PATCH Applied Wolfram Sang 3 participants 3 messages Sep 18, 2018 – Sep 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 arm64: dts: renesas: gen3: use 400kHz for I2C DVFS bus

The PMIC and EEPROM can operate at 400kHz, so use this speed.

---

RFC because I couldn't find docs for the PMIC. Tests showed that it does work at 400kHz (checksuming over 256 byte reads). Geert, do you happen to have docs? Other than that, for the EEPROM it also works and is also documented and BSP uses 400kHz as well. Tested on Salvator XS, not ULCB.

 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 2 ++
 arch/arm64/boot/dts/renesas/ulcb.dtsi            | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +2 -0
index d298f7c9ada1..7f91ff524109 100644
@@ -474,6 +474,8 @@
 &i2c_dvfs {
 	status = "okay";
 
+	clock-frequency = <400000>;
+
 	pmic: pmic@30 {
 		pinctrl-0 = <&irq0_pins>;
 		pinctrl-names = "default";
arch/arm64/boot/dts/renesas/ulcb.dtsi +2 -0
index 7e6078508ba0..30506c5ba4e9 100644
@@ -241,6 +241,8 @@
 &i2c_dvfs {
 	status = "okay";
 
+	clock-frequency = <400000>;
+
 	pmic: pmic@30 {
 		pinctrl-0 = <&irq0_pins>;
 		pinctrl-names = "default";
Signature · 1 line
2.18.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Wolfram Sang

The PMIC and EEPROM can operate at 400kHz, so use this speed.

Quoted 6 lines

---

RFC because I couldn't find docs for the PMIC. Tests showed that it does work at 400kHz (checksuming over 256 byte reads). Geert, do you happen to have docs? Other than that, for the EEPROM it also works and is also documented and BSP uses 400kHz as well. Tested on Salvator XS, not ULCB.

BD9571 docs say:
(1) Fast mode: Max.400kHz
(2) Fast mode plus: Max. 1MHz

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds