at91sam9g20-ek pinctrl conflicts

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Oct 16 08:19:54 EDT 2013


On 14:06 Wed 16 Oct     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 12:04 Wed 16 Oct     , Mark Brown wrote:
> > Hi,
> > 
> > Booting an at91sam9g20-ek I see errors loading the MMC driver due to
> > conflicts with SPI:
> > 
> > pinctrl-at91 pinctrl.2: pin pioA1 already requested by fffc8000.spi; cannot claim for fffa8000.mmc
> > pinctrl-at91 pinctrl.2: pin-1 (fffa8000.mmc) status -22
> > pinctrl-at91 pinctrl.2: could not request pin 1 (pioA1) from group mmc0_slot1_cmd_dat0-0  on device pinctrl.2
> 
> it's not really an error as the hw support both but not at the same time
> > 
> > One of the devices seems to be configured incorrectly here but I don't
> > have schematics so it's not immediately obvious which.
> 
> it's SPI *or* MMC, on the default hw configuration it's mmc

this should fix the issue

diff --git a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
index 1373546..cb2c010 100644
--- a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
+++ b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi
@@ -96,7 +96,6 @@
                        };

                        spi0: spi at fffc8000 {
-                               status = "okay";
                                cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
                                mtd_dataflash at 0 {
                                        compatible = "atmel,at45", "atmel,dataflash";

Best Regards,
J.
> 
> Best Regards,
> J.
> > 
> > Thanks,
> > Mark
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list