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

相关推荐
似霰1 天前
AIDL Hal 开发笔记4----驱动开发
android·驱动开发·framework·hal
yuanmenghao1 天前
车载Linux 系统问题定位方法论与实战系列 - OOM 与资源耗尽:系统是如何被“慢慢拖死”的
linux·运维·服务器·网络·驱动开发·自动驾驶
自由的好好干活2 天前
PCI9x5x驱动移植支持PCI9054在win7下使用1
驱动开发
比奇堡派星星2 天前
Linux OOM Killer
linux·开发语言·arm开发·驱动开发
Ghost Face...2 天前
网卡驱动开发与移植实战指南
驱动开发
Ghost Face...2 天前
深入解析网卡驱动开发与移植
linux·驱动开发
DeeplyMind2 天前
第7章:DRM内核调试技术:7.1 DRM DebugFS的使用
linux·驱动开发·drm·debugfs·drm debugfs
chen_mangoo3 天前
HDMI简介
android·linux·驱动开发·单片机·嵌入式硬件
食咗未3 天前
Linux microcom工具的使用
linux·运维·服务器·驱动开发·串口调试
云雾J视界4 天前
硬件试错成本太高?用Simulink构建电力电子“数字孪生体”
驱动开发·数字孪生·电力电子·simulink·sic·obc·800v