samples: bluetooth: hci_spi: use pinctrl for nrf board overlay
nRF boards now require usage of pinctrl, migrate them. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
c4699d0147
commit
e3dd5c784d
1 changed files with 14 additions and 4 deletions
|
@ -4,14 +4,24 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&pinctrl {
|
||||
spi1_default_alt: spi1_default_alt {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIS_SCK, 0, 6)>,
|
||||
<NRF_PSEL(SPIS_MOSI, 0, 5)>,
|
||||
<NRF_PSEL(SPIS_MISO, 0, 4)>,
|
||||
<NRF_PSEL(SPIS_CSN, 0, 3)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
compatible = "nordic,nrf-spis";
|
||||
status = "okay";
|
||||
sck-pin = <6>;
|
||||
mosi-pin = <5>;
|
||||
miso-pin = <4>;
|
||||
csn-pin = <3>;
|
||||
def-char = <0x00>;
|
||||
pinctrl-0 = <&spi1_default_alt>;
|
||||
/delete-property/ pinctrl-1;
|
||||
pinctrl-names = "default";
|
||||
|
||||
bt-hci@0 {
|
||||
compatible = "zephyr,bt-hci-spi-slave";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue