Skip to content

Commit bf2efc7

Browse files
bama-nordicnashif
authored andcommitted
nrf7002ek: dts: Add pull down to SPI MISO GPIO pin
Add a pull down to SPI MISO GPIO pin on nRF5340DK to ensure the i/o pin on the nrf7002 device is not floating when SPI is inactive. Signed-off-by: Bansidhar Mangalwedhekar <bansidhar.mangalwedhekar@nordicsemi.no>
1 parent 6416646 commit bf2efc7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

boards/shields/nrf7002ek/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,34 @@
1313
&gpio_fwd {
1414
status = "disabled";
1515
};
16+
17+
/*
18+
* Override the default pinctrl settings for SPI4 when used with the nRF7002 EK
19+
* to pull down the MISO line. This is needed to avoid floating inputs when
20+
* the SPI4 is not used. The default pinctrl settings are defined in the
21+
* nrf5340_cpuapp_common_pinctrl.dtsi file.
22+
*/
23+
&pinctrl {
24+
spi4_default: spi4_default {
25+
group1 {
26+
psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
27+
<NRF_PSEL(SPIM_MOSI, 1, 13)>;
28+
};
29+
group2 {
30+
psels = <NRF_PSEL(SPIM_MISO, 1, 14)>;
31+
bias-pull-down;
32+
};
33+
};
34+
35+
spi4_sleep: spi4_sleep {
36+
group1 {
37+
psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
38+
<NRF_PSEL(SPIM_MOSI, 1, 13)>;
39+
};
40+
group2 {
41+
psels = <NRF_PSEL(SPIM_MISO, 1, 14)>;
42+
bias-pull-down;
43+
};
44+
low-power-enable;
45+
};
46+
};

0 commit comments

Comments
 (0)