Skip to content

Commit df62875

Browse files
committed
rock 5d: add antenna toggle switch
Signed-off-by: Feng Zhang <[email protected]>
1 parent cb67ac4 commit df62875

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

arch/arm64/boot/dts/rockchip/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ dtb-$(CONFIG_CLK_RK3588) += \
449449
rock-5b-radxa-display-8hd.dtbo \
450450
rock-5b-rpi-camera-v2.dtbo \
451451
rock-5b-sata.dtbo \
452+
rock-5d-ext-antenna.dtbo \
452453
rock-5d-rpi-camera-v1p3.dtbo \
453454
rock-5d-rpi-camera-v2.dtbo \
454455
rock-5d-okdo-camera-5mp.dtbo \
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/dts-v1/;
2+
/plugin/;
3+
#include <dt-bindings/gpio/gpio.h>
4+
#include <dt-bindings/pinctrl/rockchip.h>
5+
6+
/ {
7+
metadata {
8+
title = "Enable External Antenna";
9+
compatible = "radxa,rock-5d";
10+
category = "misc";
11+
exclusive = "GPIO0_B2";
12+
description = "Enable External Antenna.";
13+
};
14+
};
15+
16+
&{/} {
17+
antenna_mux: antenna-mux {
18+
status = "okay";
19+
compatible = "regulator-fixed";
20+
regulator-name = "antenna_mux";
21+
gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
22+
regulator-always-on;
23+
regulator-boot-on;
24+
pinctrl-0 = <&ant_mux>;
25+
pinctrl-names = "default";
26+
};
27+
};
28+
29+
&pinctrl {
30+
antenna {
31+
ant_mux: ant-mux {
32+
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
33+
};
34+
};
35+
};

0 commit comments

Comments
 (0)