Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: armada388-clearfog: increase speed of i2c0 to 400kHz

All the devices on I2C0 support fast mode, so increase the bus speed
to match. The Armada 388 is known to have a timing issue when in
standard mode, which we believe causes the ficticious device at 0x64
to appear.

[gregory.clement@bootlin.com: Note that since the commit fbffee74986c
("ARM: dts: Fix I2C repeated start issue on Armada-38x") in 4.14, the
timing issue is managed for the Armada 38x SoCs.]

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>

authored by

Russell King and committed by
Gregory CLEMENT
a83aeb38 e662e70f

+2 -5
+2 -5
arch/arm/boot/dts/armada-388-clearfog.dtsi
··· 143 143 }; 144 144 145 145 &i2c0 { 146 - /* Is there anything on this? */ 147 - clock-frequency = <100000>; 146 + clock-frequency = <400000>; 148 147 pinctrl-0 = <&i2c0_pins>; 149 148 pinctrl-names = "default"; 150 149 status = "okay"; ··· 238 239 }; 239 240 }; 240 241 241 - /* The MCP3021 is 100kHz clock only */ 242 + /* The MCP3021 supports standard and fast modes */ 242 243 mikrobus_adc: mcp3021@4c { 243 244 compatible = "microchip,mcp3021"; 244 245 reg = <0x4c>; 245 246 }; 246 - 247 - /* Also something at 0x64 */ 248 247 }; 249 248 250 249 &i2c1 {