u-boot/arch/arm/dts/rk3036-sdk.dts
.. .. @@ -7,6 +7,7 @@ 7 7 /dts-v1/; 8 8 9 9 #include "rk3036.dtsi" 10 +#include <dt-bindings/input/input.h>10 11 11 12 / { 12 13 model = "SDK-RK3036"; .. .. @@ -37,6 +38,19 @@ 37 38 regulator-max-microvolt = <5000000>; 38 39 regulator-always-on; 39 40 }; 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 + };40 54 }; 41 55 42 56 &i2c1 {