diff --git a/projects/Allwinner/devices/A64/patches/linux/03-opi-win-bt.patch b/projects/Allwinner/devices/A64/patches/linux/03-opi-win-bt.patch new file mode 100644 index 0000000000..dc6dc67d00 --- /dev/null +++ b/projects/Allwinner/devices/A64/patches/linux/03-opi-win-bt.patch @@ -0,0 +1,62 @@ +From 398a7c7ab82ab344d693a62ee633351f93046d91 Mon Sep 17 00:00:00 2001 +From: Jernej Skrabec +Date: Mon, 11 Mar 2019 17:30:24 +0100 +Subject: [PATCH] orangepi win: wifi & bt + +Signed-off-by: Jernej Skrabec +--- + .../dts/allwinner/sun50i-a64-orangepi-win.dts | 23 +++++++++++++++++++ + 1 file changed, 23 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +index 510f661229dc..5ef3c62c765e 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +@@ -109,6 +109,8 @@ + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ ++ clocks = <&rtc 1>; ++ clock-names = "ext_clock"; + }; + }; + +@@ -170,6 +172,14 @@ + bus-width = <4>; + non-removable; + status = "okay"; ++ ++ brcmf: wifi@1 { ++ reg = <1>; ++ compatible = "brcm,bcm4329-fmac"; ++ interrupt-parent = <&r_pio>; ++ interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */ ++ interrupt-names = "host-wake"; ++ }; + }; + + &ohci0 { +@@ -342,7 +352,20 @@ + &uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; ++ uart-has-rtscts; + status = "okay"; ++ ++ bluetooth { ++ compatible = "brcm,bcm43438-bt"; ++ max-speed = <1500000>; ++ clocks = <&rtc 1>; ++ clock-names = "lpo"; ++ vbat-supply = <®_dldo2>; ++ vddio-supply = <®_dldo4>; ++ device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ ++ host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ ++ shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ ++ }; + }; + + /* On Pi-2 connector, RTS/CTS optional */ +-- +2.21.0 + diff --git a/projects/Allwinner/options b/projects/Allwinner/options index 7d319c6027..db028ec6df 100644 --- a/projects/Allwinner/options +++ b/projects/Allwinner/options @@ -72,7 +72,7 @@ # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, # e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware" - FIRMWARE="misc-firmware wlan-firmware dvb-firmware" + FIRMWARE="misc-firmware wlan-firmware dvb-firmware brcmfmac_sdio-firmware" # build and install ATV IR remote support (yes / no) ATVCLIENT_SUPPORT="no"