各位大神,请教下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"
离线
移植好了吗 可否分享经验
离线
gt911: touchscreen@14 {
compatible = "goodix,gt911";
reg = <0x14>;
interrupt-parent = <&pio>;
interrupts = <1 2 IRQ_TYPE_EDGE_FALLING>; /* (PB2) */
pinctrl-names = "default";
pinctrl-0 = <&ts_reset_pin>;
irq-gpios = <&pio 1 2 GPIO_ACTIVE_HIGH>; /* (PB2) */
reset-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* RST (PE2) */
/* touchscreen-swapped-x-y */
};
&pio {
ts_reset_pin: ts_reset_pin@0 {
pins = "PE2";
function = "gpio_out";
};
离线
请教下,除了设备树配置还需要配置哪里吗?按照你这个来还是检测不到
离线
谢谢晕哥,驱动我是配置<*> Goodix I2C touchscreen ,荔枝zero板子上面看了I2C0好像已经有了上拉吧?
离线
各位大神,请教下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"
有没有搞定啊 我这能识别到 但是读取不到任何触摸数据 中断引脚一直是低电平
离线
buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *
http://whycan.com/t_5221.html
(出处:哇酷开发者社区【全志 V3S/F1C100s/X3】)
离线
@hanzixi_angel
奇怪,我这也是一直低电平。。。
离线