尧图建网站 尧图建网站 YAOTU WEB BUILD 免费咨询
ARTICLE DETAIL

资讯详情

深耕网站建设与建站编程的一线实战洞察。

T113 如何添加支持axp209关机按键

T113 如何添加支持axp209关机按键 需求:项目使用axp209 pmu需要添加关机功能解决在dts里面twi0下添加按键的配置且添加驱动编译diff --git a/device/config/chips/t113/configs/zqboard/linux-5.4/board.dts b/device/config/chips/t113/configs/zqboard/linux-5.4/board.dts index 5c50db447..cadba644c 100755 --- a/device/config/chips/t113/configs/zqboard/linux-5.4/board.dts b/device/config/chips/t113/configs/zqboard/linux-5.4/board.dts axp209: pmic34 { compatible x-powers,axp209; reg 0x34; interrupt-parent pio; //interrupts 1 5 IRQ_TYPE_EDGE_FALLING; interrupts PB 5 IRQ_TYPE_EDGE_FALLING; interrupt-controller; #interrupt-cells 1; axp20x_pek: axp20x-pek { compatible x-powers,axp20x-pek; status okay; }; };diff --git a/target/allwinner/t113-zqboard/defconfig b/target/allwinner/t113-zqboard/defconfig index 42d756369..a2449d642 100755 --- a/target/allwinner/t113-zqboard/defconfig b/target/allwinner/t113-zqboard/defconfig -57,6 57,7 CONFIG_HAS_FPUy CONFIG_AUDIO_SUPPORTy CONFIG_GPIO_SUPPORTy CONFIG_USB_SUPPORTy CONFIG_RTC_SUPPORTy CONFIG_USES_DEVICETREEy CONFIG_army CONFIG_ARCHarm hnzhnz-desktop:/workspace4/t113/recordwifi/Tina-Linux$上面修改完毕后编译kernel后编译整包进行烧录。rootTinaLinux:/sys/devices/platform/soc3000000/2502000.twi/i2c-0/0-0034# ls axp20x-ac-power-supply modalias axp20x-adc name axp20x-battery-power-supply of_node axp20x-gpio power axp20x-pek subsystem axp20x-regulator supplier:2000000.pinctrl axp20x-usb-power-supply uevent driver rootTinaLinux:/sys/devices/platform/soc3000000/2502000.twi/i2c-0/0-0034#
返回列表