Skip to content

Commit

Permalink
arm64: dts: radxa e25: add ADC key as macro button (torvalds#269)
Browse files Browse the repository at this point in the history
Signed-off-by: ZHANG Yuntian <yt@radxa.com>
  • Loading branch information
RadxaYuntian authored and RadxaStephen committed Jan 28, 2024
1 parent 850ebe4 commit a5ad9ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@
max-brightness = <255>;
};
};

adc_keys: adc-keys {
status = "okay";
compatible = "adc-keys";
io-channels = <&saradc 0>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <1800000>;
poll-interval = <100>;

user-key {
label = "macro";
linux,code = <KEY_MACRO>;
press-threshold-microvolt = <1750>;
};
};
};

&pwm1 {
Expand Down

0 comments on commit a5ad9ea

Please sign in to comment.