File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
arch/arm64/boot/dts/rockchip Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 10
10
*/
11
11
12
12
/dts-v1/;
13
+ #include <dt-bindings/input/gpio-keys.h>
13
14
#include <dt-bindings/input/linux-event-codes.h>
14
15
#include "rk3399.dtsi"
15
16
#include "rk3399-opp.dtsi"
29
30
stdout-path = "serial2:115200n8";
30
31
};
31
32
33
+ adc-keys {
34
+ compatible = "adc-keys";
35
+ io-channels = <&saradc 1>;
36
+ io-channel-names = "buttons";
37
+ keyup-threshold-microvolt = <1600000>;
38
+ poll-interval = <100>;
39
+
40
+ button-up {
41
+ label = "Volume Up";
42
+ linux,code = <KEY_VOLUMEUP>;
43
+ press-threshold-microvolt = <100000>;
44
+ };
45
+
46
+ button-down {
47
+ label = "Volume Down";
48
+ linux,code = <KEY_VOLUMEDOWN>;
49
+ press-threshold-microvolt = <600000>;
50
+ };
51
+ };
52
+
32
53
backlight: backlight {
33
54
compatible = "pwm-backlight";
34
55
pwms = <&pwm0 0 50000 0>;
519
540
status = "okay";
520
541
};
521
542
543
+ &saradc {
544
+ vref-supply = <&vcca1v8_s3>;
545
+ status = "okay";
546
+ };
547
+
522
548
&sdmmc {
523
549
bus-width = <4>;
524
550
cap-sd-highspeed;
You can’t perform that action at this time.
0 commit comments