Skip to content

Commit 74a5599

Browse files
nordic-pikrmmahadevan108
authored andcommitted
samples: sensor: qdec: change pins used for qdec nrf54h20dk
Change pins that are used for qdec nrf54h20dk to align with shield (loopbacks) used in internal CI. This change is needed to start qdec driver power management testing. Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
1 parent 075d5d3 commit 74a5599

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
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: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,32 @@
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
qdec_sleep_pinctrl: qdec_sleep_pinctrl {
3333
group1 {
34-
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
35-
<NRF_PSEL(QDEC_B, 1, 2)>;
34+
psels = <NRF_PSEL(QDEC_A, 2, 8)>,
35+
<NRF_PSEL(QDEC_B, 2, 10)>;
3636
low-power-enable;
3737
};
3838
};
3939
};
4040

41-
&gpio1 {
42-
status = "okay";
43-
};
44-
45-
&gpio7 {
41+
&gpio2 {
4642
status = "okay";
4743
};
4844

0 commit comments

Comments
 (0)