Skip to content

Commit 2bad2b9

Browse files
committed
sm_host: Fix DTR/RI pin selection
- Select previously used pins in nRF5340 DK. - Port events only for inputs. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
1 parent 3a6c911 commit 2bad2b9

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

samples/sm_host_shell/boards/nrf52840dk_nrf52840.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939

4040
&gpio0 {
4141
status = "okay";
42-
/* Use PORT event for DTR (11) and RI (13) pins to ensure lower power consumption. */
43-
sense-edge-mask = <0x00002800>;
42+
/* Use PORT event for RI (13) pin to ensure lower power consumption. */
43+
sense-edge-mask = <0x00002000>;
4444
};
4545

4646

samples/sm_host_shell/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
/ {
3232
dte_dtr: dte_dtr {
3333
compatible = "nordic,dte-dtr";
34-
dtr-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
35-
ri-gpios = <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
34+
dtr-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
35+
ri-gpios = <&gpio0 28 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
3636
};
3737
};
3838

3939
&gpio0 {
4040
status = "okay";
41-
/* Use PORT event for DTR (26) and RI (25) pins to ensure lower power consumption. */
42-
sense-edge-mask = <0x06000000>;
41+
/* Use PORT event for RI (28) pin to ensure lower power consumption. */
42+
sense-edge-mask = <0x10000000>;
4343
};
4444

4545

samples/sm_host_shell/boards/nrf7002dk_nrf5340_cpuapp.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939

4040
&gpio0 {
4141
status = "okay";
42-
/* Use PORT event for DTR (30) and RI (31) pins to ensure lower power consumption. */
43-
sense-edge-mask = <0xC0000000>;
42+
/* Use PORT event for RI (31) pin to ensure lower power consumption. */
43+
sense-edge-mask = <0x80000000>;
4444
};
4545

4646
&pinctrl {

0 commit comments

Comments
 (0)