Skip to content

Commit

Permalink
Merge pull request radxa-pkg#344 from vamrs-feng/main
Browse files Browse the repository at this point in the history
rock 5d: add antenna toggle switch
  • Loading branch information
RadxaYuntian authored Jul 10, 2024
2 parents dac64a5 + df62875 commit 06c3f7e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ dtb-$(CONFIG_CLK_RK3588) += \
rock-5b-radxa-display-8hd.dtbo \
rock-5b-rpi-camera-v2.dtbo \
rock-5b-sata.dtbo \
rock-5d-ext-antenna.dtbo \
rock-5d-rpi-camera-v1p3.dtbo \
rock-5d-rpi-camera-v2.dtbo \
rock-5d-okdo-camera-5mp.dtbo \
Expand Down
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rock-5d-ext-antenna.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>

/ {
metadata {
title = "Enable External Antenna";
compatible = "radxa,rock-5d";
category = "misc";
exclusive = "GPIO0_B2";
description = "Enable External Antenna.";
};
};

&{/} {
antenna_mux: antenna-mux {
status = "okay";
compatible = "regulator-fixed";
regulator-name = "antenna_mux";
gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
regulator-always-on;
regulator-boot-on;
pinctrl-0 = <&ant_mux>;
pinctrl-names = "default";
};
};

&pinctrl {
antenna {
ant_mux: ant-mux {
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};

0 comments on commit 06c3f7e

Please sign in to comment.