forked from radxa-pkg/radxa-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request radxa-pkg#344 from vamrs-feng/main
rock 5d: add antenna toggle switch
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
arch/arm64/boot/dts/rockchip/overlays/rock-5d-ext-antenna.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
}; | ||
}; |