File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
arch/arm64/boot/dts/rockchip/overlays Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff line change 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+ };
You can’t perform that action at this time.
0 commit comments