用户工具

站点工具


jaysnote:gpio_int_failed

a64 gpio interrupt init failed

如下pc0gpio64设置中断触发边沿失败。

~$ tree /sys/class/gpio/gpio64/
├── active_low
├── device -> ../../../1c20800.pinctrl
├── direction
├── power
│   ├── async
│   ├── autosuspend_delay_ms
│   ├── control
│   ├── runtime_active_kids
│   ├── runtime_active_time
│   ├── runtime_enabled
│   ├── runtime_status
│   ├── runtime_suspended_time
│   └── runtime_usage
├── subsystem -> ../../../../../class/gpio
├── uevent
└── value

对比,pb0 gpio32,这里没有edge 属性。

~$ tree /sys/class/gpio/gpio32
/sys/class/gpio/gpio32
├── active_low
├── device -> ../../../1c20800.pinctrl
├── direction
├── edge
├── power
│   ├── async
│   ├── autosuspend_delay_ms
│   ├── control
│   ├── runtime_active_kids
│   ├── runtime_active_time
│   ├── runtime_enabled
│   ├── runtime_status
│   ├── runtime_suspended_time
│   └── runtime_usage
├── subsystem -> ../../../../../class/gpio
├── uevent
└── value

对比3.21.2.1. PB Configure Register 0 (Default Value: 0x77777777)3.21.2.10. PC Configure Register 0 (Default Value: 0x77777777) 这里pc0 确实不支持中断。

提示Allwinner_A64_User_Manual_V1.1_decrypted.pdf->Chapter 3 System->3.21. Port Controller(CPUx-PORT)

pb0 配置寄存器

pc0 配置寄存器

jaysnote/gpio_int_failed.txt · 最后更改: 2021/06/22 23:14 (外部编辑)