Skip to content

Commit ef8865b

Browse files
committed
samples: nrf5340dk overlay
1 parent 85c4797 commit ef8865b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
&uart0 {
2+
status = "okay";
3+
current-speed = <460800>;
4+
};
5+
6+
&pinctrl {
7+
8+
spi1_default_alt: spi1_default_alt {
9+
group1 {
10+
psels = <NRF_PSEL(SPIM_SCK, 0, 31)>,
11+
<NRF_PSEL(SPIM_MOSI, 0, 30)>,
12+
<NRF_PSEL(SPIM_MISO, 0,29)>;
13+
};
14+
};
15+
16+
spi1_sleep_alt: spi1_sleep_alt {
17+
group1 {
18+
psels = <NRF_PSEL(SPIM_SCK, 0, 31)>,
19+
<NRF_PSEL(SPIM_MOSI, 0, 30)>,
20+
<NRF_PSEL(SPIM_MISO, 0, 29)>;
21+
low-power-enable;
22+
};
23+
};
24+
25+
};
26+
27+
//#include <iolm/maxim14819.h>
28+
29+
&spi1 {
30+
status = "okay";
31+
compatible = "nordic,nrf-spim";
32+
pinctrl-0 = <&spi1_default_alt>;
33+
pinctrl-1 = <&spi1_sleep_alt>;
34+
pinctrl-names = "default", "sleep";
35+
cs-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
36+
max:maxim14819@0 {
37+
spi-max-frequency = <10000000>;
38+
status = "okay";
39+
irq-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
40+
compatible = "iolm,maxim14819";
41+
reg = <0x00>;
42+
chip-address = <0x00>;
43+
};
44+
};

0 commit comments

Comments
 (0)