diff --git a/boards/arm/bt510/bt510-pinctrl.dtsi b/boards/arm/bt510/bt510-pinctrl.dtsi new file mode 100644 index 00000000000..c7b803f1afa --- /dev/null +++ b/boards/arm/bt510/bt510-pinctrl.dtsi @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2022 Nordic Semiconductor + * SPDX-License-Identifier: Apache-2.0 + */ + +&pinctrl { + uart0_default: uart0_default { + group1 { + psels = , + ; + }; + }; + + uart0_sleep: uart0_sleep { + group1 { + psels = , + ; + low-power-enable; + }; + }; + + i2c0_default: i2c0_default { + group1 { + psels = , + ; + }; + }; + + i2c0_sleep: i2c0_sleep { + group1 { + psels = , + ; + low-power-enable; + }; + }; + +}; diff --git a/boards/arm/bt510/bt510.dts b/boards/arm/bt510/bt510.dts index 7aff9710fbd..53a5d94716a 100644 --- a/boards/arm/bt510/bt510.dts +++ b/boards/arm/bt510/bt510.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include "bt510-pinctrl.dtsi" / { model = "Laird Sentrius BT510 Sensor"; @@ -103,16 +104,18 @@ compatible = "nordic,nrf-uarte"; current-speed = <115200>; status = "okay"; - tx-pin = <6>; - rx-pin = <8>; + pinctrl-0 = <&uart0_default>; + pinctrl-1 = <&uart0_sleep>; + pinctrl-names = "default", "sleep"; }; &i2c0 { compatible = "nordic,nrf-twim"; status = "okay"; - sda-pin = <26>; - scl-pin = <27>; + pinctrl-0 = <&i2c0_default>; + pinctrl-1 = <&i2c0_sleep>; + pinctrl-names = "default", "sleep"; lis2dh12@18 { compatible = "st,lis2dh12", "st,lis2dh"; reg = <0x18>; diff --git a/boards/arm/bt510/bt510_defconfig b/boards/arm/bt510/bt510_defconfig index bbe1a763824..fd86ea3f0f2 100644 --- a/boards/arm/bt510/bt510_defconfig +++ b/boards/arm/bt510/bt510_defconfig @@ -23,3 +23,5 @@ CONFIG_GPIO_AS_PINRESET=y # 32KHz clock source CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y CONFIG_CLOCK_CONTROL_NRF_K32SRC_150PPM=y + +CONFIG_PINCTRL=y