From 66b088ff7e3b34136b79fc8ae154f9c4ba0ef716 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Tue, 5 Sep 2017 19:17:44 +0300 Subject: [PATCH] Fix OPi Zero+2 MMC 0 configuration in DT --- .../sun50i-dev/fix-zeroplus2-mmc0-cd-polarity.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patch/kernel/sun50i-dev/fix-zeroplus2-mmc0-cd-polarity.patch diff --git a/patch/kernel/sun50i-dev/fix-zeroplus2-mmc0-cd-polarity.patch b/patch/kernel/sun50i-dev/fix-zeroplus2-mmc0-cd-polarity.patch new file mode 100644 index 000000000..106d85db4 --- /dev/null +++ b/patch/kernel/sun50i-dev/fix-zeroplus2-mmc0-cd-polarity.patch @@ -0,0 +1,13 @@ +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +index b6b7a561..a42fd79a 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +@@ -71,7 +71,7 @@ + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; +- cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; ++ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; + status = "okay"; + }; +