Skip to content

Commit cd819b2

Browse files
committed
samples: sensor: qdec
Change pins that are used for qdec nrf54h20dk Signed-off-by: Piotr Krzyzanowski <[email protected]>
1 parent 468d06d commit cd819b2

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

samples/sensor/qdec/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,24 @@
1313
encoder-emulate {
1414
compatible = "gpio-leds";
1515
phase_a: phase_a {
16-
gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
16+
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
1717
};
1818
phase_b: phase_b {
19-
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
19+
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
2020
};
2121
};
2222
};
2323

2424
&pinctrl {
2525
qdec_pinctrl: qdec_pinctrl {
2626
group1 {
27-
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
28-
<NRF_PSEL(QDEC_B, 1, 2)>;
27+
psels = <NRF_PSEL(QDEC_A, 2, 8)>,
28+
<NRF_PSEL(QDEC_B, 2, 10)>;
2929
};
3030
};
3131
};
3232

33-
&gpio1 {
34-
status = "okay";
35-
};
36-
37-
&gpio7 {
33+
&gpio2 {
3834
status = "okay";
3935
};
4036

tests/boards/nrf/qdec/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,24 @@
1313
encoder-emulate {
1414
compatible = "gpio-leds";
1515
phase_a: phase_a {
16-
gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
16+
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
1717
};
1818
phase_b: phase_b {
19-
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
19+
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
2020
};
2121
};
2222
};
2323

2424
&pinctrl {
2525
qdec_pinctrl: qdec_pinctrl {
2626
group1 {
27-
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
28-
<NRF_PSEL(QDEC_B, 1, 2)>;
27+
psels = <NRF_PSEL(QDEC_A, 2, 8)>,
28+
<NRF_PSEL(QDEC_B, 2, 10)>;
2929
};
3030
};
3131
};
3232

33-
&gpio1 {
34-
status = "okay";
35-
};
36-
37-
&gpio7 {
33+
&gpio2 {
3834
status = "okay";
3935
};
4036

0 commit comments

Comments
 (0)