59.使用设备树描述中断

查看底板触摸屏的原理找到中断gpio

编写设备树

cpp 复制代码
/dts-v1/;

/include/ "dt-bindings/pinctrl/rockchip.h"
/include/ "dt-bindings/interrupt-controller/irq.h"

/ {
    model = "this is my test devicetree!";
    ft5x06@38 {
        compatible = "edt,edt-ft5206";
        interrupt-parent = <&gpio0>;
        interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
    };
};

compatible对应drivers/input/touchscreen/edt-ft5x06.c

gpio0对应arch/arm64/boot/dts/rockchip/rk356x-base.dtsi

RK_PB5对应include/dt-bindings/pinctrl/rockchip.h

IRQ_TYPE_EDGE_FALLING对应include/dt-bindings/interrupt-controller/irq.h

相关推荐
世微 如初6 天前
AP5125大功率LED恒流驱动实战:地摊灯项目从原理图到调试笔记
驱动开发·芯片·led电源驱动·降压恒流ic
ScilogyHunter6 天前
Zephyr串口驱动开发及构建完全指南
驱动开发·uart·zephyr
_Emma_6 天前
【DRM&Graphic】Linux图形与显示框架
linux·驱动开发·图形渲染·显示器
董厂长6 天前
Loop Engineering:停止手动提示,开始设计自动提示的系统
大数据·人工智能·驱动开发·llm
Saniffer_SH7 天前
【高清视频】Gen6 服务器还没到,Gen6 SSD 怎么测?Emily 现场演示三种测试环境
人工智能·驱动开发·测试工具·缓存·fpga开发·计算机外设·压力测试
暮云星影7 天前
全志linux开发屏幕适配(二)`HDMI`驱动适配说明
linux·arm开发·驱动开发
charlie1145141917 天前
嵌入式Linux驱动开发——从轮询到中断
linux·开发语言·驱动开发·嵌入式
暮云星影7 天前
瑞芯微rk3566开发FIT Secure Boot
linux·arm开发·驱动开发·安全
暮云星影7 天前
全志linux开发 USB接口设置
linux·arm开发·驱动开发
sukalot7 天前
windows显示驱动开发-CCD DDI的其它技术
windows·驱动开发