hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
u-boot/arch/arm/dts/rv1106-evb2.dts
....@@ -7,6 +7,7 @@
77
88 #include "rv1106.dtsi"
99 #include "rv1106-u-boot.dtsi"
10
+#include <dt-bindings/input/input.h>
1011
1112 / {
1213 model = "Rockchip RV1106 EVB2 Board";
....@@ -15,6 +16,22 @@
1516 chosen {
1617 stdout-path = &uart2;
1718 u-boot,spl-boot-order = &spi_nor, &emmc;
19
+ };
20
+
21
+ adc-keys {
22
+ compatible = "adc-keys";
23
+ io-channels = <&saradc 0>;
24
+ io-channel-names = "buttons";
25
+ keyup-threshold-microvolt = <1800000>;
26
+ u-boot,dm-spl;
27
+ status = "okay";
28
+
29
+ volumeup-key {
30
+ u-boot,dm-spl;
31
+ linux,code = <KEY_VOLUMEUP>;
32
+ label = "volume up";
33
+ press-threshold-microvolt = <17578>;
34
+ };
1835 };
1936 };
2037
....@@ -63,6 +80,11 @@
6380 status = "disabled";
6481 };
6582
83
+&saradc {
84
+ u-boot,dm-spl;
85
+ status = "okay";
86
+};
87
+
6688 &sdmmc {
6789 /delete-property/ u-boot,dm-spl;
6890 status = "disabled";