您尚未登录。

楼主 #1 2017-10-15 10:24:45

didi
会员
注册时间: 2017-10-15
已发帖子: 2
积分: 2

请教v3s gt911驱动的问题。 dts里面iic配置,驱动触摸屏,io口和中断的配置

各位大神,请教下v3s dts里面iic配置,驱动触摸屏,io口和中断的配置,研究半天没有搞明白

gt9xx: gt9xx@0x14 {
compatible = "goodix,gt911";
status = "okay";
reg = <0x14>;
interrupt-parent = <&pio>;
interrupts = <1 3>;
//interrupts = <GIC_SPI 15 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>;
//interrupt-parent = <&pio>;
//interrupts = <1 3 IRQ_TYPE_LEVEL_LOW>
//reset = <&pio 6 5 GPIO_ACTIVE_LOW>;
//irq = <&pio 1 3 GPIO_ACTIVE_LOW>;
goodix,rst-gpio = <&pio 6 5 GPIO_ACTIVE_LOW>;
goodix,irq-gpio = <&pio 1 3 GPIO_ACTIVE_LOW>;
};

PG5是reset,PB3是int

驱动代码里有这个定义,是不是对应dts里面io的名称呢?
#define GOODIX_GPIO_INT_NAME "irq"
#define GOODIX_GPIO_RST_NAME "reset"

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn


东莞哇酷科技有限公司开发