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"; + }; +