diff --git a/config/boards/arm/egokb_control/egokb_control.dts b/config/boards/arm/egokb_control/egokb_control.dts index c3d2178..28f2342 100644 --- a/config/boards/arm/egokb_control/egokb_control.dts +++ b/config/boards/arm/egokb_control/egokb_control.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include "egokb_control_pinctrl.dtsi" #include #include @@ -83,14 +84,17 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) RC(4,8) RC(4,9 &i2c0 { compatible = "nordic,nrf-twi"; - sda-pin = <30>; - scl-pin = <31>; + pinctrl-0 = <&i2c0_default>; + pinctrl-1 = <&i2c0_sleep>; + pinctrl-names = "default", "sleep"; }; &uart0 { compatible = "nordic,nrf-uarte"; - tx-pin = <6>; - rx-pin = <8>; + current-speed = <115200>; + pinctrl-0 = <&uart0_default>; + pinctrl-1 = <&uart0_sleep>; + pinctrl-names = "default", "sleep"; }; &usbd { diff --git a/config/boards/arm/egokb_control/egokb_control_pinctrl.dtsi b/config/boards/arm/egokb_control/egokb_control_pinctrl.dtsi new file mode 100644 index 0000000..ea52a66 --- /dev/null +++ b/config/boards/arm/egokb_control/egokb_control_pinctrl.dtsi @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2022 The ZMK Contributors + * SPDX-License-Identifier: MIT + */ + +&pinctrl { + uart0_default: uart0_default { + group1 { + psels = ; + bias-pull-up; + }; + group2 { + 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; + }; + }; +}; \ No newline at end of file