diff --git a/samples/read_pd/boards/nrf5340dk_nrf5340_cpuapp.overlay b/samples/read_pd/boards/nrf5340dk_nrf5340_cpuapp.overlay new file mode 100644 index 0000000..f70a35c --- /dev/null +++ b/samples/read_pd/boards/nrf5340dk_nrf5340_cpuapp.overlay @@ -0,0 +1,44 @@ +&uart0 { + status = "okay"; + current-speed = <460800>; +}; + +&pinctrl { + + spi1_default_alt: spi1_default_alt { + group1 { + psels = , + , + ; + }; + }; + + spi1_sleep_alt: spi1_sleep_alt { + group1 { + psels = , + , + ; + low-power-enable; + }; + }; + +}; + +//#include + +&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>; + }; +};