diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/Makefile b/patch/kernel/archive/rockchip64-6.12/overlay/Makefile index ff75d7185e..4d2f3c1165 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/Makefile +++ b/patch/kernel/archive/rockchip64-6.12/overlay/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ hinlink-h88k-240x135-lcd.dtbo \ + rk35xx-radxa-zero-3w-ext-ant.dtbo \ rk3308-otg-host.dtbo \ rk3308-s0-ext-antenna.dtbo \ rk3308-b@1.3ghz.dtbo \ diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rk35xx-radxa-zero-3w-ext-ant.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rk35xx-radxa-zero-3w-ext-ant.dtso new file mode 100644 index 0000000000..7a32b8fe52 --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rk35xx-radxa-zero-3w-ext-ant.dtso @@ -0,0 +1,37 @@ +/dts-v1/; +/plugin/; + +#include +#include + +/ { + compatible = "radxa,zero-3w", "rockchip,rk3566"; + + fragment@0 { + target-path = "/"; + __overlay__ { + board_antenna: board-antenna { + compatible = "regulator-fixed"; + enable-active-low; + gpio = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&ant_1>; + pinctrl-names = "default"; + regulator-always-on; + regulator-boot-on; + regulator-name = "board-antenna"; + status = "okay"; + }; + }; + }; + + fragment@1 { + target = <&pinctrl>; + __overlay__ { + antenna { + ant_1: ant-1 { + rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + }; + }; +}; diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/Makefile b/patch/kernel/archive/rockchip64-6.18/overlay/Makefile index 8c38e76416..48a2853aa8 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/Makefile +++ b/patch/kernel/archive/rockchip64-6.18/overlay/Makefile @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ hinlink-h88k-240x135-lcd.dtbo \ - rk3308-otg-host.dtbo \ + rk35xx-radxa-zero-3w-ext-ant.dtbo \ + rk3308-otg-host.dtbo \ rk3308-s0-ext-antenna.dtbo \ rk3308-b@1.3ghz.dtbo \ rk3308-bs.dtbo rk3308-bs@1.3ghz.dtbo \ diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rk35xx-radxa-zero-3w-ext-ant.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rk35xx-radxa-zero-3w-ext-ant.dtso new file mode 100644 index 0000000000..7a32b8fe52 --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rk35xx-radxa-zero-3w-ext-ant.dtso @@ -0,0 +1,37 @@ +/dts-v1/; +/plugin/; + +#include +#include + +/ { + compatible = "radxa,zero-3w", "rockchip,rk3566"; + + fragment@0 { + target-path = "/"; + __overlay__ { + board_antenna: board-antenna { + compatible = "regulator-fixed"; + enable-active-low; + gpio = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&ant_1>; + pinctrl-names = "default"; + regulator-always-on; + regulator-boot-on; + regulator-name = "board-antenna"; + status = "okay"; + }; + }; + }; + + fragment@1 { + target = <&pinctrl>; + __overlay__ { + antenna { + ant_1: ant-1 { + rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + }; + }; +};