Radxa Zero 3W: Add ext antenna overlay

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
Patrick Yavitz 2025-11-08 09:39:56 -05:00 committed by c0rnelius
parent a691d128db
commit c7114e73a5
4 changed files with 77 additions and 1 deletions

View File

@ -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 \

View File

@ -0,0 +1,37 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
/ {
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>;
};
};
};
};
};

View File

@ -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 \

View File

@ -0,0 +1,37 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
/ {
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>;
};
};
};
};
};