From ed33dd260fb0dd4f85282394b2c3663c3482dff7 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 17 Jul 2021 12:00:22 +0000 Subject: [PATCH] arm64: dts: Add wifi overlay for m5 Change-Id: I338d01d750a701c64f2af488e6f95cf8adf978d1 --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/sm1_s905y3_bananapim5.dts | 1 + .../sm1_s905y3_bananapim5_wifi_overlay.dts | 36 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5_wifi_overlay.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index f6bf4ab0cbd9..16e1dd615195 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -113,6 +113,7 @@ dtb-y += sm1_s905x3_ac214_drm_buildroot.dtb dtb-y += sm1_s905x3_ac215.dtb dtb-y += sm1_s905y3_ac223.dtb dtb-y += sm1_s905y3_bananapim5.dtb +dtb-y += sm1_s905y3_bananapim5_wifi_overlay.dtb dtb-y += sm1_s905y3_deadpool.dtb dtb-y += sm1_s905y3_odroidc4.dtb dtb-y += sti6140d350_overlay.dtb diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts b/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts index d6caaf512886..86c81a589916 100644 --- a/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts +++ b/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts @@ -242,6 +242,7 @@ status = "disabled"; gpio_reset = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; gpio_hostwake = <&gpio GPIOX_19 GPIO_ACTIVE_HIGH>; + gpio_btwakeup = <&gpio GPIOX_18 GPIO_ACTIVE_HIGH>; }; wifi{ diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5_wifi_overlay.dts b/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5_wifi_overlay.dts new file mode 100644 index 000000000000..a71df414389f --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5_wifi_overlay.dts @@ -0,0 +1,36 @@ +/dts-v1/; +/plugin/; + +/{ + fragment@0 { + target-path = "/"; + + __overlay__ { + bt-dev { + status = "okay"; + }; + + wifi { + status = "okay"; + }; + }; + }; + + fragment@1 { + target = <&uart_A>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@2 { + target = <&pwm_ef>; + + __overlay__ { + status = "okay"; + pinctrl-names = "pwm_pins"; + pinctrl-0 = <&pwm_e_pins>; + }; + }; +}; \ No newline at end of file -- 2.20.1