Skip to content

Commit c7114e7

Browse files
committed
Radxa Zero 3W: Add ext antenna overlay
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
1 parent a691d12 commit c7114e7

File tree

4 files changed

+77
-1
lines changed

4 files changed

+77
-1
lines changed

patch/kernel/archive/rockchip64-6.12/overlay/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
33
hinlink-h88k-240x135-lcd.dtbo \
4+
rk35xx-radxa-zero-3w-ext-ant.dtbo \
45
rk3308-otg-host.dtbo \
56
rk3308-s0-ext-antenna.dtbo \
67
rk3308-b@1.3ghz.dtbo \
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
#include <dt-bindings/gpio/gpio.h>
5+
#include <dt-bindings/pinctrl/rockchip.h>
6+
7+
/ {
8+
compatible = "radxa,zero-3w", "rockchip,rk3566";
9+
10+
fragment@0 {
11+
target-path = "/";
12+
__overlay__ {
13+
board_antenna: board-antenna {
14+
compatible = "regulator-fixed";
15+
enable-active-low;
16+
gpio = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>;
17+
pinctrl-0 = <&ant_1>;
18+
pinctrl-names = "default";
19+
regulator-always-on;
20+
regulator-boot-on;
21+
regulator-name = "board-antenna";
22+
status = "okay";
23+
};
24+
};
25+
};
26+
27+
fragment@1 {
28+
target = <&pinctrl>;
29+
__overlay__ {
30+
antenna {
31+
ant_1: ant-1 {
32+
rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>;
33+
};
34+
};
35+
};
36+
};
37+
};

patch/kernel/archive/rockchip64-6.18/overlay/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0
22
dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
33
hinlink-h88k-240x135-lcd.dtbo \
4-
rk3308-otg-host.dtbo \
4+
rk35xx-radxa-zero-3w-ext-ant.dtbo \
5+
rk3308-otg-host.dtbo \
56
rk3308-s0-ext-antenna.dtbo \
67
rk3308-b@1.3ghz.dtbo \
78
rk3308-bs.dtbo rk3308-bs@1.3ghz.dtbo \
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
#include <dt-bindings/gpio/gpio.h>
5+
#include <dt-bindings/pinctrl/rockchip.h>
6+
7+
/ {
8+
compatible = "radxa,zero-3w", "rockchip,rk3566";
9+
10+
fragment@0 {
11+
target-path = "/";
12+
__overlay__ {
13+
board_antenna: board-antenna {
14+
compatible = "regulator-fixed";
15+
enable-active-low;
16+
gpio = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>;
17+
pinctrl-0 = <&ant_1>;
18+
pinctrl-names = "default";
19+
regulator-always-on;
20+
regulator-boot-on;
21+
regulator-name = "board-antenna";
22+
status = "okay";
23+
};
24+
};
25+
};
26+
27+
fragment@1 {
28+
target = <&pinctrl>;
29+
__overlay__ {
30+
antenna {
31+
ant_1: ant-1 {
32+
rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>;
33+
};
34+
};
35+
};
36+
};
37+
};

0 commit comments

Comments
 (0)