From 32aad38a1619499f1ab51e435d1721fea225cdc6 Mon Sep 17 00:00:00 2001 From: Diego Rondini Date: Wed, 26 Apr 2017 08:38:17 +0000 Subject: [PATCH] linux: backport patch for Lime2 eMMC support Backport patch from v4.10 to fix eMMC support on OLinuXino Lime2. --- ...ange-node-name-for-pwrseq-pin-on-Oli.patch | 35 +++++++++++++++++++ recipes-kernel/linux/linux_4.9.20.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 recipes-kernel/linux/linux-4.9.20/0001-ARM-dts-sunxi-Change-node-name-for-pwrseq-pin-on-Oli.patch diff --git a/recipes-kernel/linux/linux-4.9.20/0001-ARM-dts-sunxi-Change-node-name-for-pwrseq-pin-on-Oli.patch b/recipes-kernel/linux/linux-4.9.20/0001-ARM-dts-sunxi-Change-node-name-for-pwrseq-pin-on-Oli.patch new file mode 100644 index 0000000..6c826d3 --- /dev/null +++ b/recipes-kernel/linux/linux-4.9.20/0001-ARM-dts-sunxi-Change-node-name-for-pwrseq-pin-on-Oli.patch @@ -0,0 +1,35 @@ +From 3116d37651d77125bf50f81f859b1278e02ccce6 Mon Sep 17 00:00:00 2001 +From: Emmanuel Vadot +Date: Wed, 14 Dec 2016 15:57:24 +0100 +Subject: [PATCH] ARM: dts: sunxi: Change node name for pwrseq pin on + Olinuxino-lime2-emmc + +The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. +This makes the original node (mmc2_pins_a) scrapped out of the dtb and +result in a unusable eMMC if U-Boot didn't configured the pins to the +correct functions. + +Upstream-Status: Backport from v4.10 + +Signed-off-by: Emmanuel Vadot +Signed-off-by: Maxime Ripard +--- + arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts +index 5ea4915..10d3074 100644 +--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts ++++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts +@@ -56,7 +56,7 @@ + }; + + &pio { +- mmc2_pins_nrst: mmc2@0 { ++ mmc2_pins_nrst: mmc2-rst-pin { + allwinner,pins = "PC16"; + allwinner,function = "gpio_out"; + allwinner,drive = ; +-- +2.7.4 + diff --git a/recipes-kernel/linux/linux_4.9.20.bb b/recipes-kernel/linux/linux_4.9.20.bb index 55ff983..5a087cd 100644 --- a/recipes-kernel/linux/linux_4.9.20.bb +++ b/recipes-kernel/linux/linux_4.9.20.bb @@ -21,4 +21,5 @@ SRC_URI[sha256sum] = "48660806dd32fb8dcbcf5932291bf6cc7d29240070372230871e0f56fe SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \ file://defconfig \ + file://0001-ARM-dts-sunxi-Change-node-name-for-pwrseq-pin-on-Oli.patch \ "