Skip to content

Commit

Permalink
samples: nrf5340dk overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB committed Nov 7, 2024
1 parent 85c4797 commit ef8865b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions samples/read_pd/boards/nrf5340dk_nrf5340_cpuapp.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
&uart0 {
status = "okay";
current-speed = <460800>;
};

&pinctrl {

spi1_default_alt: spi1_default_alt {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 31)>,
<NRF_PSEL(SPIM_MOSI, 0, 30)>,
<NRF_PSEL(SPIM_MISO, 0,29)>;
};
};

spi1_sleep_alt: spi1_sleep_alt {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 31)>,
<NRF_PSEL(SPIM_MOSI, 0, 30)>,
<NRF_PSEL(SPIM_MISO, 0, 29)>;
low-power-enable;
};
};

};

//#include <iolm/maxim14819.h>

&spi1 {
status = "okay";
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi1_default_alt>;
pinctrl-1 = <&spi1_sleep_alt>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
max:maxim14819@0 {
spi-max-frequency = <10000000>;
status = "okay";
irq-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
compatible = "iolm,maxim14819";
reg = <0x00>;
chip-address = <0x00>;
};
};

0 comments on commit ef8865b

Please sign in to comment.