设备树路径为OK8MP-linux-sdk/OK8MP-linux-kernel/arch/arm64/boot/dts/freescale/OK8MP-C.dts在i2c3节点下加入TSC2007节点: touchscreen: tsc2007@48 { compatible = "ti,tsc2007"; reg = <0x48>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c4_gt928_io>; interrupt-parent = <&gpio1>; interrupts = <0 IRQ_TYPE_EDGE_FALLING>; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; ti,x-plate-ohms = <660>; ti,max-rt =<2000>; linux,wakeup; status = "okay"; }; 修改OK8MP-C_defconfig加入TSC2007驱动编译/OK8MP-linux-sdk/OK8MP-linux-kernel/arch/arm64/configs CONFIG_TOUCHSCREEN_TSC2007=y CONFIG_TOUCHSCREEN_TSC2007_IIO=y |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-8 23:36
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.