Skip to content

Commit a5ad9ea

Browse files
RadxaYuntianRadxaStephen
authored andcommitted
arm64: dts: radxa e25: add ADC key as macro button (torvalds#269)
Signed-off-by: ZHANG Yuntian <[email protected]>
1 parent 850ebe4 commit a5ad9ea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,21 @@
116116
max-brightness = <255>;
117117
};
118118
};
119+
120+
adc_keys: adc-keys {
121+
status = "okay";
122+
compatible = "adc-keys";
123+
io-channels = <&saradc 0>;
124+
io-channel-names = "buttons";
125+
keyup-threshold-microvolt = <1800000>;
126+
poll-interval = <100>;
127+
128+
user-key {
129+
label = "macro";
130+
linux,code = <KEY_MACRO>;
131+
press-threshold-microvolt = <1750>;
132+
};
133+
};
119134
};
120135

121136
&pwm1 {

0 commit comments

Comments
 (0)