各位大神,请教下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"
离线