hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
u-boot/arch/arm/dts/rk3036-sdk.dts
....@@ -7,6 +7,7 @@
77 /dts-v1/;
88
99 #include "rk3036.dtsi"
10
+#include <dt-bindings/input/input.h>
1011
1112 / {
1213 model = "SDK-RK3036";
....@@ -37,6 +38,19 @@
3738 regulator-max-microvolt = <5000000>;
3839 regulator-always-on;
3940 };
41
+
42
+ gpio-keys {
43
+ u-boot,dm-pre-reloc;
44
+ compatible = "gpio-keys";
45
+ status = "okay";
46
+
47
+ volume-up {
48
+ u-boot,dm-pre-reloc;
49
+ linux,code = <KEY_VOLUMEUP>;
50
+ label = "Volume Up";
51
+ gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
52
+ };
53
+ };
4054 };
4155
4256 &i2c1 {