Skip to content

Commit

Permalink
[nrf fromlist] samples: sensor: qdec: change pins used for qdec nrf54…
Browse files Browse the repository at this point in the history
…h20dk

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.

Upstream PR #: 80562

Signed-off-by: Piotr Krzyzanowski <[email protected]>
  • Loading branch information
nordic-pikr authored and rlubos committed Oct 30, 2024
1 parent d9f282c commit 06d6b00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
14 changes: 5 additions & 9 deletions samples/sensor/qdec/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,24 @@
encoder-emulate {
compatible = "gpio-leds";
phase_a: phase_a {
gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
};
phase_b: phase_b {
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
};
};
};

&pinctrl {
qdec_pinctrl: qdec_pinctrl {
group1 {
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
<NRF_PSEL(QDEC_B, 1, 2)>;
psels = <NRF_PSEL(QDEC_A, 2, 8)>,
<NRF_PSEL(QDEC_B, 2, 10)>;
};
};
};

&gpio1 {
status = "okay";
};

&gpio7 {
&gpio2 {
status = "okay";
};

Expand Down
18 changes: 7 additions & 11 deletions tests/boards/nrf/qdec/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,32 @@
encoder-emulate {
compatible = "gpio-leds";
phase_a: phase_a {
gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
};
phase_b: phase_b {
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
};
};
};

&pinctrl {
qdec_pinctrl: qdec_pinctrl {
group1 {
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
<NRF_PSEL(QDEC_B, 1, 2)>;
psels = <NRF_PSEL(QDEC_A, 2, 8)>,
<NRF_PSEL(QDEC_B, 2, 10)>;
};
};

qdec_sleep_pinctrl: qdec_sleep_pinctrl {
group1 {
psels = <NRF_PSEL(QDEC_A, 1, 0)>,
<NRF_PSEL(QDEC_B, 1, 2)>;
psels = <NRF_PSEL(QDEC_A, 2, 8)>,
<NRF_PSEL(QDEC_B, 2, 10)>;
low-power-enable;
};
};
};

&gpio1 {
status = "okay";
};

&gpio7 {
&gpio2 {
status = "okay";
};

Expand Down

0 comments on commit 06d6b00

Please sign in to comment.