Skip to content

Commit 0df12a0

Browse files
committed
ARM: dts: omap4-droid4: Fix spi configuration and increase rate
We can currently sometimes get "RXS timed out" errors and "EOT timed out" errors with spi transfers. These errors can be made easy to reproduce by reading the cpcap iio values in a loop while keeping the CPUs busy by also reading /dev/urandom. The "RXS timed out" errors we can fix by adding spi-cpol and spi-cpha in addition to the spi-cs-high property we already have. The "EOT timed out" errors we can fix by increasing the spi clock rate to 9.6 MHz. Looks similar MC13783 PMIC says it works at spi clock rates up to 20 MHz, so let's assume we can pick any rate up to 20 MHz also for cpcap. Cc: [email protected] Cc: Merlijn Wajer <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Sebastian Reichel <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 5ce8aee commit 0df12a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
#interrupt-cells = <2>;
1414
#address-cells = <1>;
1515
#size-cells = <0>;
16-
spi-max-frequency = <3000000>;
16+
spi-max-frequency = <9600000>;
1717
spi-cs-high;
18+
spi-cpol;
19+
spi-cpha;
1820

1921
cpcap_adc: adc {
2022
compatible = "motorola,mapphone-cpcap-adc";

0 commit comments

Comments
 (0)