-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] samples: sensor: qdec: Run sample on nrf54h20
Add overlay file that enables sample on nrf54h20 Application core. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no> (cherry picked from commit f84e082)
- Loading branch information
1 parent
c7b46f9
commit 4db075f
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
samples/sensor/qdec/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 2024 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
qdec0 = &qdec130; | ||
qenca = &phase_a; | ||
qencb = &phase_b; | ||
}; | ||
|
||
encoder-emulate { | ||
compatible = "gpio-leds"; | ||
phase_a: phase_a { | ||
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
phase_b: phase_b { | ||
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
qdec_pinctrl: qdec_pinctrl { | ||
group1 { | ||
psels = <NRF_PSEL(QDEC_A, 1, 0)>, | ||
<NRF_PSEL(QDEC_B, 1, 2)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio1 { | ||
status = "okay"; | ||
}; | ||
|
||
&qdec130 { | ||
status = "okay"; | ||
pinctrl-0 = <&qdec_pinctrl>; | ||
pinctrl-names = "default"; | ||
steps = <120>; | ||
led-pre = <500>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters