您尚未登录。

楼主 # 2024-03-10 08:53:23

lmnb
会员
注册时间: 2024-01-28
已发帖子: 40
积分: 67
个人网站

荔枝派nano电阻触摸使用tsc2007驱动一直触发中断问题

dtsi

i2c0: i2c@1c27000 {
			compatible = "allwinner,sun6i-a31-i2c";
			reg = <0x01c27000 0x400>;
			interrupts = <7>;
			clocks = <&ccu CLK_BUS_I2C0>;
			resets = <&ccu RST_BUS_I2C0>;
			pinctrl-names = "default";
			pinctrl-0 = <&i2c0_pins>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

dts

&i2c0 {
	status = "okay";
	tsc2007@48 {
		compatible = "ti,tsc2007";
		reg = <0x48>;
		interrupt-parent = <&pio>;
		interrupts = <4 10 0x2>;
		gpios = <&pio 4 10 GPIO_ACTIVE_LOW>;
		pendown-gpio = <&pio 4 10 GPIO_ACTIVE_LOW>;
		ti,x-plate-ohms = <660>;
		wakeup-source;
		status = "okay";
	};
};

用了这个命令ts_test发现一直在打印数据,而且那个点也一直在lcd左上角动,然后使用cat /proc/interrupts命令发现居然一直在中断

[root@lmnb:~]$ cat /proc/interrupts
           CPU0
 16:      12129  sun4i_irq  13 Edge      timer@1c20c00
 17:        298  sun4i_irq  29 Edge      1c0c000.lcd-controller
 18:          0  sun4i_irq  18 Edge      1c02000.dma-controller
 20:          0  sun4i_irq  10 Edge      sun6i-spi
 21:          0  sun4i_irq  11 Edge      sun6i-spi
 22:     298480  sun4i_irq   7 Edge      mv64xxx_i2c
 26:       3159  sun4i_irq  23 Edge      sunxi-mmc
 27:      12897  sun4i_irq   1 Edge      ttyS0
 28:          0  sun4i_irq  26 Edge      musb-hdrc.1.auto
 64:          1  sunxi_pio_edge  34 Edge      usb0-id-det
 72:      17059  sunxi_pio_edge  42 Edge      tsc2007
Err:          0

离线

页脚

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

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