From 53e071d2b9d1329022af7a133f4377d0e2d23d90 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 29 Jul 2015 14:11:37 +0200 Subject: ARM: dts: pangolin: Redefine mmc0 to change probing order This makes sure the eMMC always is found as mmcblk0 --- arch/arm/boot/dts/sun6i-a31-pangolin.dts | 35 ++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts index 059ce65eac70..fd77ec9ebd12 100644 --- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts +++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts @@ -77,6 +77,32 @@ linux,default-trigger = "mmc0"; }; }; + + /* Redefines mmc0 under new name so that the sd card is probed after the emmc */ + soc@01c00000 { + sdcard: sdcard@01c0f000 { + compatible = "allwinner,sun5i-a13-mmc"; + reg = <0x01c0f000 0x1000>; + clocks = <&ahb1_gates 8>, + <&mmc0_clk 0>, + <&mmc0_clk 1>, + <&mmc0_clk 2>; + clock-names = "ahb", + "mmc", + "output", + "sample"; + resets = <&ahb1_rst 8>; + reset-names = "ahb"; + interrupts = ; + + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_pangolin>; + vmmc-supply = <®_vcc3v0>; + bus-width = <4>; + cd-gpios = <&pio 2 19 GPIO_ACTIVE_LOW>; /* PC19 */ + status = "okay"; + }; + }; }; &cpu0 { @@ -229,15 +255,6 @@ status = "okay"; }; -&mmc0 { - pinctrl-names = "default"; - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_pangolin>; - vmmc-supply = <®_vcc3v0>; - bus-width = <4>; - cd-gpios = <&pio 2 19 GPIO_ACTIVE_LOW>; /* PC19 */ - status = "okay"; -}; - &mmc0_pins_a { /* external pull-ups missing for some pins */ allwinner,pull = ; -- cgit v1.2.3