From 5bdc33a0bfd79234b952867498bb28a34b1d3d0a Mon Sep 17 00:00:00 2001 From: Martin Ayotte Date: Thu, 23 Jun 2016 14:23:08 -0400 Subject: [PATCH] add patch-for-rtl8189fs-sun8i-h3-orangepi-pc-dts patch --- ...r-rtl8189fs-sun8i-h3-orangepi-pc-dts.patch | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 patch/kernel/sun8i-dev/patch-for-rtl8189fs-sun8i-h3-orangepi-pc-dts.patch diff --git a/patch/kernel/sun8i-dev/patch-for-rtl8189fs-sun8i-h3-orangepi-pc-dts.patch b/patch/kernel/sun8i-dev/patch-for-rtl8189fs-sun8i-h3-orangepi-pc-dts.patch new file mode 100644 index 000000000..0c4a03703 --- /dev/null +++ b/patch/kernel/sun8i-dev/patch-for-rtl8189fs-sun8i-h3-orangepi-pc-dts.patch @@ -0,0 +1,50 @@ +diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +index 32f35f1..0691045 100644 +--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts ++++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +@@ -88,6 +88,14 @@ + gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; + }; + }; ++ ++ wifi_pwrseq: wifi_pwrseq { ++ compatible = "mmc-pwrseq-simple"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&wifi_pwrseq_pin_orangepi>; ++ reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 WIFI_EN */ ++ }; ++ + }; + + &cpu0 { +@@ -174,6 +200,16 @@ + status = "okay"; + }; + ++&mmc1 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc1_pins_a>; ++ vmmc-supply = <®_vcc3v3>; ++ mmc-pwrseq = <&wifi_pwrseq>; ++ bus-width = <4>; ++ non-removable; ++ status = "okay"; ++}; ++ + &ohci1 { + status = "okay"; + }; +@@ -209,6 +245,13 @@ + allwinner,drive = ; + allwinner,pull = ; + }; ++ ++ wifi_pwrseq_pin_orangepi: wifi_pwrseq_pin@0 { ++ allwinner,pins = "PL7"; ++ allwinner,function = "gpio_out"; ++ allwinner,drive = ; ++ allwinner,pull = ; ++ }; + }; + + &uart0 {