enable rk3568 model adc keys

This commit is contained in:
519561910@qq.com
2025-01-12 21:43:03 +08:00
parent 9ba02ea80d
commit 49e0646082
2 changed files with 18 additions and 0 deletions

15
configfiles/adc-key.txt Normal file
View 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>;
};
};

View File

@@ -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