Skip to content

Commit 102d17b

Browse files
valeriosettifabiobaltieri
authored andcommitted
boards: lilygo: twatch_s3: add support for axp2101 power button
This commit enables the support for the power button provided by axp2101. The button generates press/release events for the INPUT_KEY_POWER key. Signed-off-by: Valerio Setti <[email protected]>
1 parent 97478d5 commit 102d17b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

boards/lilygo/twatch_s3/twatch_s3_procpu.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
axp2101@34 {
141141
compatible = "x-powers,axp2101";
142142
reg = <0x34>;
143+
int-gpios = <&gpio0 21 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
143144

144145
charger {
145146
compatible = "x-powers,axp2101-charger";

0 commit comments

Comments
 (0)