Skip to contentSkip to conversation

arm64: dts: salvator-x(s): Update I2C ch4 clock to 400kHz

PATCH Applied Wolfram Sang 4 participants 7 messages May 28, 2018 – Jun 6, 2018

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

PATCH v2 1/1 arm64: dts: salvator-x(s): Update I2C ch4 clock to 400kHz

From: Takeshi Kihara <[email protected]>

Any of the following devices connected to I2C ch4 of the Salvator-X(S) boards will operate at 400 kHz:

    PCA9654, 9FGV0841, ADV7482WBBCZ, MAX9611, 5P49V5923, 5P49V6901A

This patch updates the clock frequency to 400 KHz.

[wsa: squashed commits into one]

---

Changes since V1:
* squashed commits into single one

 arch/arm64/boot/dts/renesas/salvator-x.dtsi  | 2 ++
 arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/renesas/salvator-x.dtsi +2 -0
index 468868c8ed9f..2828482eba1c 100644
@@ -20,6 +20,8 @@
 };
 
 &i2c4 {
+	clock-frequency = <400000>;
+
 	versaclock5: clock-generator@6a {
 		compatible = "idt,5p49v5923";
 		reg = <0x6a>;
arch/arm64/boot/dts/renesas/salvator-xs.dtsi +2 -0
index bf4d200fb546..1ac03b7564aa 100644
@@ -20,6 +20,8 @@
 };
 
 &i2c4 {
+	clock-frequency = <400000>;
+
 	versaclock6: clock-generator@6a {
 		compatible = "idt,5p49v6901";
 		reg = <0x6a>;
Signature · 1 line
2.11.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Wolfram Sang

From: Takeshi Kihara <[email protected]>

Any of the following devices connected to I2C ch4 of the Salvator-X(S) boards will operate at 400 kHz:

Quoted 7 lines
    PCA9654, 9FGV0841, ADV7482WBBCZ, MAX9611, 5P49V5923, 5P49V6901A

This patch updates the clock frequency to 400 KHz.

[wsa: squashed commits into one]

This looks fine but I will wait to see if there are other reviews before applying.

Applied
#2 lore raw
Quoted 10 lines · Simon Horman
Quoted 9 lines · Wolfram Sang

From: Takeshi Kihara <[email protected]>

Any of the following devices connected to I2C ch4 of the Salvator-X(S) boards will operate at 400 kHz:

    PCA9654, 9FGV0841, ADV7482WBBCZ, MAX9611, 5P49V5923, 5P49V6901A

This patch updates the clock frequency to 400 KHz.

Quoted 8 lines
Quoted 3 lines
[wsa: squashed commits into one]

This looks fine but I will wait to see if there are other reviews before applying.

Thanks, applied.

#3 lore raw
In reply to Wolfram Sang

Hi Wolfram,

Quoted 12 lines · Wolfram Sang

From: Takeshi Kihara <[email protected]>

Any of the following devices connected to I2C ch4 of the Salvator-X(S) boards will operate at 400 kHz:

    PCA9654, 9FGV0841, ADV7482WBBCZ, MAX9611, 5P49V5923, 5P49V6901A

This patch updates the clock frequency to 400 KHz.

[wsa: squashed commits into one]
Quoted 7 lines

---

Changes since V1:
* squashed commits into single one

 arch/arm64/boot/dts/renesas/salvator-x.dtsi  | 2 ++
 arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++

Any reason this cannot be added to salvator-common.dtsi instead?

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
#4 lore raw
Quoted 5 lines
Quoted 3 lines
 arch/arm64/boot/dts/renesas/salvator-x.dtsi  | 2 ++
 arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++

Any reason this cannot be added to salvator-common.dtsi instead?

It could be. For clarity, I wanted to place this attribute to the highest level and not somewhere inbetween.

#5 lore raw

Hi Wolfram,

Quoted 7 lines · Wolfram Sang
Quoted 4 lines
Quoted 2 lines
 arch/arm64/boot/dts/renesas/salvator-x.dtsi  | 2 ++
 arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++

Any reason this cannot be added to salvator-common.dtsi instead?

It could be. For clarity, I wanted to place this attribute to the highest level and not somewhere inbetween.

All other (non-VC5/6) devices on i2c4 currently described in DT are described in salvator-common.dtsi.
If a board adds a device with a lower frequency limit, it can still override it.

Note that the highest level is r8a779*-salvator-*dts ;-)

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
#6 lore raw
Quoted 3 lines

All other (non-VC5/6) devices on i2c4 currently described in DT are described in salvator-common.dtsi.

Yes, exactly, non-VC5/6. Now imagine we need to reduce the freq because of a HW bug in only one of them...

But all fine with me. You can send a fixup patch if you want and add my ack.