调试的时候遇到,按power按键无作用,但是硬件量的时候又没问题,而且信号能到底中断脚,检查发现是pmu的中断脚没有配置正确,导致按power按键的时候,中断无法被处理。
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3326.dts
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3326.dts
[url=home.php?mod=space&uid=1999721]@@[/url] -390,8 +390,8 @@ clock-frequency = <200000>;
rk817: pmic@20 {
compatible = "rockchip,rk817";
reg = <0x20>;
- ```
interrupt-parent = <&gpio0>;
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
interrupt-parent = <&gpio3>;
interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default", "pmic-sleep",
"pmic-power-off", "pmic-reset";
pinctrl-0 = <&pmic_int>;
原作者:botelv
更多回帖