enable rk3568 model adc keys
This commit is contained in:
15
configfiles/adc-key.txt
Normal file
15
configfiles/adc-key.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 0>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
u-boot,dm-spl;
|
||||
status = "okay";
|
||||
|
||||
volumeup-key {
|
||||
u-boot,dm-spl;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
label = "volume up";
|
||||
press-threshold-microvolt = <9>;
|
||||
};
|
||||
};
|
||||
@@ -10,6 +10,9 @@
|
||||
# 删除引起iproute2依赖编译报错的补丁
|
||||
[ -e package/libs/elfutils/patches/999-fix-odd-build-oot-kmod-fail.patch ] && rm -f package/libs/elfutils/patches/999-fix-odd-build-oot-kmod-fail.patch
|
||||
|
||||
# enable rk3568 model adc keys
|
||||
sed -i '/\/\ {/r $GITHUB_WORKSPACE/configfiles/adc-key.txt' package/boot/uboot-rk35xx/src/arch/arm/dts/rk3568-easepi.dts
|
||||
|
||||
# update ubus git HEAD
|
||||
cp -f $GITHUB_WORKSPACE/configfiles/ubus_Makefile package/system/ubus/Makefile
|
||||
|
||||
|
||||
Reference in New Issue
Block a user