Skip to content

Commit

Permalink
tests: drivers: adc: adc_api: added nRF5340 Audio DK overlay
Browse files Browse the repository at this point in the history
The adc_api test was missing an overlay file for the nRF5340
Audio Dk board.

Signed-off-by: Tim Sørensen <tims@demant.com>
  • Loading branch information
smaerup committed May 1, 2024
1 parent 73decb4 commit 5830689
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,23 +137,6 @@ arduino_i2c: &i2c1 {
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
};

arduino_spi: &spi4 {
compatible = "nordic,nrf-spim";
status = "okay";
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
pinctrl-0 = <&spi4_default>;
pinctrl-1 = <&spi4_sleep>;
pinctrl-names = "default", "sleep";
};

&i2c1 {
compatible = "nordic,nrf-twim";
status = "okay";
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";

vbat_sensor: ina231@44 {
compatible = "ti,ina230";
Expand Down Expand Up @@ -200,14 +183,15 @@ arduino_spi: &spi4 {
};
};

&spi4 {
arduino_spi: &spi4 {
compatible = "nordic,nrf-spim";
status = "okay";
cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>, <&gpio0 17 GPIO_ACTIVE_LOW>;
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>,
<&gpio0 11 GPIO_ACTIVE_LOW>, <&gpio0 17 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi4_default>;
pinctrl-1 = <&spi4_sleep>;
pinctrl-names = "default", "sleep";
sdhc0: sdhc@0 {
sdhc0: sdhc@1 {
compatible = "zephyr,sdhc-spi-slot";
reg = <0>;
status = "okay";
Expand All @@ -219,7 +203,7 @@ arduino_spi: &spi4 {
spi-max-frequency = <8000000>;
};

cs47l63: cs47l63@1 {
cs47l63: cs47l63@2 {
compatible = "cirrus,cs47l63";
reg = <1>;
spi-max-frequency = <8000000>;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2023 Benjamin Björnsson <benjamin.bjornsson@gmail.com>
*/

#include "nordic,nrf-saadc-common.dtsi"

0 comments on commit 5830689

Please sign in to comment.