Skip to content

Commit 20d34bd

Browse files
gmarullcarlescufi
authored andcommitted
boards: arm: nrf5340_audio_dk_nrf5340: add codec iface gpio hogs
The nRF5340 Audio DK provides a multiplexer circuit that allows to interface the audio codec by an external master. Use GPIO hogs to initialize the multiplexers correctly. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent c1a1108 commit 20d34bd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@
112112

113113
&gpio0 {
114114
status = "okay";
115+
116+
codec-interface {
117+
gpio-hog;
118+
gpios = <21 GPIO_ACTIVE_HIGH>;
119+
/* low output to select on-board codec control */
120+
output-low;
121+
};
115122
};
116123

117124
&gpio1 {

0 commit comments

Comments
 (0)