diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index fe4e6c08..55121b70 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -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 \ diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5d-ext-antenna.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-ext-antenna.dts new file mode 100644 index 00000000..3ffb69fd --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5d-ext-antenna.dts @@ -0,0 +1,35 @@ +/dts-v1/; +/plugin/; +#include +#include + +/ { + 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>; + }; + }; +};